From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from r3-23.sinamail.sina.com.cn (r3-23.sinamail.sina.com.cn [202.108.3.23]) (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 B215732B130 for ; Thu, 30 Jul 2026 07:54:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.108.3.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785398105; cv=none; b=pyO9xyWEKfUQWJc4HhUpOelN7IHmqNuveZbAsDsgJeOmsovKL1BnApnR5xCJ4tDo51ffg4Mg0+UIpmVEy5BnX1J/KoW8oFXi7WzVNByP0G49A0FjVclMtfB5kknLxUh1rlJ0gaKIuijpe6eyW7YKv/YmkxguXD1WGbpOcEw6IG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785398105; c=relaxed/simple; bh=TLnQXAp0jqPgUdF0C6HhtKmvbE3mCH2VotQEgsXH608=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=irSQov0dIx9sFSygSXl0bdTsHUUDX7R+pRfokB2bWxggCGXxa7/x6TNyU8JwYpYFb+s6ubijIatjNGEqrgkQqrJLZ4+1llNime9sdAJJNKGGrHuKJCqrqHDLt3uxJZu8D+WjTyR6ROi5mnSN4SZdNKNVxMTYKhYYYTY2wMYtM5Y= 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=hrLY01Bk; arc=none smtp.client-ip=202.108.3.23 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="hrLY01Bk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sina.com; s=201208; t=1785398100; bh=qYqfGlHHqqN/d4eY8evQIGHA4Hm958nYzRwxH6VyFr4=; h=From:Subject:Date:Message-ID; b=hrLY01BkhJfe5efpdhFNTPTEMnzcTZArmt4sIHuEOEUHNaAomZ93qU1L/dTlyg4aZ YFyttldGheQovTaU7rbwuHbVOOf1/M9IxoxRQU+qmFqOePJPE/liGn9zE3MYS5tqOD cyC2ktsFJeRCy1ikdCpjAyvUaDb+bG93dAqwk53Q= X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([221.216.154.155]) by sina.com (10.54.253.31) with ESMTP id 6A6B02060000218E; Thu, 30 Jul 2026 15:49:31 +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: 2735646815959 X-SMAIL-UIID: B2FBAF4C543D452483F85AE20B898131-20260730-154931-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [fs?] KASAN: slab-use-after-free Read in lookup_noperm_common Date: Thu, 30 Jul 2026 15:49:14 +0800 Message-ID: <20260730074916.794-1-hdanton@sina.com> In-Reply-To: <6a6aac38.79190830.3d7c75.0018.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: Wed, 29 Jul 2026 18:43:20 -0700 [thread overview] > Hello, > > syzbot found the following issue on: > > HEAD commit: cc2b5f627e8c Add linux-next specific files for 20260714 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13a8649e580000 > kernel config: https://syzkaller.appspot.com/x/.config?x=2290ccbf984c524f > dashboard link: https://syzkaller.appspot.com/bug?extid=23ad911c819b923238b7 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=141917b1580000 #syz test --- x/drivers/i2c/i2c-core-base.c +++ y/drivers/i2c/i2c-core-base.c @@ -1826,8 +1826,6 @@ void i2c_del_adapter(struct i2c_adapter i2c_host_notify_irq_teardown(adap); - debugfs_remove_recursive(adap->debugfs); - /* wait until all references to the device are gone * * FIXME: This is old code and should ideally be replaced by an @@ -1844,6 +1842,8 @@ void i2c_del_adapter(struct i2c_adapter idr_remove(&i2c_adapter_idr, adap->nr); mutex_unlock(&core_lock); + debugfs_remove_recursive(adap->debugfs); + /* Clear the device structure in case this adapter is ever going to be added again */ memset(&adap->dev, 0, sizeof(adap->dev)); --