syzbot


WARNING in hid_alloc_report_buf

Status: auto-obsoleted due to no activity on 2022/09/22 08:21
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+ab02336a647181a886a6@syzkaller.appspotmail.com
First crash: 1161d, last: 1085d
Cause bisection: introduced by (bisect log) [ignored commit]:
commit f2c2e717642c66f7fe7e5dd69b2e8ff5849f4d10
Author: Andrey Konovalov <andreyknvl@google.com>
Date: Mon Feb 24 16:13:03 2020 +0000

  usb: gadget: add raw-gadget interface

Crash: WARNING in usbhid_submit_report (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) [merge commit]:
commit 231bc539066760aaa44d46818c85b14ca2f56d9f
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed Jun 2 03:26:06 2021 +0000

  Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid

  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
WARNING in __usbhid_submit_report input usb mm C 141 1071d 1204d 0/26 closed as dup on 2021/02/25 12:42
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] drivers/hid: fix for the big hid report length 4 (4) 2021/02/26 16:28
WARNING in hid_alloc_report_buf 0 (1) 2021/02/23 08:06
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/09/22 06:29 18m retest repro upstream OK log
2021/02/25 12:59 43m snovitoll@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/36/8636/2 OK
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2021/06/05 05:32 3h24m bisect fix upstream job log (1)
2021/05/06 04:29 21m bisect fix upstream job log (0) log
2021/03/21 20:52 20m bisect fix upstream job log (0) log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 8428 at mm/page_alloc.c:4979 __alloc_pages_nodemask+0x44e/0x500 mm/page_alloc.c:5023
Modules linked in:
CPU: 1 PID: 8428 Comm: syz-executor094 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__alloc_pages_nodemask+0x44e/0x500 mm/page_alloc.c:5023
Code: 00 48 ba 00 00 00 00 00 fc ff df e9 fb fd ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 06 fe ff ff e8 c7 53 09 00 e9 fc fd ff ff <0f> 0b e9 15 fe ff ff 44 89 ed a9 00 00 08 00 75 11 81 e5 7f ff ff
RSP: 0018:ffffc90001ad7c40 EFLAGS: 00010046
RAX: ffffc90001ad7c48 RBX: ffffc90001ad7c74 RCX: 0000000000000000
RDX: 0000000000000028 RSI: 0000000000000000 RDI: ffffc90001ad7c70
RBP: 0000000000000000 R08: dffffc0000000000 R09: ffffc90001ad7c48
R10: fffff5200035af8e R11: 0000000000000000 R12: 0000000020000007
R13: 0000000000040a20 R14: 1ffff9200035af8e R15: 0000000000000012
FS:  0000000001255300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005573bf3240c0 CR3: 0000000013416000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 alloc_pages include/linux/gfp.h:547 [inline]
 kmalloc_order+0x40/0x130 mm/slab_common.c:837
 kmalloc_order_trace+0x15/0x70 mm/slab_common.c:853
 kmalloc_large include/linux/slab.h:481 [inline]
 __kmalloc+0x257/0x330 mm/slub.c:3974
 kmalloc include/linux/slab.h:557 [inline]
 hid_alloc_report_buf+0x70/0xa0 drivers/hid/hid-core.c:1648
 __usbhid_submit_report drivers/hid/usbhid/hid-core.c:590 [inline]
 usbhid_submit_report+0x3c6/0xa10 drivers/hid/usbhid/hid-core.c:640
 hid_hw_request include/linux/hid.h:1072 [inline]
 hiddev_ioctl+0x196c/0x2780 drivers/hid/usbhid/hiddev.c:726
 vfs_ioctl fs/ioctl.c:48 [inline]
 __do_sys_ioctl fs/ioctl.c:753 [inline]
 __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739
 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x444659
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff05ace6d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 0000000000444659
RDX: 0000000020000080 RSI: 00000000400c4808 RDI: 0000000000000004
RBP: 0000000000403ee0 R08: 0000000000000001 R09: 00000000004004a0
R10: 000000000000001f R11: 0000000000000246 R12: 0000000000403f70
R13: 0000000000000000 R14: 00000000004b2018 R15: 00000000004004a0

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/02/19 08:47 upstream f40ddce88593 14052202 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in hid_alloc_report_buf
2021/04/06 04:29 upstream 0a50438c8436 6a81331a .config console log report info ci-upstream-kasan-gce-smack-root WARNING in hid_alloc_report_buf
2021/03/22 14:39 upstream 0d02ec6b3136 bea32f74 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in hid_alloc_report_buf
2021/03/22 14:38 upstream 0d02ec6b3136 bea32f74 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in hid_alloc_report_buf
2021/02/19 07:57 upstream f40ddce88593 14052202 .config console log report info ci-upstream-kasan-gce-smack-root WARNING in hid_alloc_report_buf
* Struck through repros no longer work on HEAD.