linux/tools/testing/selftests/net
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
..
.gitignore net: Add .gitignore to networking selftests directory. 2013-04-19 16:36:12 -04:00
Makefile net: filter: BPF testsuite 2014-05-12 00:23:55 -04:00
psock_fanout.c selftests/net: psock_fanout seg faults in sock_fanout_read_ring() 2014-11-11 21:43:34 -05:00
psock_lib.h selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests 2013-04-07 17:02:24 -04:00
psock_tpacket.c tools: selftests: psock_tpacket: get rid of macro wrappers 2013-07-02 00:23:57 -07:00
run_afpackettests selftests: net: add PF_PACKET TPACKET v1/v2/v3 selftests 2013-04-07 17:02:24 -04:00
run_netsocktests net: Move selftests to common net/ subdirectory. 2013-03-20 15:07:56 -04:00
socket.c net: Move selftests to common net/ subdirectory. 2013-03-20 15:07:56 -04:00