From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from r3-22.sinamail.sina.com.cn (r3-22.sinamail.sina.com.cn [202.108.3.22]) (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 1F57819E97B for ; Mon, 16 Feb 2026 00:59:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.108.3.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771203598; cv=none; b=G/SYVxANN0oMXuHVuOghoV/6YSKClNmH7pSO4KhKGc1JGQlFjsF3ogXgqxionhKK9irrgigHLIyogvKtIoOmQYBRRukzckmS1sw1nVjoo876YJtvtZ/aHSFlGnkmb4jc7tgJ+1hsRnM590HnL2RNSzyffYlzu6udVxTebja4O9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771203598; c=relaxed/simple; bh=9w81N7nZMRPaascyP919xQWu3VQl5nZVGjhTGzuziTI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Lb8kIi9Gco8ZQ68zY6ILiGnYjYcmQRBo74Z6VZbXxqGeUjNdyYxPz0BF8tUrf7ynTjPuJ8x6n38fr0uFptkFRZzZZllzcRxAY0ymy3/speCKLeagtSk/LzduPbO6ItjSmgTXYeTftt0/se1r7rC2uy2nfDDzdpcno9Pbl1RTVPI= 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=dwS3UVpv; arc=none smtp.client-ip=202.108.3.22 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="dwS3UVpv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1771203594; bh=jxfKujf2nAL+EvqtXBRGOofBwzKsMcrQ8cUJP0oVLrI=; h=From:Subject:Date:Message-ID; b=dwS3UVpvdt2tMDEJOnK8JRkoo8c8+lsmRdXYWQ6kG2/iUn5eNIneCpf/j0nUbvuCL COvSa3CfIW6Lmhc53+qN1uPQgKYuA0SIt25r6OzMDtqWLqpl1KdOyCftf8oP4pOxCb 1aWEl+Ne2H/v5LVFIpLKiLsqQCY68f9yaFfftOkk= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([114.249.62.144]) by sina.com (10.54.253.33) with ESMTP id 69926C05000025BF; Mon, 16 Feb 2026 08:59:51 +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: 113756685194 X-SMAIL-UIID: 47DB3A2FB89B481FA693F2D0FF9DC1CF-20260216-085951-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [bpf?] [net?] KASAN: slab-use-after-free Read in sk_msg_recvmsg Date: Mon, 16 Feb 2026 08:59:38 +0800 Message-ID: <20260216005939.3130-1-hdanton@sina.com> In-Reply-To: <69922ac9.a70a0220.2c38d7.00e0.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: Sun, 15 Feb 2026 12:21:29 -0800 [thread overview] > Hello, > > syzbot found the following issue on: > > HEAD commit: a040afa3bca4 gve: fix probe failure if clock read fails > git tree: net > console output: https://syzkaller.appspot.com/x/log.txt?x=165bf05a580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=e3161cabe5a361ff > dashboard link: https://syzkaller.appspot.com/bug?extid=9307c991a6d07ce6e6d8 > compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13dd245a580000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16ecdb2a580000 #syz test --- x/net/core/skmsg.c +++ y/net/core/skmsg.c @@ -417,7 +417,9 @@ int sk_msg_recvmsg(struct sock *sk, stru int peek = flags & MSG_PEEK; struct sk_msg *msg_rx; int i, copied = 0; + static DEFINE_MUTEX(lk); + mutex_lock(&lk); msg_rx = sk_psock_peek_msg(psock); while (copied != len) { struct scatterlist *sge; @@ -485,6 +487,7 @@ int sk_msg_recvmsg(struct sock *sk, stru msg_rx = sk_psock_peek_msg(psock); } out: + mutex_unlock(&lk); return copied; } EXPORT_SYMBOL_GPL(sk_msg_recvmsg); --