summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2016-05-12 11:17:52 -0700
committerJohn Stultz <john.stultz@linaro.org>2016-05-12 11:24:10 -0700
commitcc0063b8eb44f08bb899fb47d562c67d73b7245b (patch)
treec8f7209abe96f5f16b364dc1b2951c414f13a686 /scripts
parent239dd543887daf9337567e68e4de7f42efa53a48 (diff)
xt_qtaguid: Fix panic caused by processing non-full socket.
In an issue very similar to 4e461c777e3 (xt_qtaguid: Fix panic caused by synack processing), we were seeing panics on occasion in testing. In this case, it was the same issue, but caused by a different call path, as the sk being returned from qtaguid_find_sk() was not a full socket. Resulting in the sk->sk_socket deref to fail. This patch adds an extra check to ensure the sk being retuned is a full socket, and if not it returns NULL. Reported-by: Milosz Wasilewski <milosz.wasilewski@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions