The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+23ad911c819b923238b7@syzkaller.appspotmail.com>
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	[thread overview]
Message-ID: <20260730074916.794-1-hdanton@sina.com> (raw)
In-Reply-To: <6a6aac38.79190830.3d7c75.0018.GAE@google.com>

> 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));
--

  reply	other threads:[~2026-07-30  7:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-30  1:43 [syzbot] [fs?] KASAN: slab-use-after-free Read in lookup_noperm_common syzbot
2026-07-30  7:49 ` Hillf Danton [this message]
2026-07-30  9:33   ` syzbot
2026-08-01  0:00 ` syzbot
2026-08-01  8:03 ` Forwarded: [PATCH] i2c: core: fix debugfs UAF on adapter removal syzbot
2026-08-01 10:15 ` syzbot
     [not found] <20260801080314.978109-1-vasilisalmpanis@gmail.com>
2026-08-01  9:41 ` [syzbot] [fs?] KASAN: slab-use-after-free Read in lookup_noperm_common syzbot
     [not found] <20260801101512.989245-1-vasilisalmpanis@gmail.com>
2026-08-01 10:52 ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260730074916.794-1-hdanton@sina.com \
    --to=hdanton@sina.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzbot+23ad911c819b923238b7@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox