Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2567459lqb; Tue, 28 May 2024 04:14:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQtapuHFgxl3/JjwMM5qJEGhnCRD+2WUIMMZbhttpllrqOvK9TNd4r3IanIZKzt4ogUHNR4nHNKCEFN6EV7rv5G9OUJzlHDmUOweGdtA== X-Google-Smtp-Source: AGHT+IFyJBkH7FPNavyYDQlgJ8vLdeQDW1HIOfD1Vi3sMrtPFtbnBMndigq9Qg+TBFiZ36ab/RPs X-Received: by 2002:ac8:7fd3:0:b0:43a:a0a3:61c0 with SMTP id d75a77b69052e-43fafb4e883mr166093151cf.26.1716894880725; Tue, 28 May 2024 04:14:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716894880; cv=pass; d=google.com; s=arc-20160816; b=o1qlCLhUsBH8CcdoIqysNw6zDNK2XHNVdE9kJokfwQwJNYTZb93Z1MQldSRrQ2UjX7 rJTAyZUncB+CCcVlt28mKkCttYMzcCl6vmtxkxQ5UMTRLyM/URQiuW/1w2Gz54qag7U6 t+ORrIJpHcSm6Tfn6y6utVHMWBokWcIBqQEUU41kt7CSCsce+NqrH0fEXTaa6jL6pfRH uPMZOfOHCBO9F/1qnbKpKiQHqffMPflrND1OomY+H1a8uY/iVPGEmhvjJ/88xoTgpLqA iaxJuCfyz9ntOxhQW1Ryew/3tDxIof3xhnm89SQCz9nkBgk8nupCvGu25GpnrRVTV5za 7E4Q== 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; bh=qJF/C+E1CH/5H1F9ueOKpUkqasAkEGF0YIqcZbhn/TQ=; fh=yaXYBe9sbkmvlk2mHY0QupCsCyiBqDs07jTvbP5wp9k=; b=cqQR6qmUfRDWaElbvEQGfa0Jq02pF4NP92bdfCDdXwkrUlycXrM/dDy/8ze9iwd0LW sFXm0vifA73YLps2GcSdVIAQ8c3pxH9XspaQfYCQ1KWQmIskmnJV9RiGp4Xzwn6VJPPd KRqhMwZrjgzD8y5l1ZHBC6V8GjJUYPtATIs1zfCYWVumeESwNYBu7yoQpZRFUAsfXAZT XSTwP21KIKiBcUwM49qNX1470DIjZpPHZl1A+KPbMmTnzSP9N+kd2SPTkrBjOHomZzso wxl/9j0OhVW40rgguSGZoUK/5cCdoA4I7SkZMY2ciUJjRUfPFjNkVrMtiiBSRSzFKgvC D/Jw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-192156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192156-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fdb7d7f94si9203601cf.241.2024.05.28.04.14.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 04:14:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-192156-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192156-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 998C01C21CD1 for ; Tue, 28 May 2024 11:14:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 55C3116C682; Tue, 28 May 2024 11:14:22 +0000 (UTC) Received: from smtp134-33.sina.com.cn (smtp134-33.sina.com.cn [180.149.134.33]) (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 B686443AA4 for ; Tue, 28 May 2024 11:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=180.149.134.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716894861; cv=none; b=im/YcOma48+5Q0PR4ngiFNLqHTTBMOBM9xtiLBxRdZT1uLtyHy4GVcHR83UvTucOqruOit6Pm++kzVRR9re1Vg3It4wwEW8++Ve6ZNuuxNEwH/hg8qvgPTSEzFh/cY67KyWLmd0fhr2ixSiX4k6sDMfNU9PuLV7lk2YIS1DNax4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716894861; c=relaxed/simple; bh=/gFFAU2auLhmhxu454w6yyFhUWIb3Wtfh3/SVGitNgc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jqwUMbDIpQh7jgVtnaRYhqPBRYghw/QuJfWGihLIfPpoYQbgvO+8+LDVIAeWE/b+9LfP0URj1GNngAfeNWXnQlwUnF4pAvNxMJHMp7fK8BPv3pYnKSQDKLYJlyBMxEq+D1ipJTYM6TxRwKkZgXyZy4VXN/x6tBjKHmS3eK3DsxI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=180.149.134.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.118.66.255]) by sina.com (10.185.250.21) with ESMTP id 6655BB390000097A; Tue, 28 May 2024 19:08:43 +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: 9875393408442 X-SMAIL-UIID: B577EAE081C847F68FF11E5A971C23A2-20240528-190843-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [ntfs3?] KASAN: slab-use-after-free Read in chrdev_open Date: Tue, 28 May 2024 19:08:30 +0800 Message-Id: <20240528110830.2701-1-hdanton@sina.com> In-Reply-To: <000000000000f386f90616fea5ef@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 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master --- x/fs/open.c +++ y/fs/open.c @@ -952,7 +952,13 @@ static int do_dentry_open(struct file *f if (!open) open = f->f_op->open; if (open) { + struct super_block *sb = inode->i_sb; + + error = -ENODEV; + if (!super_trylock_shared(sb)) + goto cleanup_all; error = open(inode, f); + up_read(&sb->s_umount); if (error) goto cleanup_all; } --