OrangePi_CM5/samples
Tiezhu Yang 5109802499 samples/kretprobes: Fix return value if register_kretprobe() failed
[ Upstream commit f76fbbbb5061fe14824ba5807c44bd7400a6b4e1 ]

Use the actual return value instead of always -1 if register_kretprobe()
failed.

E.g. without this patch:

 # insmod samples/kprobes/kretprobe_example.ko func=no_such_func
 insmod: ERROR: could not insert module samples/kprobes/kretprobe_example.ko: Operation not permitted

With this patch:

 # insmod samples/kprobes/kretprobe_example.ko func=no_such_func
 insmod: ERROR: could not insert module samples/kprobes/kretprobe_example.ko: Unknown symbol in module

Link: https://lkml.kernel.org/r/1635213091-24387-2-git-send-email-yangtiezhu@loongson.cn

Fixes: 804defea1c ("Kprobes: move kprobe examples to samples/")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 14:04:11 +01:00
..
auxdisplay
…
binderfs
…
bpf samples: bpf: Fix tracex7 error raised on the missing argument 2021-09-18 13:40:23 +02:00
configfs
…
connector
…
ftrace samples/ftrace: Mark my_tramp[12]? global 2020-11-30 21:42:48 -05:00
hidraw
…
hw_breakpoint
…
kdb
…
kfifo kfifo: fix ternary sign extension bugs 2021-05-14 09:50:45 +02:00
kmemleak
…
kobject
…
kprobes samples/kretprobes: Fix return value if register_kretprobe() failed 2021-11-18 14:04:11 +01:00
livepatch
…
mei
…
nitro_enclaves
…
pidfd
…
pktgen samples: pktgen: add missing IPv6 option to pktgen scripts 2021-09-15 09:50:40 +02:00
qmi
…
rpmsg
…
seccomp
…
timers
…
trace_events
…
trace_printk
…
uhid
…
v4l
…
vfio-mdev samples: vfio-mdev: fix error handing in mdpy_fb_probe() 2021-06-10 13:39:15 +02:00
vfs
…
watch_queue watch_queue: Drop references to /dev/watch_queue 2021-03-04 11:37:59 +01:00
watchdog
…
Kconfig watch_queue: Drop references to /dev/watch_queue 2021-03-04 11:37:59 +01:00
Makefile
…