From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+fddd3aa6dfcfe50c760d@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [input?] KASAN: null-ptr-deref Read in input_event
Date: Mon, 6 Jan 2025 20:38:19 +0800 [thread overview]
Message-ID: <20250106123820.1469-1-hdanton@sina.com> (raw)
In-Reply-To: <677a4359.050a0220.380ff0.000d.GAE@google.com>
On Sun, 05 Jan 2025 00:31:21 -0800
> syzbot found the following issue on:
>
> HEAD commit: f097a36ef88d dt-bindings: usb: qcom,dwc3: Add QCS615 to US..
> git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17e2a8b0580000
#syz test
--- l/drivers/hid/hid-appleir.c
+++ y/drivers/hid/hid-appleir.c
@@ -150,12 +150,16 @@ static int get_key(int data)
static void key_up(struct hid_device *hid, struct appleir *appleir, int key)
{
+ if (!appleir->input_dev)
+ return;
input_report_key(appleir->input_dev, key, 0);
input_sync(appleir->input_dev);
}
static void key_down(struct hid_device *hid, struct appleir *appleir, int key)
{
+ if (!appleir->input_dev)
+ return;
input_report_key(appleir->input_dev, key, 1);
input_sync(appleir->input_dev);
}
--
next prev parent reply other threads:[~2025-01-06 12:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-05 8:31 syzbot
2025-01-06 10:49 ` Hillf Danton
2025-01-06 11:10 ` syzbot
2025-01-06 12:38 ` Hillf Danton [this message]
2025-01-06 13:14 ` 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=20250106123820.1469-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+fddd3aa6dfcfe50c760d@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®