From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from r3-24.sinamail.sina.com.cn (r3-24.sinamail.sina.com.cn [202.108.3.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B759E26AF4 for ; Thu, 7 May 2026 01:31:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.108.3.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778117469; cv=none; b=WEe7SR8OYVcIUARCS2DfrMYdcLYyzFScbGnFL7f9RA4CJMsKJjz86T2WUiqJ1c5/GDJ+HjQK0I/r7+dTjhPneY1hf7BBt1I4CDM6JouaPE5ICG50PmmSYF93WZpLjk6zErFUMOhIWjq0Z4NZ8OkhXa+wbwQrRhycWVfNSP0iSk4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778117469; c=relaxed/simple; bh=WCfCButf2+j5nMmCa5m+4bGZzZXC/FV24/sFP4RYCqk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sSwxUwWL4PY38rng2ORiYmZbN3johNivKLAKgXKtSBmw61I5c0CRVF7Qilif84MNElGVP1hp8PgES3yb7bHo3HAx1wZwNQOpvLOrJKjxEPmyy4m2Uze5oSqCwbybh+Q0mi0tQnaPjNQzRvD6a/KDz3J3kAaOo93YaSI3VZi1NqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b=lM2mX4Oj; arc=none smtp.client-ip=202.108.3.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=sina.com header.i=@sina.com header.b="lM2mX4Oj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1778117465; bh=GWt8XggQlOIgg33sRgKrcouPS0ymKPHA6ORuMaKnnig=; h=From:Subject:Date:Message-ID; b=lM2mX4OjMwNclVTg+ozr+ri5k0V2Oij8wQo7TLUyBh39bVp9qy/5WdZJCPX0BJnVU V1kTt62ITwck8fJ7UMDD27Pjb8tSxbo0rjC0MBEi2leFwQovcUKR9lumSUkiGdNoz0 2o4IDCtoXLUl7edNCLpZhieM1FhOaSV+J7l/ftN8= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.62.144]) by sina.com (10.54.253.31) with ESMTP id 69FBEB2F00007D36; Thu, 7 May 2026 09:30:24 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 8848546816214 X-SMAIL-UIID: 6668EB8716434D9DA9F5909163178E8E-20260507-093024-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [rdma] general protection fault in kernel_sock_shutdown (4) Date: Thu, 7 May 2026 09:30:19 +0800 Message-ID: <20260507013021.391-1-hdanton@sina.com> In-Reply-To: <69fb46ae.a00a0220.387fc1.0002.GAE@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit > Date: Wed, 06 May 2026 06:48:30 -0700 [thread overview] > syzbot has found a reproducer for the following issue on: > > HEAD commit: 74fe02ce122a Merge tag 'wq-for-7.1-rc2-fixes' of git://git.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16e895ce580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=59da38148f3a3d24 > dashboard link: https://syzkaller.appspot.com/bug?extid=d8f76778263ab65c2b21 > compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13a613ba580000 #syz test --- x/net/socket.c +++ y/net/socket.c @@ -3782,7 +3782,11 @@ EXPORT_SYMBOL(kernel_getpeername); int kernel_sock_shutdown(struct socket *sock, enum sock_shutdown_cmd how) { - return READ_ONCE(sock->ops)->shutdown(sock, how); + const struct proto_ops *ops = READ_ONCE(sock->ops); + if (ops) + return ops->shutdown(sock, how); + else + return 0; } EXPORT_SYMBOL(kernel_sock_shutdown); --