Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp702360rdb; Fri, 2 Feb 2024 00:57:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IHIGFA0snMlTw0TeslMJIn1eE/SARptacQlcANtMZAXEzNjAIVi0McWxVDEmsCnbN9kINV+ X-Received: by 2002:a05:6808:3c48:b0:3bd:9152:2e35 with SMTP id gl8-20020a0568083c4800b003bd91522e35mr7523580oib.32.1706864273493; Fri, 02 Feb 2024 00:57:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706864273; cv=pass; d=google.com; s=arc-20160816; b=LElDY+kYhwz0C7vlhFi6z10wZMPhLKNggOFd3s94HFBNtyONdWv8lDsCi2UOaEp3tQ r+rGptJQe3ltJ+WjB7kSyQzV22OrJoqLJtTiMX9uC5WMueMs25RQeknXH8jBv7yW4ZR5 D+udMpZ3gjuApKsX5wfVOBpnkqGFgJ6GbCEq9zaP8hRBnGhnfy/N9iQTaDHiq8c2Invk iFQ7+AQr2N7zh42Zt16ENXkdfOTQecuu5TSkquaumRvakYlOTV8WHIkBr1X91hqeQ7zy ZvrYn2XLEyev0aKNKne40KbMRFL5/viuQZ7vRmNILBWbc09fT2r9vZuDfoW5BdSEIdyp eZbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=cifVdN/BWCjPEATbgcrIPOECirbrweYCh5LvFuV7M6o=; fh=kq6li7PeIZXGgtXgnHM6ecH9iUNt1uW55segfNTM41s=; b=eNqivoDl98yYZTyqf5LxSPeSkEaDGbJbu56Jas7ZRaAUQiFg9U2WGhMzOcNL/RwyZl PSyp/3uZ+toFXdSk3lKczeWbGnlGmkAuA79Yh38Kltv1AwIY69h0rYIjbGrQS0hIPQgh QuG1XvxMtbHT4fmQVIcC1iBdRMKR4wEZ2IhfB56qpECAu/K2xsd/NVUVYOP99YtXgfih kAkalZgXPIJ8mYNYWkZodnrdShwxsnVEXI4ycFSFIwUvNfZGINKnK+fBtGMNI3EMiPl5 nkr32eJ2rVjc74Wxi58n7rPvIRL5Bz8SNlPX5pRnJ+zfv77ZWigLTxkNVhciBX2ka7Hi YBnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=iLGZnmEC; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel+bounces-49475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=windriver.com X-Forwarded-Encrypted: i=1; AJvYcCXSe29PXcXCzerHn9TNpMHdaaUoTWZBLluWKlCF50WcQceFVLBe0QJxzyZ0rqmlJtusgDgdKbsviKGROMYOYrB2p2jzPpQqL4LiSESXPw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w6-20020aa79a06000000b006d9bdf9dce5si1191843pfj.230.2024.02.02.00.57.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 00:57:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@windriver.com header.s=PPS06212021 header.b=iLGZnmEC; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel+bounces-49475-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49475-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=windriver.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 36721B212CF for ; Fri, 2 Feb 2024 08:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 822251864A; Fri, 2 Feb 2024 08:35:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=windriver.com header.i=@windriver.com header.b="iLGZnmEC" Received: from mx0b-0064b401.pphosted.com (mx0b-0064b401.pphosted.com [205.220.178.238]) (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 596D6182B3 for ; Fri, 2 Feb 2024 08:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.178.238 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706862955; cv=none; b=A9Fnrqck860H5N+UdH0fgMlCaMJr32g8tEhdIxq4cvUYakvUJfKP7XUFOfjLe1jHq2b49jw2bi1F/KKjQzCbxDbU1c4P0mMFl+0CalLgJ6RWO76+AkgVSlMdaTF5c1E0moUth511ZfsyRg8wfbw+oJ+sqknRR4TnhTk1GJeZhjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706862955; c=relaxed/simple; bh=8eV5u1OGTI4t/SRy8w9CenjXu8cgkdrUvYo8GQYd8m4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZKU5mWB2BtGRUCgiCJ6PnOM8H7oJLqZ2OBARxy9STV7fIlY62+qhLLcaWNpqhuV1Buwd781tvot0eHWHH4BDUJp8aiIeZTlnujl7DcX7MRr5PdqEZbq0DX4XHiF5CtI83yEknzceHKCzYfzoihebpplnQU6XMdRAHOYSALhR3EU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=windriver.com; spf=pass smtp.mailfrom=windriver.com; dkim=pass (2048-bit key) header.d=windriver.com header.i=@windriver.com header.b=iLGZnmEC; arc=none smtp.client-ip=205.220.178.238 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=windriver.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=windriver.com Received: from pps.filterd (m0250811.ppops.net [127.0.0.1]) by mx0a-0064b401.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4126UcML019911; Fri, 2 Feb 2024 08:35:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriver.com; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PPS06212021; bh=cifVdN/BWCjPEATbgcrIPOECirbrweYCh5LvFuV7M6o=; b= iLGZnmEC6smQCTqQnxEV9nCf90FsypouoilGQgSMjIM0oLHIB5GspxqNAg+tfb4F A0sNY1pG73pyKkfFffmTVz9rAbvrvzpMhHzA7zSWl4cR7ikR8qi7E/AyU2HX98Kw oezpAnxE0n6+RVq45hZfitGSzy0ud0KxSWTxB+Xm1A5bSaz6kiTqrSknZi1Ck7oj RCKFP9po+/NcdZplUaQHnRTiAkaPdrtfYWrQ66NXCqO0AR2gX/LO9nJG6ZBT4RaM wB1fk/B7pQqMdhphgO9XNeWTIARDSZCZo8PwYF63+LgvJoW15OyOtqtjWLaXgvXE /gvQY1dZEAIvSVnx2vRl8g== Received: from ala-exchng01.corp.ad.wrs.com (ala-exchng01.wrs.com [147.11.82.252]) by mx0a-0064b401.pphosted.com (PPS) with ESMTPS id 3w0pvg08f6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 02 Feb 2024 08:35:49 +0000 (GMT) Received: from ala-exchng01.corp.ad.wrs.com (147.11.82.252) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 2 Feb 2024 00:35:49 -0800 Received: from pek-lpd-ccm6.wrs.com (147.11.136.210) by ala-exchng01.corp.ad.wrs.com (147.11.82.252) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 2 Feb 2024 00:35:48 -0800 From: Lizhi Xu To: CC: Subject: Re: [syzbot] [v9fs?] KASAN: slab-use-after-free Read in v9fs_stat2inode_dotl Date: Fri, 2 Feb 2024 16:35:46 +0800 Message-ID: <20240202083546.2409378-1-lizhi.xu@windriver.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <00000000000055ecb906105ed669@google.com> References: <00000000000055ecb906105ed669@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: Q5pBYCrsXb9eoV-v_bYgVqFOXQyoU7ka X-Proofpoint-ORIG-GUID: Q5pBYCrsXb9eoV-v_bYgVqFOXQyoU7ka X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-02_02,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 mlxlogscore=512 suspectscore=0 clxscore=1011 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402020062 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c index ef9db3e03506..6ad86b604877 100644 --- a/fs/9p/vfs_inode_dotl.c +++ b/fs/9p/vfs_inode_dotl.c @@ -82,7 +82,6 @@ struct inode *v9fs_fid_iget_dotl(struct super_block *sb, struct p9_fid *fid) if (retval) goto error; - v9fs_stat2inode_dotl(st, inode, 0); v9fs_set_netfs_context(inode); v9fs_cache_inode_get_cookie(inode); retval = v9fs_get_acl(inode, fid);