aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/signal.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2024-10-02 13:35:20 +0000
committerMichael S. Tsirkin <[email protected]>2024-10-07 15:47:55 +0000
commita194c985973276b2f280428c848f20369bb83734 (patch)
treeb7f027a729a11184b7a3e5814937349f4a82f241 /rust/helpers/signal.c
parentvirtio_console: fix misc probe bugs (diff)
downloadkernel-a194c985973276b2f280428c848f20369bb83734.tar.gz
kernel-a194c985973276b2f280428c848f20369bb83734.zip
vsock/virtio: use GFP_ATOMIC under RCU read lock
virtio_transport_send_pkt in now called on transport fast path, under RCU read lock. In that case, we have a bug: virtio_add_sgs is called with GFP_KERNEL, and might sleep. Pass the gfp flags as an argument, and use GFP_ATOMIC on the fast path. Link: https://lore.kernel.org/all/hfcr2aget2zojmqpr4uhlzvnep4vgskblx5b6xf2ddosbsrke7@nt34bxgp7j2x Fixes: efcd71af38be ("vsock/virtio: avoid queuing packets when intermediate queue is empty") Reported-by: Christian Brauner <[email protected]> Cc: Stefano Garzarella <[email protected]> Cc: Luigi Leonardi <[email protected]> Message-ID: <3fbfb6e871f625f89eb578c7228e127437b1975a.1727876449.git.mst@redhat.com> Signed-off-by: Michael S. Tsirkin <[email protected]> Reviewed-by: Pankaj Gupta <[email protected]> Reviewed-by: Christian Brauner <[email protected]> Reviewed-by: Luigi Leonardi <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]>
Diffstat (limited to 'rust/helpers/signal.c')
0 files changed, 0 insertions, 0 deletions