syzbot


BUG: bad usercopy in ld_usb_read (2)

Status: closed as dup on 2019/09/17 12:21
Subsystems: hardening mm usb
[Documentation on labels]
Reported-by: syzbot+4cd8c1b2445d0ffe05f6@syzkaller.appspotmail.com
First crash: 1913d, last: 1876d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in __pm_runtime_resume input usb pm C 197 1896d 1959d
Discussions (1)
Title Replies (including bot) Last reply
BUG: bad usercopy in ld_usb_read (2) 2 (3) 2019/10/18 14:40
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: bad usercopy in ld_usb_read usb C 124 1918d 1944d 0/28 closed as dup on 2019/08/12 12:06
upstream BUG: bad usercopy in ld_usb_read (3) hardening mm usb C 46 1863d 1875d 0/28 closed as dup on 2019/10/18 06:28

Sample crash report:
ldusb 1-1:0.28: Read buffer overflow, -3472032754962774480 bytes dropped
usercopy: Kernel memory exposure attempt detected from process stack (offset 0, size 2147479552)!
------------[ cut here ]------------
kernel BUG at mm/usercopy.c:98!
invalid opcode: 0000 [#1] SMP KASAN
CPU: 0 PID: 1719 Comm: syz-executor764 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:usercopy_abort+0xb9/0xbb mm/usercopy.c:98
Code: e8 22 e2 d6 ff 49 89 d9 4d 89 e8 4c 89 e1 41 56 48 89 ee 48 c7 c7 40 fc cd 85 ff 74 24 08 41 57 48 8b 54 24 20 e8 d6 6b c1 ff <0f> 0b e8 f6 e1 d6 ff e8 a1 90 fd ff 8b 54 24 04 49 89 d8 4c 89 e1
RSP: 0018:ffff8881d3267c40 EFLAGS: 00010282
RAX: 0000000000000061 RBX: ffffffff85cdf960 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8128d9ad RDI: ffffed103a64cf7a
RBP: ffffffff85cdfb20 R08: 0000000000000061 R09: fffffbfff11b35b5
R10: fffffbfff11b35b4 R11: ffffffff88d9ada7 R12: ffffffff85cdfd40
R13: ffffffff85cdf960 R14: 000000007ffff000 R15: ffffffff85cdf960
FS:  00007fa15f4dc700(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f27d80a3000 CR3: 00000001c65a8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __check_object_size mm/usercopy.c:276 [inline]
 __check_object_size.cold+0x91/0xbb mm/usercopy.c:250
 check_object_size include/linux/thread_info.h:119 [inline]
 check_copy_size include/linux/thread_info.h:150 [inline]
 copy_to_user include/linux/uaccess.h:151 [inline]
 ld_usb_read+0x304/0x780 drivers/usb/misc/ldusb.c:495
 __vfs_read+0x76/0x100 fs/read_write.c:425
 vfs_read+0x1ea/0x430 fs/read_write.c:461
 ksys_read+0x1e8/0x250 fs/read_write.c:587
 do_syscall_64+0xb7/0x580 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446fe9
Code: e8 ac b5 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 eb 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fa15f4dbce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00000000006dcc28 RCX: 0000000000446fe9
RDX: 000000010000011b RSI: 0000000020000400 RDI: 0000000000000004
RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc2c
R13: 00007ffc453af1ef R14: 00007fa15f4dc9c0 R15: 20c49ba5e353f7cf
Modules linked in:
---[ end trace 443ae5484c4e9743 ]---
RIP: 0010:usercopy_abort+0xb9/0xbb mm/usercopy.c:98
Code: e8 22 e2 d6 ff 49 89 d9 4d 89 e8 4c 89 e1 41 56 48 89 ee 48 c7 c7 40 fc cd 85 ff 74 24 08 41 57 48 8b 54 24 20 e8 d6 6b c1 ff <0f> 0b e8 f6 e1 d6 ff e8 a1 90 fd ff 8b 54 24 04 49 89 d8 4c 89 e1
RSP: 0018:ffff8881d3267c40 EFLAGS: 00010282
RAX: 0000000000000061 RBX: ffffffff85cdf960 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8128d9ad RDI: ffffed103a64cf7a
RBP: ffffffff85cdfb20 R08: 0000000000000061 R09: fffffbfff11b35b5
R10: fffffbfff11b35b4 R11: ffffffff88d9ada7 R12: ffffffff85cdfd40
R13: ffffffff85cdf960 R14: 000000007ffff000 R15: ffffffff85cdf960
FS:  00007fa15f4dc700(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f27d80a3000 CR3: 00000001c65a8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (135):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/21 04:48 https://github.com/google/kasan.git usb-fuzzer e0bd8d794fc9 d96e88f3 .config console log report syz C ci2-upstream-usb
2019/10/15 20:22 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b5268b89 .config console log report ci2-upstream-usb
2019/10/15 17:49 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b5268b89 .config console log report ci2-upstream-usb
2019/10/15 14:42 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b5268b89 .config console log report ci2-upstream-usb
2019/10/15 08:37 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 05ad7292 .config console log report ci2-upstream-usb
2019/10/15 03:54 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 05ad7292 .config console log report ci2-upstream-usb
2019/10/15 02:33 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 05ad7292 .config console log report ci2-upstream-usb
2019/10/15 01:23 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 05ad7292 .config console log report ci2-upstream-usb
2019/10/14 16:30 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 a6aef847 .config console log report ci2-upstream-usb
2019/10/14 13:35 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 a6aef847 .config console log report ci2-upstream-usb
2019/10/14 01:47 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 15:20 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 13:40 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 10:45 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 03:08 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/12 15:40 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/12 12:38 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/11 22:27 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/11 17:32 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/11 11:10 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/11 09:38 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/11 08:32 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/11 07:18 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/10 23:57 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/10 20:19 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 d52eff28 .config console log report ci2-upstream-usb
2019/10/10 19:07 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 d52eff28 .config console log report ci2-upstream-usb
2019/10/10 15:28 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 d52eff28 .config console log report ci2-upstream-usb
2019/10/10 02:52 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 c4b9981b .config console log report ci2-upstream-usb
2019/10/09 21:41 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 c4b9981b .config console log report ci2-upstream-usb
2019/10/09 02:39 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 b1ebbfef .config console log report ci2-upstream-usb
2019/10/09 00:18 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 b1ebbfef .config console log report ci2-upstream-usb
2019/10/08 16:41 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 137e37ca .config console log report ci2-upstream-usb
2019/10/08 14:37 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 137e37ca .config console log report ci2-upstream-usb
2019/10/08 10:22 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 28ac6e64 .config console log report ci2-upstream-usb
2019/10/08 01:28 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 28ac6e64 .config console log report ci2-upstream-usb
2019/10/07 17:58 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 28ac6e64 .config console log report ci2-upstream-usb
2019/10/07 14:58 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 28ac6e64 .config console log report ci2-upstream-usb
2019/10/07 12:36 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 28ac6e64 .config console log report ci2-upstream-usb
2019/10/06 21:47 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/10/06 08:05 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/10/06 04:58 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/10/05 23:40 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/10/05 20:08 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/10/05 14:21 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/09/09 03:18 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 a60cb4cd .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.