Files
Linux/kernel
Punit Agrawal 5d6de7d7fb kprobes: Use helper to parse boolean input from userspace
The "enabled" file provides a debugfs interface to arm / disarm
kprobes in the kernel. In order to parse the buffer containing the
values written from userspace, the callback manually parses the user
input to convert it to a boolean value.

As taking a string value from userspace and converting it to boolean
is a common operation, a helper kstrtobool_from_user() is already
available in the kernel. Update the callback to use the common helper
to parse the write buffer from userspace.

Link: https://lkml.kernel.org/r/163163032637.489837.10678039554832855327.stgit@devnote2

Signed-off-by: Punit Agrawal <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
2021-09-30 21:24:04 -04:00
..
…
…
…
…
…
2021-08-11 13:11:12 -07:00
2021-09-08 15:32:35 -07:00
…
…
…
…
…
…
…
…
2021-09-08 15:32:34 -07:00
…
…
…
…
…
…
…
…
…
2021-08-11 14:47:16 +02:00
…
…
…
…
…
…
…