Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp232592lqa; Fri, 26 Apr 2024 23:30:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTyxhaHcEaL+FB3I/C0lH6IwfpBtqG1JlIGe+IYZfWoZktOkukBhI/Uuc7sTAxB3yzvz9vkJhkBWg34lTOeWvawAAjoxEyBng8PcuNYA== X-Google-Smtp-Source: AGHT+IHb4Q6Kp9VYRWnsEVqrrQGAVPwJJFn+2xhc5ao2bDzlLxTPxl/xjAdzylgO+rqDxNX7V6d+ X-Received: by 2002:a50:f61b:0:b0:572:325a:8515 with SMTP id c27-20020a50f61b000000b00572325a8515mr4164306edn.36.1714199407594; Fri, 26 Apr 2024 23:30:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714199407; cv=pass; d=google.com; s=arc-20160816; b=vkq6o07iqfPdfviRGQP1w2yvXBsZJl69whg7Y/4BAQASAigiKxd3zRriXjLrKPu1SE JgTDtkROZLy/g7zfPg/qqKLDsvM1VjH8/IzrY2TeO4wv+2JturdY39CxNXlW8ZDIqvLc xP2GGPj4ejHqQUichR2hKD4RfNq0nNm0IeeY3F/nWfCZ5qJaIHVNW30gCXrITbZZAlNT f2hMuMD3uoPrbdE/YaHE0zvMYbqOiY5DSLyUZuaKqQeFMspOQYt1vqac6nCAa9Qe+05Q HmXo/obCl9p0KWywkDSEGISblzyAV2rc/6a9iExZ/UinvAKKk1zYOtJiHP0q543hEIoH UBEw== 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=4jwf6hAi/PzdFUwFT1wPlquqrTjMxX3bpw+5STcNf1A=; fh=yaXYBe9sbkmvlk2mHY0QupCsCyiBqDs07jTvbP5wp9k=; b=kWMHlPzW5QxZEPS8pNGrVNsqSjgxvjq8tdnAp80XPZITnCPaiz96oiYAcdFl+NGIji 4NI5SBu4cLdd2fCV4Qt5zgMtB80faN0Woa6lWyCvB1gpeuEiRcgTtxO4BaLyZszAJPH1 Cqc7i304ICKtE11BXPfzcswd1KY5ksnz2jObqFCaObzuL9Qpu9ggE80x2rYe7ATzMdp7 QWUNxgGmHnkkl1iNf7aKi4JgM6B0gXFCcWfO3Ja7yl2IKzzFnBFl6IYMiaLwyWHO0vJA HgRu4rVE5q65fS77SUTLaBz9pgyuP0uMyzz48XRY9zaxwaf3EDax8efng13vmO0gr0nW 70yg==; 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-160919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160919-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g15-20020a0564021ecf00b0057269123e70si686848edg.530.2024.04.26.23.30.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 23:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-160919-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160919-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 55C931F22B8F for ; Sat, 27 Apr 2024 06:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 225AA4086A; Sat, 27 Apr 2024 06:30:00 +0000 (UTC) Received: from mail78-36.sinamail.sina.com.cn (mail78-36.sinamail.sina.com.cn [219.142.78.36]) (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 6AE163BBF8 for ; Sat, 27 Apr 2024 06:29:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=219.142.78.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714199399; cv=none; b=k9kGsFTkaIilAgFBxK7LxVEUPzg1k6kSUzWwcVwZtOo9hNOGkRWJaAPxmbsjSWLtsSM2Gbpyw5it6+lwF4u1HHfO+w/EfdNJ7qf2T/wHJKRZRU9KTi4d6O9LreH2evR1jZnMhT5Kc3c5+mmuBYw/Be5B0/oIPUlEDKy7/0+7E40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714199399; c=relaxed/simple; bh=i4HN5zq4f1V4J13/jsElv8KRel0oE49ZwJBAuLiUVu0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=UdGpDimqJFzBeVYMtApoSk7NU8fW4FwsUhglmaoxjFs1+voaTI/HXmymIW1jMNP8ZE4uxqyFLYuXN4jrW3fy2OoZ2n9B9IWeZtnpGHRcvlNluzHhbgqGFpRzcezXl8zLA9SnOWBsOTvgOfJvK8eCb27UJOgwMJkSGsY11NDO3Us= 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=219.142.78.36 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.88.50.155]) by sina.com (172.16.235.25) with ESMTP id 662C9B5300007B25; Sat, 27 Apr 2024 14:29:42 +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: 77753834209983 X-SMAIL-UIID: 321C4BAB486745F28D299C10446BE23B-20240427-142942-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: Sat, 27 Apr 2024 14:29:43 +0800 Message-Id: <20240427062943.3685-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 On Fri, 26 Apr 2024 05:00:21 -0700 > syzbot found the following issue on: > > HEAD commit: e33c4963bf53 Merge tag 'nfsd-6.9-5' of git://git.kernel.or.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12499380980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git e33c4963bf53 --- x/fs/open.c +++ y/fs/open.c @@ -952,7 +952,9 @@ static int do_dentry_open(struct file *f if (!open) open = f->f_op->open; if (open) { + ihold(inode); error = open(inode, f); + iput(inode); if (error) goto cleanup_all; } --