[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250210-vsock-linger-nullderef-v3-0-ef6244d02b54@rbox.co>
Date: Mon, 10 Feb 2025 13:14:59 +0100
From: Michal Luczaj <mhal@...x.co>
To: Stefano Garzarella <sgarzare@...hat.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Simon Horman <horms@...nel.org>
Cc: netdev@...r.kernel.org, Michal Luczaj <mhal@...x.co>,
syzbot+9d55b199192a4be7d02c@...kaller.appspotmail.com,
Luigi Leonardi <leonardi@...hat.com>
Subject: [PATCH net v3 0/2] vsock: null-ptr-deref when SO_LINGER enabled
syzbot pointed out that a recent patching of a use-after-free introduced a
null-ptr-deref. This series fixes the problem and adds a test.
Fixes fcdd2242c023 ("vsock: Keep the binding until socket destruction").
Signed-off-by: Michal Luczaj <mhal@...x.co>
---
Changes in v3:
- Don't touch the old comment [Stefano, Luigi]
- Collect tags [Stefano, Luigi]
- Link to v2: https://lore.kernel.org/r/20250206-vsock-linger-nullderef-v2-0-f8a1f19146f8@rbox.co
Changes in v2:
- Collect tags [Luigi]
- Explain the reason for the explicit set_flag(SOCK_DEAD) [Stefano]
- Link to v1: https://lore.kernel.org/r/20250204-vsock-linger-nullderef-v1-0-6eb1760fa93e@rbox.co
---
Michal Luczaj (2):
vsock: Orphan socket after transport release
vsock/test: Add test for SO_LINGER null ptr deref
net/vmw_vsock/af_vsock.c | 8 +++++++-
tools/testing/vsock/vsock_test.c | 41 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 1 deletion(-)
---
base-commit: 011b0335903832facca86cd8ed05d7d8d94c9c76
change-id: 20250203-vsock-linger-nullderef-cbe4402ad306
Best regards,
--
Michal Luczaj <mhal@...x.co>
Powered by blists - more mailing lists