Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp323351lqt; Mon, 18 Mar 2024 08:49:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwmrJmXs+o+Iq1E65yi097gCthpE9W2Lpo/CwQfodaE4OnhkzlW0ZaRiv/MQK7D3RRORxB8mXz09fakMZYjhF72RKEHbLUw1DstqJbvw== X-Google-Smtp-Source: AGHT+IEmEe9C/xlDqosT80v9Q7tn2VZwfkXoVDmItZipLOSsFzn2oEAndz/dzcaZLEUrf0INo7Ej X-Received: by 2002:a17:902:b78c:b0:1dd:9fef:67b3 with SMTP id e12-20020a170902b78c00b001dd9fef67b3mr12179137pls.13.1710776957226; Mon, 18 Mar 2024 08:49:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710776957; cv=pass; d=google.com; s=arc-20160816; b=T6J1TJ5X0LFtGEjvFCMy+sxHQPnCcawlATJwABqW0gYhdGVfVnXrWADk+8YRjyX7IH cR/qFtNRums/eo474VTSGHqg7jf0+dlHoVaZBeX7DQpbEaT5CeAzbtWwhuUDjFYnKxDO GXAtenUzPa8vVIZrKZFfuDcB1XJ61dTJc0soQuU+kAFTay0nALw9W0EbxL/Qjm8+xRAZ 9tPw5a8vV4l9FIsjZtem778JY3RKI81dEDjqf/K2vQikTg0vhlyr+zU5EZzOqRwLKEsv wL4O3EYw8ztbYZoBpXGDIU2aWJTtanCXa/gUh1//qSp0zlohG/yW610/56ioXv8Ze5dE 9Y4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=tMcTLIZd/gyXmq9cy0Ui2RhEupA7Y+nji/nuW24XF1M=; fh=yydX9RxJMt4uFjdFjTJdsVQs9O0V8cf2Vqhxv6ARVOg=; b=YR5EXfdJeOu73z/W9lrC93tyWWUDUBYBAvv56IxneYWM3SOk0frDcyOujgNFkLzy6U yhvANACIw7bYwbmlG4cgjs/RLN1a5xs2SNyUGwWumK619m8vV1zam4i7Z66aGweiI6p7 5JwQtmdTT0KNZWC8pYNIVuTQjGzAm8Jxlvf69kRJfO3d/h+dB0BTp3zyOecuhsNrSneA 5HaB2cHsEYTOJX0jO6ESk7BhE7bt2/6nKjTrW+8wsZcd2O6APz0Mb+IQtaA7RYYX5mgK Jasw5T6te2hFOu+QZe6Za1LfeUZzdPobN0u9pi/XNAqE1AjHeKRocaI9a4n5DTkoTU4o eI0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=cnmFKxKn; arc=pass (i=1 spf=pass spfdomain=posteo.net dkim=pass dkdomain=posteo.net dmarc=pass fromdomain=posteo.net); spf=pass (google.com: domain of linux-kernel+bounces-106331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l1-20020a170902d04100b001e00e69e626si3328804pll.554.2024.03.18.08.49.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 08:49:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106331-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=@posteo.net header.s=2017 header.b=cnmFKxKn; arc=pass (i=1 spf=pass spfdomain=posteo.net dkim=pass dkdomain=posteo.net dmarc=pass fromdomain=posteo.net); spf=pass (google.com: domain of linux-kernel+bounces-106331-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106331-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net 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 EA2DCB21682 for ; Mon, 18 Mar 2024 15:49:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CEAFE52F85; Mon, 18 Mar 2024 15:48:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b="cnmFKxKn" Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (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 95280524D1 for ; Mon, 18 Mar 2024 15:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710776939; cv=none; b=GePUGfcBxXZlZ4oxMwgbjiX7bh62GQQCFb7SNnr2kAuj5nt5WR0I71zfRCU3+zKf1rIz1FGN8+PWQ/Q/iFZ1re/LC7E05IzHIk2jZtVHApIY7gXu8gKXX7glwhDl5ms3dzKKRL2XOzhLYuqcTbSubsoU7DLo1kdm/fFqm0hoqUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710776939; c=relaxed/simple; bh=P2mrvSmlzie7vQSmXFC32spGcjtp7fqRoyCIPryRSRs=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=ORHXxqsDnDk1W43TtaAdno8JOky3//hCa515ZtYOETjL2/froY1sY9cX71gdXBd5qbXEb6qoc2c7cp+Ym5kkF/M/EYS3MxwX/wcdPvLQnXrcrcpiaZHWDEHNfTSA9wkQHeQjcVsmaHS4xvUowxqOW6J8CugFEIoMzeDBSU1RZvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net; spf=pass smtp.mailfrom=posteo.net; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b=cnmFKxKn; arc=none smtp.client-ip=185.67.36.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5A32324002B for ; Mon, 18 Mar 2024 16:48:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710776928; bh=P2mrvSmlzie7vQSmXFC32spGcjtp7fqRoyCIPryRSRs=; h=Content-Type:Mime-Version:Subject:From:Date:Cc: Content-Transfer-Encoding:Message-Id:To:From; b=cnmFKxKn0+APiCmv+eTDjs1YIjZIlKWbTZGXwgTagExa64Mhli4fMPXr0gnetBNEE 1PmCuYANO3Z2waQvNfuC4vSRhFJRkIj7lxsW7UCxKzjLrWMfTArP0GiMZ5T7LPnc0G tab6HG4Hdu8DvlWZpw4fXzT5Mev3PjDpz9XhE4vLn9FN8mS9JVyvh8MJ0Hx590SBJy gCa5yIJSVml3mRFzchAbFO32u7R1sTN+vfX3b+Ey2oS7jbgzAKvR5ZOMQNXgMvo0uh r374aMUqrPHsBQJbBjpPlR9sRAbgpyjkoK1ZLJsSlXkFK0Dce9YsrRR7SYRVtKKQjN /9KS3YrhMM5eQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TyzmD52ZWz9rxN; Mon, 18 Mar 2024 16:48:44 +0100 (CET) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: [syzbot] [v9fs?] KMSAN: uninit-value in v9fs_evict_inode From: Charalampos Mitrodimas In-Reply-To: <0000000000002750950613c53e72@google.com> Date: Mon, 18 Mar 2024 15:48:11 +0000 Cc: asmadeus@codewreck.org, ericvh@kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux_oss@crudebyte.com, lucho@ionkov.net, syzkaller-bugs@googlegroups.com, v9fs@lists.linux.dev Content-Transfer-Encoding: quoted-printable Message-Id: References: <0000000000002750950613c53e72@google.com> To: syzbot please test uv in v9fs_evict_inode #syz test = https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index 360a5304ec03..5d046f63e5fa 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c @@ -353,7 +353,8 @@ void v9fs_evict_inode(struct inode *inode) filemap_fdatawrite(&inode->i_data); #ifdef CONFIG_9P_FSCACHE - fscache_relinquish_cookie(v9fs_inode_cookie(v9inode), false); + if (v9fs_inode_cookie(v9inode)) + fscache_relinquish_cookie(v9fs_inode_cookie(v9inode), = false); #endif }=