Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cf25e3a5 authored by John Stultz's avatar John Stultz Committed by Gerrit - the friendly Code Review server
Browse files

xt_qtaguid: Fix panic caused by processing non-full socket.



In an issue very similar to 4e461c77 (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.

Change-Id: Icee0df589ea8d61a999e8c7ea3afdcf4a40b412b
CRs-Fixed: 1035969
Reported-by: default avatarMilosz Wasilewski <milosz.wasilewski@linaro.org>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
Git-commit: cc0063b8
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarBryse Flowers <bflowers@codeaurora.org>
parent 52d2c42b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment