aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
AgeCommit message (Expand)AuthorFilesLines
2025-02-12powerpc/code-patching: Fix KASAN hit by not flagging text patching area as VM...Christophe Leroy1-1/+1
2025-02-10powerpc/code-patching: Disable KASAN report during patching via temporary mmChristophe Leroy1-0/+2
2024-11-07asm-generic: introduce text-patching.hMike Rapoport (Microsoft)1-1/+1
2024-08-21powerpc/code-patching: Add data patch alignment checkBenjamin Gray1-0/+6
2024-08-21powerpc/code-patching: Add generic memory patchingBenjamin Gray1-15/+49
2024-05-17Merge tag 'powerpc-6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-4/+27
2024-05-14powerpc: use CONFIG_EXECMEM instead of CONFIG_MODULES where appropriateMike Rapoport (IBM)1-1/+1
2024-05-08powerpc/code-patching: Use dedicated memory routines for patchingBenjamin Gray1-4/+27
2023-10-23powerpc/code-patching: introduce patch_instructions()Hari Bathini1-3/+138
2023-10-20powerpc/code-patching: Perform hwsync in __patch_instruction() in case of fai...Christophe Leroy1-4/+1
2022-12-16powerpc/code-patching: Fix oops with DEBUG_VM enabledMichael Ellerman1-3/+7
2022-12-02powerpc/code-patching: Remove protection against patching init addresses afte...Christophe Leroy1-12/+1
2022-12-02powerpc/code-patching: Remove #ifdef CONFIG_STRICT_KERNEL_RWXChristophe Leroy1-11/+5
2022-12-02powerpc/code-patching: Consolidate and cache per-cpu patching contextBenjamin Gray1-19/+30
2022-12-02powerpc/code-patching: Use temporary mm for Radix MMUChristopher M. Riedl1-5/+172
2022-11-30powerpc/code-patching: Use WARN_ON and fix check in poking_initBenjamin Gray1-8/+9
2022-09-01powerpc/code-patching: Speed up page mapping/unmappingChristophe Leroy1-11/+19
2022-05-19powerpc/ftrace: Use patch_instruction() return directlyChristophe Leroy1-1/+1
2022-05-19powerpc/code-patching: Inline create_branch()Christophe Leroy1-20/+0
2022-05-19powerpc/code-patching: Inline is_offset_in_{cond}_branch_range()Christophe Leroy1-27/+0
2022-05-11powerpc/code-patching: Use jump_label to check if poking_init() is doneChristophe Leroy1-1/+4
2022-05-11powerpc/code-patching: Use jump_label for testing freed initmemChristophe Leroy1-1/+4
2022-05-08powerpc/code-patching: Don't call is_vmalloc_or_module_addr() without CONFIG_...Christophe Leroy1-1/+1
2022-03-08powerpc/code-patching: Pre-map patch areaMichael Ellerman1-0/+14
2021-12-23powerpc/code-patching: Move code patching selftests in its own fileChristophe Leroy1-355/+0
2021-12-23powerpc/code-patching: Move instr_is_branch_{i/b}form() in code-patching.hChristophe Leroy1-15/+0
2021-12-23powerpc/code-patching: Move patch_exception() outside code-patching.cChristophe Leroy1-16/+0
2021-12-23powerpc/code-patching: Use test_trampoline for prefixed patch testChristophe Leroy1-15/+9
2021-12-23powerpc/code-patching: Fix patch_branch() return on out-of-range failureChristophe Leroy1-1/+3
2021-12-23powerpc/code-patching: Reorganise do_patch_instruction() to ease error handlingChristophe Leroy1-16/+21
2021-12-23powerpc/code-patching: Fix unmap_patch_area() error handlingChristophe Leroy1-17/+13
2021-12-23powerpc/code-patching: Fix error handling in do_patch_instruction()Christophe Leroy1-10/+3
2021-12-23powerpc/code-patching: Remove init_mem_is_freeChristophe Leroy1-2/+1
2021-12-23powerpc/code-patching: Remove pr_debug()/pr_devel() messages and fix check()Christophe Leroy1-9/+7
2021-12-23powerpc/lib: Add __init attribute to eligible functionsNick Child1-1/+1
2021-12-09powerpc/inst: Define ppc_inst_tChristophe Leroy1-19/+19
2021-11-29Revert "powerpc/code-patching: Improve verification of patchability"Michael Ellerman1-2/+3
2021-11-25powerpc/code-patching: Improve verification of patchabilityChristophe Leroy1-3/+2
2021-10-07powerpc/lib: Add helper to check if offset is within conditional branch rangeNaveen N. Rao1-1/+6
2021-06-21powerpc/lib/code-patching: Set up Strict RWX patching earlierJordan Niethe1-10/+4
2021-06-17powerpc: Don't use 'struct ppc_inst' to reference instruction locationChristophe Leroy1-26/+23
2021-06-17powerpc/lib/code-patching: Don't use struct 'ppc_inst' for runnable code in t...Christophe Leroy1-42/+53
2021-06-16powerpc/lib/code-patching: Make instr_is_branch_to_addr() staticChristophe Leroy1-9/+9
2021-06-16powerpc: Do not dereference code as 'struct ppc_inst' (uprobe, code-patching,...Christophe Leroy1-4/+4
2021-04-21powerpc/inst: ppc_inst_as_u64() becomes ppc_inst_as_ulong()Christophe Leroy1-1/+1
2021-03-26powerpc/lib: Don't use __put_user_asm_goto() outside of uaccess.hChristophe Leroy1-4/+9
2020-09-15powerpc/uaccess: Switch __patch_instruction() to __put_user_asm_goto()Christophe Leroy1-10/+7
2020-07-27powerpc/lib: Prepare code-patching for modules allocated outside vmalloc spaceChristophe Leroy1-1/+1
2020-06-09mm: don't include asm/pgtable.h if linux/mm.h is already includedMike Rapoport1-1/+0
2020-06-05Merge tag 'powerpc-5.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-127/+180
2020-06-04powerpc: add support for folded p4d page tablesMike Rapoport1-1/+6
2020-05-26powerpc: Add ppc_inst_as_u64()Michael Ellerman1-7/+1
2020-05-19powerpc: Test prefixed code patchingJordan Niethe1-0/+21
2020-05-19powerpc: Add prefixed instructions to instruction data typeJordan Niethe1-1/+12
2020-05-19powerpc: Make test_translate_branch() independent of instruction lengthJordan Niethe1-3/+3
2020-05-19powerpc: Use a function for reading instructionsJordan Niethe1-12/+14
2020-05-19powerpc: Use a datatype for instructionsJordan Niethe1-38/+38
2020-05-19powerpc: Introduce functions for instruction equalityJordan Niethe1-6/+6
2020-05-19powerpc: Use a function for getting the instruction op codeJordan Niethe1-2/+2
2020-05-19powerpc: Use an accessor for instructionsJordan Niethe1-9/+9
2020-05-19powerpc: Use a macro for creating instructions from u32sJordan Niethe1-28/+29
2020-05-19powerpc: Change calling convention for create_branch() et. al.Jordan Niethe1-55/+79
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152Thomas Gleixner1-5/+1
2019-04-21powerpc/lib: Refactor __patch_instruction() to use __put_user_asm()Russell Currey1-2/+2
2019-04-20powerpc: Remove duplicate headersJagadeesh Pagadala1-1/+0
2018-12-19powerpc: simplify patch_instruction_site() and patch_branch_site()Christophe Leroy1-16/+0
2018-10-14powerpc: handover page flags with a pgprot_t parameterChristophe Leroy1-2/+1
2018-10-02powerpc/lib: fix book3s/32 boot failure due to code patchingChristophe Leroy1-8/+12
2018-09-18powerpc: Avoid code patching freed init sectionsMichael Neuling1-0/+6
2018-08-08powerpc/asm: Add a patch_site macro & helpers for patching instructionsMichael Ellerman1-0/+16
2018-01-21powerpc/lib/feature-fixups: use raw_patch_instruction()Christophe Leroy1-2/+2
2018-01-21powerpc/lib/code-patching: refactor patch_instruction()Christophe Leroy1-15/+15
2017-12-11powerpc/modules: Don't try to restore r2 after a sibling callJosh Poimboeuf1-0/+5
2017-11-22powerpc: Fix boot on BOOK3S_32 with CONFIG_STRICT_KERNEL_RWXChristophe Leroy1-4/+2
2017-07-03powerpc/lib/code-patching: Use alternate map for patch_instruction()Balbir Singh1-4/+167
2017-04-23powerpc/kprobes: Convert __kprobes to NOKPROBE_SYMBOL()Naveen N. Rao1-1/+3
2017-02-27kprobes: move kprobe declarations to asm-generic/kprobes.hLuis R. Rodriguez1-0/+1
2017-02-10powerpc/kprobes: Implement OptprobesAnju T1-0/+21
2017-02-10powerpc: Add helper to check if offset is within relative branch rangeAnju T1-1/+23
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2013-12-02powerpc: Move the patch_exception to a common placeKevin Hao1-0/+15
2012-09-05powerpc: Don't use __put_user() in patch_instructionBenjamin Herrenschmidt1-1/+1
2012-07-03powerpc: Have patch_instruction detect faultsSteven Rostedt1-4/+10
2008-07-24PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architecturesAndrea Righi1-0/+1
2008-07-01powerpc: Add tests of the code patching routinesMichael Ellerman1-0/+298
2008-07-01powerpc: Add new code patching routinesMichael Ellerman1-0/+107
2008-07-01powerpc: Make create_branch() return errors if the branch target is too largeMichael Ellerman1-2/+8
2008-07-01powerpc: Allow create_branch() to return errorsMichael Ellerman1-8/+12
2008-07-01powerpc: Move code patching code into arch/powerpc/lib/code-patching.cMichael Ellerman1-0/+33