[PATCH net-next 0/3] net: qrtr: implement socket shutdown()
From: Chunkai Deng
Date: Fri Oct 16 2026 - 04:59:38 EST
QRTR does not support shutdown(), so a thread blocked in recv() cannot
be woken up by another thread. This series adds it.
Patch 1 stops recvmsg() from holding the socket lock while it waits for
data. Patch 2 stops sendmsg() from turning every allocation failure into
-ENOMEM, so errors such as -ENETRESET and -EPIPE reach userspace. Patch 3
adds qrtr_shutdown().
Patches 1 and 2 address long-standing behaviour rather than regressions,
so they carry no Fixes: tags.
Signed-off-by: Chunkai Deng <chunkai.deng@xxxxxxxxxxxxxxxx>
---
To: Manivannan Sadhasivam <mani@xxxxxxxxxx>
To: "David S. Miller" <davem@xxxxxxxxxxxxx>
To: Eric Dumazet <edumazet@xxxxxxxxxx>
To: Jakub Kicinski <kuba@xxxxxxxxxx>
To: Paolo Abeni <pabeni@xxxxxxxxxx>
To: Simon Horman <horms@xxxxxxxxxx>
Cc: linux-arm-msm@xxxxxxxxxxxxxxx
Cc: netdev@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Cc: tao.zhang1@xxxxxxxxxxxxxxxx
Cc: peter.chen@xxxxxxxxxxxxxxxx
Cc: jeff.johnson@xxxxxxxxxxxxxxxx
Cc: konrad.dybcio@xxxxxxxxxxxxxxxx
Cc: christopher.lew@xxxxxxxxxxxxxxxx>
---
Chunkai Deng (3):
net: qrtr: do not take the sock lock on blocking recv
net: qrtr: propagate sock_alloc_send_skb() errors from sendmsg()
net: qrtr: implement shutdown()
net/qrtr/af_qrtr.c | 51 ++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 38 insertions(+), 13 deletions(-)
---
base-commit: 34cf6dafc47441dfb6b356a095b89c3585a93714
change-id: 20260710-qrtr-add-shutdown-5f10da5af721
Best regards,
--
Chunkai Deng <chunkai.deng@xxxxxxxxxxxxxxxx>