syzbot


WARNING in hid_output_report

Status: fixed on 2024/08/07 12:33
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+d54cdd2f898b6fae2cc0@syzkaller.appspotmail.com
Fix commit: 8bac61934cd5 HID: core: remove unnecessary WARN_ON() in implement()
First crash: 71d, last: 70d
Fix bisection: fixed by (bisect log) :
commit 8bac61934cd563b073cd30b8cf6d5c758ab5ab26
Author: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Date: Fri May 17 14:19:14 2024 +0000

  HID: core: remove unnecessary WARN_ON() in implement()

  
Bug presence (2)
Date Name Commit Repro Result
2024/06/29 linux-5.15.y (ToT) 4878aadf2d15 C [report] WARNING in hid_output_report
2024/06/29 upstream (ToT) de0a9f448633 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in hid_output_report input usb C error 3 105d 125d 26/27 fixed on 2024/07/09 19:14

Sample crash report:
keytouch 0003:0926:3333.0001: implement() called with too large value 12 (n: 1)! (kworker/0:0)
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7 at drivers/hid/hid-core.c:1449 implement drivers/hid/hid-core.c:1446 [inline]
WARNING: CPU: 0 PID: 7 at drivers/hid/hid-core.c:1449 hid_output_report+0x541/0x750 drivers/hid/hid-core.c:1652
Modules linked in:
CPU: 0 PID: 7 Comm: kworker/0:0 Not tainted 5.15.161-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: events hidinput_led_worker
RIP: 0010:implement drivers/hid/hid-core.c:1449 [inline]
RIP: 0010:hid_output_report+0x541/0x750 drivers/hid/hid-core.c:1652
Code: c1 c0 08 00 00 48 8b 44 24 40 48 8d b8 38 19 00 00 48 c7 c6 a0 a6 64 8b 48 c7 c2 a2 f2 2c 8c 44 89 f1 45 89 e8 e8 df 49 70 02 <0f> 0b 44 23 74 24 18 e9 bb fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1
RSP: 0018:ffffc90000cc7b30 EFLAGS: 00010046
RAX: ccb6cbb481290400 RBX: 0000000000000001 RCX: ccb6cbb481290400
RDX: 0000000000000000 RSI: 0000000080000001 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff8166835c R09: ffffed10173467a8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000000000001 R14: 000000000000000c R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f76158c1cf8 CR3: 000000000c68e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __usbhid_submit_report drivers/hid/usbhid/hid-core.c:591 [inline]
 usbhid_submit_report+0x43d/0x9e0 drivers/hid/usbhid/hid-core.c:636
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:300
 </TASK>

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/28 23:11 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
2024/06/29 06:49 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
2024/06/29 06:41 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
2024/06/28 20:02 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
2024/06/28 19:59 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
2024/06/28 19:48 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
2024/06/28 19:47 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
2024/06/28 19:44 linux-5.15.y 4878aadf2d15 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in hid_output_report
* Struck through repros no longer work on HEAD.