From: Edward Adam Davis <eadavis@sina.com>
To: syzbot+f8a0f50ead274d8516d3@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [usb?] KASAN: slab-use-after-free Read in atkbd_event_work
Date: Tue, 15 Sep 2026 17:24:49 +0800 [thread overview]
Message-ID: <20260915092449.915064-1-eadavis@sina.com> (raw)
In-Reply-To: <6aa8b9c4.f81106d8.2ab401.005d.GAE@google.com>
From: Edward Aadm Davis <eadavis@sina.com>
#syz test: upstream 704340f1cd0d
diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
index b9ad2381f885..7f102ff95af8 100644
--- a/drivers/input/keyboard/atkbd.c
+++ b/drivers/input/keyboard/atkbd.c
@@ -962,9 +962,6 @@ static void atkbd_disconnect(struct serio *serio)
struct atkbd *atkbd = atkbd_from_serio(serio);
atkbd_disable(atkbd);
-
- input_unregister_device(atkbd->dev);
-
/*
* Make sure we don't have a command in flight.
* Note that since atkbd->enabled is false event work will keep
@@ -972,6 +969,7 @@ static void atkbd_disconnect(struct serio *serio)
* accessing freed input device or serio port.
*/
cancel_delayed_work_sync(&atkbd->event_work);
+ input_unregister_device(atkbd->dev);
serio_close(serio);
serio_set_drvdata(serio, NULL);
next prev parent reply other threads:[~2026-09-15 9:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-29 1:05 [syzbot] [kernel?] " syzbot
2026-08-29 4:54 ` Jeffin Philip
2026-09-15 3:21 ` [syzbot] [usb?] " syzbot
2026-09-15 9:24 ` Edward Adam Davis [this message]
2026-09-15 12:02 ` 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=20260915092449.915064-1-eadavis@sina.com \
--to=eadavis@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+f8a0f50ead274d8516d3@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
all inboxes | Powered by JetHome®