syzbot


UBSAN: undefined-behaviour in dummy_hub_control

Status: upstream: reported C repro on 2020/09/24 22:18
Reported-by: syzbot+009185147d6c72e5d5a5@syzkaller.appspotmail.com
First crash: 1548d, last: 1522d
Fix bisection: failed (error log, bisect log)
  

Sample crash report:
audit: type=1400 audit(1602891817.855:8): avc:  denied  { execmem } for  pid=6502 comm="syz-executor575" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
================================================================================
UBSAN: Undefined behaviour in drivers/usb/gadget/udc/dummy_hcd.c:2302:33
shift exponent 16403 is too large for 32-bit type 'int'
CPU: 0 PID: 6502 Comm: syz-executor575 Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x22c/0x33e lib/dump_stack.c:118
 ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
 __ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
 dummy_hub_control.cold+0x1a/0xbf drivers/usb/gadget/udc/dummy_hcd.c:2302
 rh_call_control drivers/usb/core/hcd.c:679 [inline]
 rh_urb_enqueue drivers/usb/core/hcd.c:838 [inline]
 usb_hcd_submit_urb+0xb7e/0x20d0 drivers/usb/core/hcd.c:1651
 usb_submit_urb+0xba2/0x13b0 drivers/usb/core/urb.c:571
 usb_start_wait_urb+0x108/0x2b0 drivers/usb/core/message.c:57
 usb_internal_control_msg drivers/usb/core/message.c:101 [inline]
 usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:152
 proc_control+0x360/0x6d0 drivers/usb/core/devio.c:1143
 usbdev_do_ioctl+0x15fc/0x3580 drivers/usb/core/devio.c:2423
 usbdev_ioctl+0x21/0x30 drivers/usb/core/devio.c:2580
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443f29
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 0f 83 fb d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe9a1496f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443f29
RDX: 0000000020000000 RSI: 00000000c0185500 RDI: 0000000000000003
RBP: 00000000006ce018 R08: 0000000000000000 R09: 00000000004002e0
R10: 000000000000000f R11: 0000000000000246 R12: 0000000000401bb0
R13: 0000000000401c40 R14: 0000000000000000 R15: 0000000000000000
================================================================================

Crashes (91):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/16 23:45 linux-4.19.y a1b977b49b66 6e262c73 .config console log report syz C ci2-linux-4-19
2020/09/24 22:31 linux-4.19.y d09b80172c22 54289b08 .config console log report syz C ci2-linux-4-19
2020/10/21 12:08 linux-4.19.y ad326970d25c 99c64d5c .config console log report info ci2-linux-4-19
2020/10/21 09:24 linux-4.19.y ad326970d25c e761439e .config console log report info ci2-linux-4-19
2020/10/20 05:44 linux-4.19.y ad326970d25c ff4a3345 .config console log report info ci2-linux-4-19
2020/10/19 10:31 linux-4.19.y ad326970d25c ff4a3345 .config console log report info ci2-linux-4-19
2020/10/19 08:55 linux-4.19.y ad326970d25c ff4a3345 .config console log report info ci2-linux-4-19
2020/10/18 22:54 linux-4.19.y ad326970d25c fea47c01 .config console log report info ci2-linux-4-19
2020/10/17 13:29 linux-4.19.y ad326970d25c fea47c01 .config console log report info ci2-linux-4-19
2020/10/17 12:21 linux-4.19.y ad326970d25c fea47c01 .config console log report info ci2-linux-4-19
2020/10/16 22:02 linux-4.19.y a1b977b49b66 6e262c73 .config console log report info ci2-linux-4-19
2020/10/16 14:40 linux-4.19.y a1b977b49b66 6e262c73 .config console log report info ci2-linux-4-19
2020/10/15 21:48 linux-4.19.y a1b977b49b66 6e262c73 .config console log report info ci2-linux-4-19
2020/10/15 20:46 linux-4.19.y a1b977b49b66 6e262c73 .config console log report info ci2-linux-4-19
2020/10/15 10:03 linux-4.19.y a1b977b49b66 63869021 .config console log report info ci2-linux-4-19
2020/10/15 09:03 linux-4.19.y a1b977b49b66 63869021 .config console log report info ci2-linux-4-19
2020/10/13 21:08 linux-4.19.y a1b977b49b66 fc7735a2 .config console log report info ci2-linux-4-19
2020/10/13 20:07 linux-4.19.y a1b977b49b66 fc7735a2 .config console log report info ci2-linux-4-19
2020/10/13 08:36 linux-4.19.y a1b977b49b66 bd69ee0d .config console log report info ci2-linux-4-19
2020/10/12 17:17 linux-4.19.y a1b977b49b66 d32b0bbf .config console log report info ci2-linux-4-19
2020/10/12 16:58 linux-4.19.y a1b977b49b66 d32b0bbf .config console log report info ci2-linux-4-19
2020/10/12 15:54 linux-4.19.y a1b977b49b66 d32b0bbf .config console log report info ci2-linux-4-19
2020/10/12 13:35 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report info ci2-linux-4-19
2020/10/12 09:42 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report info ci2-linux-4-19
2020/10/10 22:23 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report info ci2-linux-4-19
2020/10/10 21:13 linux-4.19.y a1b977b49b66 4a77ae0b .config console log report info ci2-linux-4-19
2020/10/10 10:14 linux-4.19.y a1b977b49b66 b74c49a6 .config console log report info ci2-linux-4-19
2020/10/09 22:12 linux-4.19.y a1b977b49b66 93817d89 .config console log report info ci2-linux-4-19
2020/10/09 21:10 linux-4.19.y a1b977b49b66 93817d89 .config console log report info ci2-linux-4-19
2020/10/09 17:16 linux-4.19.y a1b977b49b66 fa79ed2a .config console log report info ci2-linux-4-19
2020/10/09 10:07 linux-4.19.y a1b977b49b66 fa79ed2a .config console log report info ci2-linux-4-19
2020/10/09 08:56 linux-4.19.y a1b977b49b66 fa79ed2a .config console log report info ci2-linux-4-19
2020/10/08 11:07 linux-4.19.y a1b977b49b66 92390980 .config console log report info ci2-linux-4-19
2020/10/08 00:04 linux-4.19.y a1b977b49b66 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/07 08:12 linux-4.19.y a1b977b49b66 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/05 13:35 linux-4.19.y b09c34517e1a 1880b4a9 .config console log report info ci2-linux-4-19
2020/10/04 09:39 linux-4.19.y b09c34517e1a 5ef9c291 .config console log report info ci2-linux-4-19
2020/10/03 17:36 linux-4.19.y b09c34517e1a 1a3f9408 .config console log report info ci2-linux-4-19
2020/10/03 15:56 linux-4.19.y b09c34517e1a 1a3f9408 .config console log report info ci2-linux-4-19
2020/10/03 04:49 linux-4.19.y b09c34517e1a 2653fa43 .config console log report info ci2-linux-4-19
2020/10/03 03:43 linux-4.19.y b09c34517e1a 2653fa43 .config console log report info ci2-linux-4-19
2020/10/02 15:10 linux-4.19.y b09c34517e1a 062c9832 .config console log report info ci2-linux-4-19
2020/10/02 14:34 linux-4.19.y b09c34517e1a 062c9832 .config console log report info ci2-linux-4-19
2020/10/02 13:16 linux-4.19.y b09c34517e1a 062c9832 .config console log report info ci2-linux-4-19
2020/10/01 21:56 linux-4.19.y b09c34517e1a 9602ddf4 .config console log report info ci2-linux-4-19
2020/10/01 21:14 linux-4.19.y b09c34517e1a 9602ddf4 .config console log report info ci2-linux-4-19
2020/10/01 14:43 linux-4.19.y b09c34517e1a 4103fce0 .config console log report info ci2-linux-4-19
2020/10/01 10:17 linux-4.19.y 10ad6cfd5736 4103fce0 .config console log report info ci2-linux-4-19
2020/10/01 09:39 linux-4.19.y 10ad6cfd5736 4103fce0 .config console log report info ci2-linux-4-19
2020/09/26 11:29 linux-4.19.y d09b80172c22 2d5ea0cb .config console log report info ci2-linux-4-19
2020/09/25 13:57 linux-4.19.y d09b80172c22 4a006f63 .config console log report info ci2-linux-4-19
2020/09/25 13:38 linux-4.19.y d09b80172c22 4a006f63 .config console log report info ci2-linux-4-19
2020/09/24 22:17 linux-4.19.y d09b80172c22 54289b08 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.