[PATCH net v2 0/2] af_unix: Fix inq_len update issue
From: jianyu.li
Date: Thu May 28 2026 - 07:06:45 EST
From: Jianyu Li <jianyu.li@xxxxxxxxxxxx>
This series fix the problem that inq_len is inconsistent with
actual remaining byte count when only part of a skb is consumed.
Changes:
v2:
- Patch 1: Improve lock usage in unix_stream_read_generic()
- Patch 2: Follow reverse xmas tree ordering in partial_read test case
v1: https://lore.kernel.org/netdev/20260527065342.2463433-1-jianyu.li@xxxxxxxxxxxx/
Jianyu Li (2):
af_unix: Fix inq_len update problem in partial read
af_unix: Add test for SCM_INQ on partial read
net/unix/af_unix.c | 11 ++--
tools/testing/selftests/net/af_unix/scm_inq.c | 54 ++++++++++++++++++-
2 files changed, 58 insertions(+), 7 deletions(-)
--
2.45.2