linux/arch
Naveen N. Rao 2e38eb04c9 kprobes: Do not increment probe miss count in the fault handler
Kprobes has a counter 'nmissed', that is used to count the number of
times a probe handler was not called. This generally happens when we hit
a kprobe while handling another kprobe.

However, if one of the probe handlers causes a fault, we are currently
incrementing 'nmissed'. The comment in fault handler indicates that this
can be used to account faults taken by the probe handlers. But, this has
never been the intention as is evident from the comment above 'nmissed'
in 'struct kprobe':

	/*count the number of times this probe was temporarily disarmed */
	unsigned long nmissed;

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lkml.kernel.org/r/20210601120150.672652-1-naveen.n.rao@linux.vnet.ibm.com
2021-06-03 15:47:26 +02:00
..
alpha Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
arc kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
arm kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
arm64 kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
csky kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
h8300 arch: rearrange headers inclusion order in asm/bitops for m68k, sh and h8300 2021-05-06 19:24:11 -07:00
hexagon Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
ia64 kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
m68k Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
microblaze tracing updates for 5.13 2021-05-03 11:19:54 -07:00
mips kprobes: Remove kprobe::fault_handler 2021-06-01 16:00:08 +02:00
nds32 tracing updates for 5.13 2021-05-03 11:19:54 -07:00
nios2 Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2021-05-02 09:14:01 -07:00
openrisc drivers/char: remove /dev/kmem for good 2021-05-07 00:26:34 -07:00
parisc Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
powerpc kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
riscv kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
s390 kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
sh kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
sparc kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
um Merge branch 'akpm' (patches from Andrew) 2021-05-07 00:34:51 -07:00
x86 kprobes: Do not increment probe miss count in the fault handler 2021-06-03 15:47:26 +02:00
xtensa Kbuild updates for v5.13 (2nd) 2021-05-08 10:00:11 -07:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig Add Landlock, a new LSM from Mickaël Salaün <mic@linux.microsoft.com> 2021-05-01 18:50:44 -07:00