aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kprobes.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-10kprobes: Fix possible use-after-free issue on kprobe registrationZheng Yejian1-6/+12
2024-02-08kprobes: Remove unnecessary initial values of variablesLi zeming1-2/+2
2023-12-01kprobes: consistent rcu api usage for kretprobe holderJP Kobryn1-2/+2
2023-10-18kprobes: kretprobe scalability improvementwuqiang.matt1-52/+39
2023-08-23kernel: kprobes: Use struct_size()Ruan Jinjie1-4/+2
2023-07-29kprobes: Prohibit probing on CFI preamble symbolMasami Hiramatsu (Google)1-1/+13
2023-07-12Merge tag 'probes-fixes-v6.5-rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-4/+4
2023-07-11kernel: kprobes: Remove unnecessary ‘0’ valuesLi zeming1-3/+3
2023-07-11kprobes: Remove unnecessary ‘NULL’ values from correct_ret_addrLi zeming1-1/+1
2023-06-06fprobe: Pass return address to the handlersMasami Hiramatsu (Google)1-0/+1
2023-02-21x86/kprobes: Fix arch_check_optimized_kprobe check within optimized_kprobe rangeYang Jihong1-1/+1
2023-02-21x86/kprobes: Fix __recover_optprobed_insn check optimizing logicYang Jihong1-1/+1
2023-02-21kprobes: Fix to handle forcibly unoptimized kprobes on freeing_listMasami Hiramatsu (Google)1-13/+10
2022-12-15kprobes: kretprobe events missing on 2-core KVM guestwuqiang1-6/+2
2022-11-28kprobes: Fix check for probe enabled in kill_kprobe()Li Huafei1-8/+8
2022-11-18kprobes: Skip clearing aggrprobe's post_handler in kprobe-on-ftrace caseLi Huafei1-1/+7
2022-11-04kprobe: reverse kp->flags when arm_kprobe failedLi Qiang1-1/+4
2022-10-03Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-nextJakub Kicinski1-1/+5
2022-09-26kprobes: Add new KPROBE_FLAG_ON_FUNC_ENTRY kprobe flagJiri Olsa1-1/+5
2022-09-08kprobes: Prohibit probes in gate areaChristian A. Ehrhardt1-0/+1
2022-08-20kprobes: don't call disarm_kprobe() for disabled kprobesKuniyuki Iwashima1-4/+5
2022-08-02kprobes: Forbid probing on trampoline and BPF code areasChen Zhongjin1-1/+2
2022-05-29Merge tag 'trace-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/rost...Linus Torvalds1-73/+71
2022-05-26kprobes: Fix build errors with CONFIG_KRETPROBES=nMasami Hiramatsu1-73/+71
2022-04-26kprobes: Fix KRETPROBES when CONFIG_KRETPROBE_ON_RETHOOK is setAdam Zabrocki1-1/+1
2022-03-28kprobes: Use rethook for kretprobe if possibleMasami Hiramatsu1-20/+104
2022-03-15x86/ibt,kprobes: Cure sym+0 equals fentry woesPeter Zijlstra1-14/+52
2022-03-15x86/ibt,ftrace: Search for __fentry__ locationPeter Zijlstra1-6/+2
2022-01-22kprobe: move sysctl_kprobes_optimization to kprobes.cXiaoming Ni1-4/+26
2021-12-01kprobes: Limit max data_size of the kretprobe instancesMasami Hiramatsu1-0/+3
2021-11-01Merge tag 'trace-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/rost...Linus Torvalds1-227/+280
2021-10-21kprobes: convert tests to kunitSven Schnelle1-3/+0
2021-10-05sched: Move kprobes cleanup out of finish_task_switch()Thomas Gleixner1-4/+4
2021-09-30x86/kprobes: Fixup return address in generic trampoline handlerMasami Hiramatsu1-0/+11
2021-09-30kprobes: Enable stacktrace from pt_regs in kretprobe handlerMasami Hiramatsu1-0/+7
2021-09-30kprobes: Add kretprobe_find_ret_addr() for searching return addressMasami Hiramatsu1-26/+83
2021-09-30kprobes: treewide: Remove trampoline_address from kretprobe_trampoline_handler()Masami Hiramatsu1-2/+1
2021-09-30kprobes: treewide: Replace arch_deref_entry_point() with dereference_symbol_d...Masami Hiramatsu1-6/+1
2021-09-30kprobes: Use bool type for functions which returns boolean valueMasami Hiramatsu1-13/+13
2021-09-30kprobes: treewide: Use 'kprobe_opcode_t *' for the code address in get_optimi...Masami Hiramatsu1-5/+5
2021-09-30kprobes: Add assertions for required lockMasami Hiramatsu1-7/+12
2021-09-30kprobes: Fix coding style issuesMasami Hiramatsu1-114/+122
2021-09-30kprobes: treewide: Cleanup the error messages for kprobesMasami Hiramatsu1-20/+16
2021-09-30kprobes: Make arch_check_ftrace_location staticPunit Agrawal1-2/+2
2021-09-30kprobe: Simplify prepare_kprobe() by dropping redundant versionPunit Agrawal1-14/+9
2021-09-30kprobes: Use helper to parse boolean input from userspacePunit Agrawal1-22/+6
2021-09-30kprobes: Do not use local variable when creating debugfs filePunit Agrawal1-2/+1
2021-07-11Merge tag 'locking-urgent-2021-07-11' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-0/+2
2021-07-05kprobe/static_call: Restore missing static_call_text_reserved()Peter Zijlstra1-0/+2
2021-07-02Merge tag 'powerpc-5.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-2/+12
2021-07-02Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-1/+1
2021-07-01kprobes: remove duplicated strong free_insn_page in x86 and s390Barry Song1-1/+1
2021-06-01kprobes: Remove kprobe::fault_handlerPeter Zijlstra1-19/+0
2021-05-23kprobes: Allow architectures to override optinsn page allocationChristophe Leroy1-2/+12
2021-02-19kprobes: Fix to delay the kprobes jump optimizationMasami Hiramatsu1-10/+21
2021-02-09kprobes: Warn if the kprobe is reregisteredMasami Hiramatsu1-5/+8
2021-01-29kretprobe: Avoid re-registration of the same kretprobe earlierWang ShaoBo1-0/+4
2021-01-29tracing/kprobe: Fix to support kretprobe events on unloaded modulesMasami Hiramatsu1-9/+25
2020-11-07Merge branch 'linus' into perf/kprobesIngo Molnar1-1/+23
2020-10-12kprobes: Replace rp->free_instance with freelistPeter Zijlstra1-32/+24
2020-10-12kprobes: Remove kretprobe hashPeter Zijlstra1-166/+70
2020-09-21kprobes: Init kprobes in early_initcallMasami Hiramatsu1-1/+1
2020-09-18kprobes: tracing/kprobes: Fix to kill kprobes on initmem after bootMasami Hiramatsu1-0/+22
2020-09-18kprobes: Fix to check probe enabled before disarm_kprobe_ftrace()Masami Hiramatsu1-2/+3
2020-09-14kprobes: Fix to check probe enabled before disarm_kprobe_ftrace()Masami Hiramatsu1-2/+3
2020-09-08kprobes: Make local functions staticMasami Hiramatsu1-5/+4
2020-09-08kprobes: Free kretprobe_instance with RCU callbackMasami Hiramatsu1-19/+6
2020-09-08kprobes: Remove NMI context checkMasami Hiramatsu1-12/+4
2020-09-08kprobes: Add generic kretprobe trampoline handlerMasami Hiramatsu1-0/+98
2020-08-07Merge tag 'trace-v5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-3/+21
2020-08-06kprobes: Fix compiler warning for !CONFIG_KPROBES_ON_FTRACEMuchun Song1-3/+14
2020-08-03kprobes: Fix NULL pointer dereference at kprobe_ftrace_handlerMuchun Song1-0/+7
2020-07-28kprobes: Remove unnecessary module_mutex locking from kprobe_optimizer()Masami Hiramatsu1-3/+0
2020-07-28Merge tag 'v5.8-rc7' into perf/core, to pick up fixesIngo Molnar1-2/+2
2020-07-08kprobes: Do not expose probe addresses to non-CAP_SYSLOGKees Cook1-2/+2
2020-07-08kallsyms: Refactor kallsyms_show_value() to take credKees Cook1-2/+2
2020-07-02Merge branch 'perf/vlbr'Peter Zijlstra1-13/+48
2020-06-16kretprobe: Prevent triggering kretprobe from within kprobe_flush_taskJiri Olsa1-0/+24
2020-06-16kprobes: Remove redundant arch_disarm_kprobe() callMasami Hiramatsu1-2/+0
2020-06-16kprobes: Fix to protect kick_kprobe_optimizer() by kprobe_mutexMasami Hiramatsu1-1/+2
2020-06-16kprobes: Use non RCU traversal APIs on kprobe_tables if possibleMasami Hiramatsu1-9/+20
2020-06-16kprobes: Suppress the suspicious RCU warning on kprobesMasami Hiramatsu1-1/+2
2020-06-15kprobes: Add perf ksymbol events for kprobe insn pagesAdrian Hunter1-0/+12
2020-06-15kprobes: Add symbols for kprobe insn pagesAdrian Hunter1-0/+45
2020-06-04kernel/kprobes.c: convert to use DEFINE_SEQ_ATTRIBUTE macroKefeng Wang1-28/+6
2020-06-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-nextLinus Torvalds1-1/+1
2020-05-19kprobes: Prevent probes in .noinstr.text sectionThomas Gleixner1-0/+18
2020-05-12kprobes: Support NOKPROBE_SYMBOL() in modulesMasami Hiramatsu1-0/+17
2020-05-12kprobes: Support __kprobes blacklist in modulesMasami Hiramatsu1-0/+42
2020-05-12kprobes: Lock kprobe_mutex while showing kprobe_blacklistMasami Hiramatsu1-1/+7
2020-04-27sysctl: pass kernel pointers to ->proc_handlerChristoph Hellwig1-1/+1
2020-01-09kprobes: Fix optimize_kprobe()/unoptimize_kprobe() cancellation logicMasami Hiramatsu1-24/+43
2019-11-27kprobes: Set unoptimized flag after unoptimizing codeMasami Hiramatsu1-1/+3
2019-09-20Merge tag 'trace-v5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-16/+40
2019-09-16Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-1/+1
2019-09-05kprobes: Prohibit probing on BUG() and WARN() addressMasami Hiramatsu1-1/+2
2019-08-31kprobes: Allow kprobes coexist with livepatchMasami Hiramatsu1-16/+40
2019-08-19kprobes: Fix potential deadlock in kprobe_optimizer()Andrea Righi1-4/+4
2019-07-31kprobes: Use CONFIG_PREEMPTIONThomas Gleixner1-1/+1
2019-07-18Merge tag 'trace-v5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/roste...Linus Torvalds1-2/+1
2019-07-16kprobes: Fix to init kprobes in subsys_initcallMasami Hiramatsu1-1/+1
2019-06-03kprobes: no need to check return value of debugfs_create functionsGreg Kroah-Hartman1-19/+6
2019-05-30treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156Thomas Gleixner1-14/+1
2019-05-25kprobes: Initialize kprobes at postcore_initcallMasami Hiramatsu1-2/+1
2019-04-16kprobes: Fix error check when reusing optimized probesMasami Hiramatsu1-4/+2
2019-02-13kprobes: Search non-suffixed symbol in blacklistMasami Hiramatsu1-1/+20
2018-12-26Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds1-14/+53
2018-12-17kprobes: Blacklist symbols in arch-defined prohibited areaMasami Hiramatsu1-14/+53
2018-11-27kprobes: Replace synchronize_sched() with synchronize_rcu()Paul E. McKenney1-5/+5
2018-09-12kprobes: Don't call BUG_ON() if there is a kprobe in use on free listMasami Hiramatsu1-1/+7
2018-09-12kprobes: Return error if we fail to reuse kprobe instead of BUG_ON()Masami Hiramatsu1-7/+20
2018-09-12kprobes: Remove pointless BUG_ON() from reuse_unused_kprobe()Masami Hiramatsu1-1/+0
2018-09-12kprobes: Remove pointless BUG_ON() from add_new_kprobe()Masami Hiramatsu1-2/+0
2018-09-12kprobes: Remove pointless BUG_ON() from disarming processMasami Hiramatsu1-1/+0
2018-06-21kprobes: Replace %p with other pointer typesMasami Hiramatsu1-12/+10
2018-06-21kprobes: Show address of kprobes if kallsyms doesMasami Hiramatsu1-5/+9
2018-06-21kprobes: Show blacklist addresses as same as kallsyms doesMasami Hiramatsu1-2/+10
2018-06-21kprobes: Make list and blacklist root user read onlyMasami Hiramatsu1-2/+2
2018-06-21kprobes: Don't check the ->break_handler() in generic kprobes codeMasami Hiramatsu1-34/+5
2018-06-21kprobes: Remove jprobe API implementationMasami Hiramatsu1-77/+1
2018-04-25kprobes: Fix random address output of blacklist fileThomas Richter1-1/+1
2018-02-16kprobes: Propagate error from disarm_kprobe_ftrace()Jessica Yu1-25/+53
2018-02-16kprobes: Propagate error from arm_kprobe_ftrace()Jessica Yu1-25/+75
2017-10-20kprobes: Disable the jprobes APIsMasami Hiramatsu1-0/+2
2017-10-20kprobes: Use synchronize_rcu_tasks() for optprobe with CONFIG_PREEMPT=yMasami Hiramatsu1-6/+8
2017-10-18Revert "kprobes: Warn if optprobe handler tries to change execution path"Naveen N. Rao1-4/+1
2017-09-28kprobes: Warn if optprobe handler tries to change execution pathMasami Hiramatsu1-1/+4
2017-09-28kprobes/x86: Make insn buffer always ROX and use text_poke()Masami Hiramatsu1-1/+1
2017-07-08kprobes: Ensure that jprobe probepoints are at function entryNaveen N. Rao1-2/+6
2017-07-08kprobes: Simplify register_jprobes()Naveen N. Rao1-14/+16
2017-07-08kprobes: Rename [arch_]function_offset_within_entry() to [arch_]kprobe_on_fun...Naveen N. Rao1-4/+4
2017-07-03Merge branch 'smp-hotplug-for-linus' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-27/+32
2017-05-26kprobes/x86: Fix to set RWX bits correctly before releasing trampolineMasami Hiramatsu1-1/+1
2017-05-26kprobes: Cure hotplug lock ordering issuesThomas Gleixner1-27/+32
2017-05-17kprobes: Document how optimized kprobes are removed from module unloadSteven Rostedt (VMware)1-0/+6
2017-05-17tracing/kprobes: Enforce kprobes teardown after testingThomas Gleixner1-1/+1
2017-05-05Merge tag 'powerpc-4.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-14/+18
2017-04-20powerpc/kprobes: Fix handling of function offsets on ABIv2Naveen N. Rao1-3/+4
2017-04-20kprobes: Convert kprobe_lookup_name() to a functionNaveen N. Rao1-12/+8
2017-04-20kprobes: Skip preparing optprobe if the probe is ftrace-basedMasami Hiramatsu1-2/+9
2017-03-15trace/kprobes: Fix check for kretprobe offset within function entryNaveen N. Rao1-14/+26
2017-03-14kprobes: Convert kprobe_exceptions_notify to use NOKPROBE_SYMBOLNaveen N. Rao1-2/+3
2017-03-03kretprobes: Ensure probe location is at function entryNaveen N. Rao1-0/+13
2017-02-22Merge tag 'powerpc-4.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/p...Linus Torvalds1-0/+6
2017-02-10kprobes: Introduce weak variant of kprobe_exceptions_notify()Naveen N. Rao1-0/+6
2017-01-14kprobes, extable: Identify kprobes trampolines as kernel text areaMasami Hiramatsu1-19/+54
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
2016-10-11kprobes: include <asm/sections.h> instead of <asm-generic/sections.h>Christoph Hellwig1-1/+1
2015-08-04perf/x86/hw_breakpoints: Disallow kernel breakpoints unless kprobe-safeAndy Lutomirski1-1/+1
2015-02-13kprobes: makes kprobes/enabled works correctly for optimized kprobes.Wang Nan1-2/+9
2015-02-13kprobes: set kprobes_all_disarmed earlier to enable re-optimization.Wang Nan1-1/+6
2015-02-12Merge branch 'for-linus' of git://ftp.arm.linux.org.uk/~rmk/linux-armLinus Torvalds1-2/+2
2015-01-20module: remove mod arg from module_free, rename module_memfree().Rusty Russell1-1/+1
2015-01-13kprobes: Pass the original kprobe for preparing optimized kprobeMasami Hiramatsu1-2/+2
2014-12-11Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s39...Linus Torvalds1-7/+11
2014-11-21kprobes: Add IPMODIFY flag to kprobe_ftrace_opsMasami Hiramatsu1-1/+1
2014-10-27kprobes: introduce weak arch_check_ftrace_location() helper functionHeiko Carstens1-7/+11
2014-08-08kprobes: Skip kretprobe hit in NMI context to avoid deadlockMasami Hiramatsu1-1/+12
2014-07-18kprobes: Fix "Failed to find blacklist" probing errors on ia64 and ppc64Masami Hiramatsu1-5/+9
2014-04-24kprobes: Show blacklist entries via debugfsMasami Hiramatsu1-8/+53
2014-04-24kprobes: Use NOKPROBE_SYMBOL macro instead of __kprobesMasami Hiramatsu1-26/+41
2014-04-24kprobes: Allow probe on some kprobe functionsMasami Hiramatsu1-77/+76
2014-04-24kprobes: Introduce NOKPROBE_SYMBOL() macro to maintain kprobes blacklistMasami Hiramatsu1-48/+52
2014-04-24kprobes: Prohibit probing on .entry.text codeMasami Hiramatsu1-5/+8
2013-11-13kprobes: use KSYM_NAME_LEN to size identifier buffersJoe Mario1-2/+2
2013-09-11kprobes: allow to specify custom allocator for insn cachesHeiko Carstens1-2/+18
2013-09-11kprobes: unify insn cachesHeiko Carstens1-54/+21
2013-07-03kprobes: handle empty/invalid input to debugfs "enabled" fileMathias Krause1-0/+3
2013-05-28kprobes: Fix to free gone and unused optprobesMasami Hiramatsu1-10/+20
2013-04-18kprobes: Fix a double lock bug of kprobe_mutexMasami Hiramatsu1-6/+13
2013-02-27hlist: drop the node parameter from iteratorsSasha Levin1-21/+14
2013-02-19Merge branch 'for-3.9-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-8/+15
2013-02-09kprobes: fix wait_for_kprobe_optimizer()Tejun Heo1-8/+15
2013-01-21kprobes/x86: Move ftrace-based kprobe code into kprobes-ftrace.cMasami Hiramatsu1-4/+4
2012-09-13kprobes/x86: Fix to support jprobes on ftrace-based kprobeMasami Hiramatsu1-3/+0
2012-07-31kprobes/x86: ftrace based optimization for x86Masami Hiramatsu1-1/+1
2012-07-31kprobes: introduce ftrace based optimizationMasami Hiramatsu1-13/+92
2012-07-31kprobes: Move locks into appropriate functionsMasami Hiramatsu1-21/+42
2012-07-31kprobes: cleanup to separate probe-able checkMasami Hiramatsu1-37/+45
2012-07-31kprobes: Inverse taking of module_mutex with kprobe_mutexSteven Rostedt1-2/+2
2012-03-05kprobes: return proper error code from register_kprobe()Prashanth Nageshappa1-5/+7
2012-02-03kprobes: fix a memory leak in function pre_handler_kretprobe()Jiang Liu1-1/+5
2012-01-23kprobes: initialize before using a hlistAnanth N Mavinakayanahalli1-1/+1
2012-01-12kprobes: silence DEBUG_STRICT_USER_COPY_CHECKS=y warningStephen Boyd1-1/+1
2011-10-31kernel: Map most files to use export.h instead of module.hPaul Gortmaker1-1/+1
2011-09-13locking, kprobes: Annotate the hash locks and kretprobe.lock as rawThomas Gleixner1-17/+17
2011-07-15kprobes: Return -ENOENT if probe point doesn't existMasami Hiramatsu1-10/+23
2011-01-07Merge branch 'for-2.6.38' of git://git.kernel.org/pub/scm/linux/kernel/git/tj...Linus Torvalds1-4/+4
2010-12-17kprobes: Use this_cpu_opsChristoph Lameter1-4/+4
2010-12-06kprobes: Use text_poke_smp_batch for unoptimizingMasami Hiramatsu1-6/+4
2010-12-06kprobes: Use text_poke_smp_batch for optimizingMasami Hiramatsu1-10/+7
2010-12-06kprobes: Reuse unused kprobeMasami Hiramatsu1-2/+30
2010-12-06kprobes: Support delayed unoptimizingMasami Hiramatsu1-77/+233
2010-12-06kprobes: Separate kprobe optimizing code from optimizerMasami Hiramatsu1-17/+26
2010-12-06kprobes: Cleanup disabling and unregistering pathMasami Hiramatsu1-56/+72
2010-12-06kprobes: Rename old_p to more appropriate nameMasami Hiramatsu1-47/+46
2010-10-29jump label: Fix error with preempt disable holding mutexSteven Rostedt1-13/+13
2010-10-28jump label: Fix deadlock b/w jump_label_mutex vs. text_mutexJason Baron1-0/+6
2010-10-27Merge branch 'perf-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-3/+4
2010-10-25kprobes: Remove redundant text_mutex lock in optimizeMasami Hiramatsu1-3/+4