Wentao Zhang 8ae537061f samples/bpf: use kprobe and urandom_read_iter
14c174633f34 ("random: remove unused tracepoints") removed all the
tracepoints from drivers/char/random.c, one of which,
random:urandom_read.

1b388e7765f2 ("random: convert to using fops->read_iter()") replaced
kernel function urandom_read with urandom_read_iter.
Therefore, kprobe on urandom_read is not working any more:

Fix breakage by replacing tracepoint with kprobing and replacing
urandom_read with urandom_read_iter.

TEST PLAN:
PASS: build-pkgs -c -p linux
PASS: build-pkgs -c -p linux-rt
PASS: make -j 16 M=samples/bpf
PASS: sudo samples/bpf/test_overhead

Closes-Bug: 1999136

Change-Id: Idac88160050abaa7ebe7098a54792650f2d691cd
Signed-off-by: Wentao Zhang <wentao.zhang@windriver.com>
2022-12-13 10:39:49 +08:00

37 lines
2.0 KiB
Plaintext

0001-Notification-of-death-of-arbitrary-processes.patch
0002-PCI-Add-ACS-quirk-for-Intel-Fortville-NICs.patch
0003-affine-compute-kernel-threads.patch
0004-Affine-irqs-and-workqueues-with-kthread_cpus.patch
0005-Make-kernel-start-eth-devices-at-offset.patch
0006-intel-iommu-allow-ignoring-Ethernet-device-RMRR-with.patch
0007-turn-off-write-same-in-smartqpi-driver.patch
0008-Allow-dmar-quirks-for-broken-bioses.patch
0009-tpm-ignore-burstcount-to-improve-tpm_tis-send-perfor.patch
0010-bpf-cgroups-Fix-cgroup-v2-fallback-on-v1-v2-mixed-mo.patch
0011-scsi-smartpqi-Enable-sas_address-sysfs-for-SATA-dev.patch
0012-workqueue-Affine-rescuer-threads-and-unbound-wqs.patch
0015-Revert-scsi-sd-Inline-sd_probe_part2.patch
0016-Revert-commit-f049cf1a7b.patch
0017-genirq-Export-affinity-setter-for-modules.patch
0018-genirq-Provide-new-interfaces-for-affinity-hints.patch
0019-ixgbe-Use-irq_update_affinity_hint.patch
0020-Add-auxiliary-bus-support.patch
0021-driver-core-auxiliary-bus-move-slab.h-from-include-f.patch
0022-driver-core-auxiliary-bus-make-remove-function-retur.patch
0023-driver-core-auxiliary-bus-minor-coding-style-tweaks.patch
0024-driver-core-auxiliary-bus-Fix-auxiliary-bus-shutdown.patch
0025-driver-core-auxiliary-bus-Fix-calling-stage-for-auxi.patch
0026-driver-core-auxiliary-bus-Remove-unneeded-module-bit.patch
0027-driver-core-auxiliary-bus-Fix-memory-leak-when-drive.patch
0028-driver-core-auxiliary-bus-Enable-by-default.patch
0029-Enable-CONFIG_PAGE_POOL-by-default.patch
0030-x86-Enumerate-AVX512-FP16-CPUID-feature-flag.patch
0031-KVM-x86-Expose-AVX512_FP16-for-supported-CPUID.patch
0032-tools-headers-cpufeatures-Sync-with-the-kernel-sourc.patch
0033-rcu-Avoid-running-boost-kthreads-on-isolated-CPUs.patch
0034-xfs-drop-submit-side-trans-alloc-for-append-ioends.patch
0035-xfs-open-code-ioend-needs-workqueue-helper.patch
0036-xfs-drop-unused-ioend-private-merge-and-setfilesize-.patch
0037-xfs-drop-unnecessary-setfilesize-helper.patch
0038-samples-bpf-use-kprobe-and-urandom_read_iter.patch