Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- arch/loongarch/kernel/alternative.c, line 158 (as a function)
- arch/x86/kernel/alternative.c, line 2318 (as a function)
Referenced in 6 files:
- arch/loongarch/kernel/alternative.c, line 238
- arch/x86/kernel/alternative.c
- arch/x86/kernel/callthunks.c, line 228
- arch/x86/kernel/ftrace.c, line 129
- arch/x86/kernel/jump_label.c, line 101
- arch/x86/kernel/static_call.c, line 140
Smatch caller information:
arch/x86/kernel/callthunks.c patch_call() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 0-18446744073709551614 |
| PARAM_VALUE | 1 | opcode | 7270779555125248000 |
| PARAM_VALUE | 2 | len | 5 |
| BUF_SIZE | 1 | opcode | 8 |
| CAPPED_DATA | 0 | addr | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL | |||
| UNITS | 0 | addr | unit_byte |
| LOCK2 | global &text_mutex |
arch/x86/kernel/alternative.c apply_retpolines() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | opcode | 5301973161276145664 |
| PARAM_VALUE | 1 | *opcode | 0-255 |
| PARAM_VALUE | 2 | len | 0 |
| BUF_SIZE | 1 | opcode | 16 |
| DATA_SOURCE | 2 | len | r patch_retpoline |
| NOCHECK_CALL | |||
| UNITS | 0 | addr | unit_byte |
| UNITS | 2 | len | unit_byte |
arch/x86/kernel/alternative.c apply_returns() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | opcode | 547837113566011392 |
| PARAM_VALUE | 1 | *opcode | 195,204 |
| BUF_SIZE | 1 | opcode | 16 |
| DATA_SOURCE | 2 | len | r patch_return |
| BIT_INFO | 2 | len | 0x0,0x0 |
| NOCHECK_CALL | |||
| UNITS | 0 | addr | unit_byte |
| UNITS | 2 | len | unit_byte |
arch/x86/kernel/alternative.c patch_site() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 0-254 |
| BUF_SIZE | 1 | opcode | 254 |
| CAPPED_DATA | 2 | len | 1 |
| NOCHECK_CALL | |||
| UNITS | 2 | len | unit_byte |
arch/x86/kernel/alternative.c poison_endbr() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 4096-ptr_max |
| PARAM_VALUE | 1 | opcode | 4096-ptr_max |
| PARAM_VALUE | 1 | *opcode | 3594526479 |
| PARAM_VALUE | 2 | len | 4 |
| BUF_SIZE | 1 | opcode | 4 |
| DATA_SOURCE | 0 | addr | $0 |
| NOCHECK_CALL | |||
| UNITS | 0 | addr | unit_byte |
arch/x86/kernel/ftrace.c ftrace_modify_code_direct() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 5 |
| BUF_SIZE | 1 | opcode | (-1),5 |
| DATA_SOURCE | 0 | addr | $0 |
| DATA_SOURCE | 1 | opcode | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | addr | unit_byte |
| HALF_LOCKED2 | global &ftrace_lock |
arch/x86/kernel/jump_label.c __jump_label_transform() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | len | 0-s32max,18446744071562067968-u64max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &text_mutex | ||
| HALF_LOCKED2 | global &jump_label_mutex |
arch/x86/kernel/static_call.c __static_call_transform() -> text_poke_early()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | addr | 4096-ptr_max |
| PARAM_VALUE | 2 | len | 5-6 |
| BUF_SIZE | 1 | opcode | (-1),5-6 |
| BUF_SIZE | 1 | opcode | (-1),5-6 |
| CAPPED_DATA | 2 | len | 1 |
| DATA_SOURCE | 0 | addr | $0 |
| BIT_INFO | 2 | len | 0x4,0x7 |
| UNITS | 0 | addr | unit_byte |
| LOCK2 | global &text_mutex | ||
| HALF_LOCKED2 | global &static_call_mutex |