kernel-hacking-2024-linux-s.../tools/testing
Shuah Khan fbf8e7211a selftests/net: psock_fanout seg faults in sock_fanout_read_ring()
The while loop in sock_fanout_read_ring() checks mmap region
bounds after access, causing it to segfault. Fix it to check
count before accessing header->tp_status. This problem can be
reproduced consistently when the test in run as follows:

    make -C tools/testing/selftests TARGETS=net run_tests
    or
    make run_tests from tools/testing/selftests
    or
    make run_test from tools/testing/selftests/net

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-11 21:43:34 -05:00
..
fault-injection
ktest ktest: Don't bother with bisect good or bad on replay 2014-10-07 16:34:25 -04:00
selftests selftests/net: psock_fanout seg faults in sock_fanout_read_ring() 2014-11-11 21:43:34 -05:00