samples/bpf: Fix broken tracex1 due to kprobe argument change
Yaqi Chen authored
[ Upstream commit 137733d0 ]

>From commit c0bbbdc3

 ("__netif_receive_skb_core: pass skb by
reference"), the first argument passed into __netif_receive_skb_core
has changed to reference of a skb pointer.

This commit fixes by using bpf_probe_read_kernel.
Signed-off-by: default avatarYaqi Chen <chendotjs@gmail.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210416154803.37157-1-chendotjs@gmail.com

Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
3d81ed79
Name Last commit Last update
..
auxdisplay License cleanup: add SPDX GPL-2.0 license identifier to files with no license
blackfin samples: move blackfin gptimers-example from Documentation
bpf samples/bpf: Fix broken tracex1 due to kprobe argument change
configfs configfs: remove old API
connector License cleanup: add SPDX GPL-2.0 license identifier to files with no license
hidraw License cleanup: add SPDX GPL-2.0 license identifier to files with no license
hw_breakpoint perf: Add context field to perf_event
kdb kdb: Add kdb kernel module sample
kfifo kfifo: fix ternary sign extension bugs
kobject samples/kobject: be explicit in the module license
kprobes samples/kretprobe: fix the wrong type
livepatch livepatch: allow removal of a disabled patch
mei mei: samples: fix a signedness bug in amt_host_if_call()
mic/mpssd misc: vop: add round_up(x,4) for vring_size to avoid kernel panic
pktgen samples: pktgen: fix proc_cmd command result check logic
rpmsg rpmsg: Allow callback to return errors
seccomp License cleanup: add SPDX GPL-2.0 license identifier to files with no license
sockmap bpf: avoid preempt enable/disable in sockmap using tcp_skb_cb region
statx statx: Include a mask for stx_attributes in struct statx
timers License cleanup: add SPDX GPL-2.0 license identifier to files with no license
trace_events Merge tag 'spdx_identifiers-4.14-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
trace_printk tracing: Add trace_printk sample code
uhid License cleanup: add SPDX GPL-2.0 license identifier to files with no license
v4l media: v4l2-pci-skeleton: constify vb2_ops structures
vfio-mdev vfio-mdev/samples: Use u8 instead of char for handle functions
watchdog License cleanup: add SPDX GPL-2.0 license identifier to files with no license
Kconfig statx: Add a system call to make enhanced file info available
Makefile statx: Add a system call to make enhanced file info available