summaryrefslogtreecommitdiffstats
path: root/kernel/seccomp.c
diff options
context:
space:
mode:
authorJorgen Hansen <jhansen@vmware.com>2017-11-24 06:25:28 -0800
committerDavid S. Miller <davem@davemloft.net>2017-11-26 04:21:50 +0900
commitafbea2cd253b5198350dfd8edb963567d05827d6 (patch)
tree5c56e35dc86f14af77db9983856e39f4485f5a4a /kernel/seccomp.c
parenta60b3f515d30d0fe8537c64671926879a3548103 (diff)
downloadlinux-afbea2cd253b5198350dfd8edb963567d05827d6.tar.gz
linux-afbea2cd253b5198350dfd8edb963567d05827d6.tar.bz2
linux-afbea2cd253b5198350dfd8edb963567d05827d6.zip
VSOCK: Don't call vsock_stream_has_data in atomic context
When using the host personality, VMCI will grab a mutex for any queue pair access. In the detach callback for the vmci vsock transport, we call vsock_stream_has_data while holding a spinlock, and vsock_stream_has_data will access a queue pair. To avoid this, we can simply omit calling vsock_stream_has_data for host side queue pairs, since the QPs are empty per default when the guest has detached. This bug affects users of VMware Workstation using kernel version 4.4 and later. Testing: Ran vsock tests between guest and host, and verified that with this change, the host isn't calling vsock_stream_has_data during detach. Ran mixedTest between guest and host using both guest and host as server. v2: Rebased on top of recent change to sk_state values Reviewed-by: Adit Ranadive <aditr@vmware.com> Reviewed-by: Aditya Sarwade <asarwade@vmware.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Jorgen Hansen <jhansen@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/seccomp.c')
0 files changed, 0 insertions, 0 deletions