From: Shuah Khan Date: Tue, 11 Nov 2014 17:04:13 +0000 (-0700) Subject: selftests/net: psock_fanout seg faults in sock_fanout_read_ring() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~119^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf8e7211ac7858d3df4a4203c18da7a58560784;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed