/kernel/linux/linux-6.6/arch/riscv/kernel/ |
H A D | patch.c | 158 size_t patched = 0; in patch_insn_set() local 166 while (patched < len && !ret) { in patch_insn_set() 167 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched); in patch_insn_set() 168 ret = __patch_insn_set(addr + patched, c, size); in patch_insn_set() 170 patched += size; in patch_insn_set() 193 size_t patched = 0; in patch_insn_write() local 201 while (patched < len && !ret) { in patch_insn_write() 202 size = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(addr + patched), len - patched); in patch_insn_write() [all...] |
/kernel/linux/linux-5.10/kernel/livepatch/ |
H A D | patch.c | 97 * Use the previously patched version of the function. in klp_ftrace_handler() 139 if (WARN_ON(!func->patched)) in klp_unpatch_func() 166 func->patched = false; in klp_unpatch_func() 177 if (WARN_ON(func->patched)) in klp_patch_func() 227 func->patched = true; in klp_patch_func() 246 if (func->patched) in __klp_unpatch_object() 251 obj->patched = false; in __klp_unpatch_object() 265 if (WARN_ON(obj->patched)) in klp_patch_object() 275 obj->patched = true; in klp_patch_object() 285 if (obj->patched) in __klp_unpatch_objects() [all...] |
H A D | core.c | 62 * We do not want to block removal of patched modules and therefore in klp_find_object_module() 276 * These relocations are written to the klp module text to allow the patched 282 * 2) When a to-be-patched module loads -- or is already loaded when a 285 * are written to the klp module text to allow the patched code/data to 286 * reference symbols which live in the to-be-patched module or one of its 289 * the to-be-patched module to be loaded and patched sometime *after* the 614 /* Clean up when a patched object is unloaded */ 729 * NOPs get the address later. The patched module must be loaded, in klp_init_func() 739 func->patched in klp_init_func() [all...] |
H A D | transition.c | 157 * Switch the patched state of the task to the set of functions in the target 191 * to-be-patched or to-be-unpatched function. 212 * Check for the to-be-patched function in klp_check_stack_func() 222 /* previously patched function */ in klp_check_stack_func() 240 * by looking for any to-be-patched or to-be-unpatched functions on its stack. 259 if (!obj->patched) in klp_check_stack() 278 * running, or it's sleeping on a to-be-patched or to-be-unpatched function, or 303 * Now try to check the stack for any to-be-patched or to-be-unpatched in klp_try_switch_task() 382 * stacks of sleeping tasks and looking for any to-be-patched or 399 * stacks and looking for any to-be-patched o in klp_try_complete_transition() [all...] |
/kernel/linux/linux-6.6/kernel/livepatch/ |
H A D | patch.c | 102 * Use the previously patched version of the function. in klp_ftrace_handler() 131 if (WARN_ON(!func->patched)) in klp_unpatch_func() 157 func->patched = false; in klp_unpatch_func() 168 if (WARN_ON(func->patched)) in klp_patch_func() 219 func->patched = true; in klp_patch_func() 238 if (func->patched) in __klp_unpatch_object() 243 obj->patched = false; in __klp_unpatch_object() 257 if (WARN_ON(obj->patched)) in klp_patch_object() 267 obj->patched = true; in klp_patch_object() 277 if (obj->patched) in __klp_unpatch_objects() [all...] |
H A D | core.c | 64 * We do not want to block removal of patched modules and therefore in klp_find_object_module() 278 * These relocations are written to the klp module text to allow the patched 284 * 2) When a to-be-patched module loads -- or is already loaded when a 287 * are written to the klp module text to allow the patched code/data to 288 * reference symbols which live in the to-be-patched module or one of its 291 * the to-be-patched module to be loaded and patched sometime *after* the 350 * /sys/kernel/livepatch/<patch>/<object>/patched 463 return sysfs_emit(buf, "%d\n", obj->patched); in patched_show() 466 static struct kobj_attribute patched_kobj_attr = __ATTR_RO(patched); [all...] |
H A D | transition.c | 32 * cond_resched(). This helps CPU-bound kthreads get patched. 178 * Switch the patched state of the task to the set of functions in the target 212 * to-be-patched or to-be-unpatched function. 230 * Check for the to-be-patched function in klp_check_stack_func() 240 /* previously patched function */ in klp_check_stack_func() 261 * by looking for any to-be-patched or to-be-unpatched functions on its stack. 279 if (!obj->patched) in klp_check_stack() 311 * running, or it's sleeping on a to-be-patched or to-be-unpatched function, or 331 * Now try to check the stack for any to-be-patched or to-be-unpatched in klp_try_switch_task() 383 * Make sure current didn't get patched betwee in __klp_sched_try_switch() [all...] |
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | etrap_32.S | 113 sll %t_wim, 0x7, %t_wim ! patched on 7 window Sparcs 116 and %g2, 0xff, %g2 ! patched on 7 window Sparcs 189 and %g2, 0xff, %g2 ! patched on 7win Sparcs 203 and %g1, 0xff, %g1 ! patched on 7win Sparcs, mask 206 sll %t_wim, 0x7, %t_wim ! patched on 7win Sparcs 209 and %g2, 0xff, %g2 ! patched on 7win Sparcs
|
H A D | wof.S | 156 * be patched at boot time once the machine type is known. 234 spnwin_patch3: and %twin_tmp, 0xff, %twin_tmp ! patched on 7win Sparcs
|
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | etrap_32.S | 113 sll %t_wim, 0x7, %t_wim ! patched on 7 window Sparcs 116 and %g2, 0xff, %g2 ! patched on 7 window Sparcs 189 and %g2, 0xff, %g2 ! patched on 7win Sparcs 203 and %g1, 0xff, %g1 ! patched on 7win Sparcs, mask 206 sll %t_wim, 0x7, %t_wim ! patched on 7win Sparcs 209 and %g2, 0xff, %g2 ! patched on 7win Sparcs
|
H A D | wof.S | 156 * be patched at boot time once the machine type is known. 234 spnwin_patch3: and %twin_tmp, 0xff, %twin_tmp ! patched on 7win Sparcs
|
/kernel/linux/linux-5.10/drivers/bluetooth/ |
H A D | hci_ag6xx.c | 159 bool patched = false; in ag6xx_setup() local 219 * cases, current firmware is already patched. No need to patch it. in ag6xx_setup() 222 bt_dev_info(hdev, "Device is already patched. patch num: %02x", in ag6xx_setup() 224 patched = true; in ag6xx_setup() 260 patched = true; in ag6xx_setup() 288 err = btintel_exit_mfg(hdev, true, patched); in ag6xx_setup()
|
H A D | btintel.h | 139 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched); 183 static inline int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) in btintel_exit_mfg() argument
|
H A D | btintel.c | 83 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) in btintel_exit_mfg() argument 94 param[1] |= patched ? 0x02 : 0x01; in btintel_exit_mfg()
|
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | hci_ag6xx.c | 159 bool patched = false; in ag6xx_setup() local 218 * cases, current firmware is already patched. No need to patch it. in ag6xx_setup() 221 bt_dev_info(hdev, "Device is already patched. patch num: %02x", in ag6xx_setup() 223 patched = true; in ag6xx_setup() 259 patched = true; in ag6xx_setup() 287 err = btintel_exit_mfg(hdev, true, patched); in ag6xx_setup()
|
H A D | btintel.h | 208 int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched); 241 static inline int btintel_exit_mfg(struct hci_dev *hdev, bool reset, bool patched) in btintel_exit_mfg() argument
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | livepatch.h | 28 * @old_name: name of the function to be patched 29 * @new_func: pointer to the patched function code 32 * @old_func: pointer to the function being patched 39 * @patched: the func has been added to the klp_ops list 42 * The patched and transition variables define the func's patching state. When 45 * patched=0 transition=0: unpatched 46 * patched=0 transition=1: unpatched, temporary starting state 47 * patched=1 transition=1: patched, may be visible to some tasks 48 * patched 77 bool patched; global() member 130 bool patched; global() member [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | livepatch.h | 27 * @old_name: name of the function to be patched 28 * @new_func: pointer to the patched function code 31 * @old_func: pointer to the function being patched 38 * @patched: the func has been added to the klp_ops list 41 * The patched and transition variables define the func's patching state. When 44 * patched=0 transition=0: unpatched 45 * patched=0 transition=1: unpatched, temporary starting state 46 * patched=1 transition=1: patched, may be visible to some tasks 47 * patched 76 bool patched; global() member 129 bool patched; global() member [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | alternative.c | 272 * "Destination" is where the instructions are being patched in by this 332 * If the target is inside the patched block, it's relative to the in need_reloc() 419 * cpu_feature_enabled(X86_FEATURE_LA57) and is therefore patched here. in apply_alternatives() 1582 * interruptions that might execute the to be patched code. in alternative_instructions() 1941 size_t patched = 0; in text_poke_copy_locked() local 1946 while (patched < len) { in text_poke_copy_locked() 1947 unsigned long ptr = start + patched; in text_poke_copy_locked() 1950 s = min_t(size_t, PAGE_SIZE * 2 - offset_in_page(ptr), len - patched); in text_poke_copy_locked() 1952 __text_poke(text_poke_memcpy, (void *)ptr, opcode + patched, s); in text_poke_copy_locked() local 1953 patched in text_poke_copy_locked() 1990 size_t patched = 0; text_poke_set() local [all...] |
/kernel/linux/linux-5.10/drivers/nfc/fdp/ |
H A D | fdp.c | 478 u8 patched = 0; in fdp_nci_setup() local 499 patched = 1; in fdp_nci_setup() 507 patched = 1; in fdp_nci_setup() 514 if (patched) { in fdp_nci_setup()
|
/kernel/linux/linux-6.6/drivers/nfc/fdp/ |
H A D | fdp.c | 462 u8 patched = 0; in fdp_nci_setup() local 483 patched = 1; in fdp_nci_setup() 491 patched = 1; in fdp_nci_setup() 498 if (patched) { in fdp_nci_setup()
|
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | cs42l43.c | 715 bool patched, shadow; in cs42l43_mcu_update_step() local 745 patched = mcu_rev >= CS42L43_MCU_SUPPORTED_REV || in cs42l43_mcu_update_step() 761 if (!patched && cs42l43->hw_lock) { in cs42l43_mcu_update_step() 771 if (!patched) { in cs42l43_mcu_update_step() 791 if (patched) in cs42l43_mcu_update_step()
|
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | nospec-insn.h | 112 # the "br \reg" after the code has been patched.
|
/kernel/linux/linux-5.10/arch/arm/kernel/ |
H A D | phys2virt.S | 94 @ order bits, which can be patched into imm8 directly (and i:imm3
|
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | phys2virt.S | 94 @ order bits, which can be patched into imm8 directly (and i:imm3
|