syzbot


BUG: bad usercopy in ld_usb_read

Status: closed as dup on 2019/08/12 12:06
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+45b2f40f0778cfa7634e@syzkaller.appspotmail.com
First crash: 1967d, last: 1941d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in ld_usb_release usb C 14 1956d 1965d
Discussions (1)
Title Replies (including bot) Last reply
BUG: bad usercopy in ld_usb_read 7 (9) 2019/10/18 14:39
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: bad usercopy in ld_usb_read (2) hardening mm usb C 135 1898d 1927d 0/28 closed as dup on 2019/09/17 12:21
upstream BUG: bad usercopy in ld_usb_read (3) hardening mm usb C 46 1886d 1897d 0/28 closed as dup on 2019/10/18 06:28

Sample crash report:
ldusb 2-1:0.28: Read buffer overflow, -131386026090240 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: 1833 Comm: syz-executor939 Not tainted 5.3.0-rc5+ #28
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 42 f4 d6 ff 49 89 d9 4d 89 e8 4c 89 e1 41 56 48 89 ee 48 c7 c7 20 f6 cd 85 ff 74 24 08 41 57 48 8b 54 24 20 e8 86 95 c1 ff <0f> 0b e8 16 f4 d6 ff e8 b1 98 fd ff 8b 54 24 04 49 89 d8 4c 89 e1
RSP: 0018:ffff8881d95cfc40 EFLAGS: 00010282
RAX: 0000000000000061 RBX: ffffffff85cdf340 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81288cfd RDI: ffffed103b2b9f7a
RBP: ffffffff85cdf500 R08: 0000000000000061 R09: fffffbfff11ad7a1
R10: fffffbfff11ad7a0 R11: ffffffff88d6bd07 R12: ffffffff85cdf720
R13: ffffffff85cdf340 R14: 000000007ffff000 R15: ffffffff85cdf340
FS:  0000555557345880(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9d8d4d8000 CR3: 00000001d094e000 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:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x441819
Code: e8 8c e8 ff ff 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 cb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe19c25638 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441819
RDX: 00000000ffffffc7 RSI: 0000000020002440 RDI: 0000000000000004
RBP: 0000000000019814 R08: 000000000000000f R09: 00000009004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402570
R13: 0000000000402600 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace e58a4e9b532d53bd ]---
RIP: 0010:usercopy_abort+0xb9/0xbb mm/usercopy.c:98
Code: e8 42 f4 d6 ff 49 89 d9 4d 89 e8 4c 89 e1 41 56 48 89 ee 48 c7 c7 20 f6 cd 85 ff 74 24 08 41 57 48 8b 54 24 20 e8 86 95 c1 ff <0f> 0b e8 16 f4 d6 ff e8 b1 98 fd ff 8b 54 24 04 49 89 d8 4c 89 e1
RSP: 0018:ffff8881d95cfc40 EFLAGS: 00010282
RAX: 0000000000000061 RBX: ffffffff85cdf340 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff81288cfd RDI: ffffed103b2b9f7a
RBP: ffffffff85cdf500 R08: 0000000000000061 R09: fffffbfff11ad7a1
R10: fffffbfff11ad7a0 R11: ffffffff88d6bd07 R12: ffffffff85cdf720
R13: ffffffff85cdf340 R14: 000000007ffff000 R15: ffffffff85cdf340
FS:  0000555557345880(0000) GS:ffff8881db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9d8d4d8000 CR3: 00000001d094e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (124):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/22 15:39 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 c6c81a0b .config console log report syz C ci2-upstream-usb
2019/08/22 03:34 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 4ea67ff8 .config console log report syz C ci2-upstream-usb
2019/08/10 18:14 https://github.com/google/kasan.git usb-fuzzer e96407b49762 acb51638 .config console log report syz C ci2-upstream-usb
2019/09/03 09:35 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 14544a56 .config console log report ci2-upstream-usb
2019/09/02 20:04 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 14544a56 .config console log report ci2-upstream-usb
2019/09/02 18:21 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 14544a56 .config console log report ci2-upstream-usb
2019/09/02 07:38 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 db7c31ca .config console log report ci2-upstream-usb
2019/09/02 06:03 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 db7c31ca .config console log report ci2-upstream-usb
2019/09/02 03:48 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bad3cce2 .config console log report ci2-upstream-usb
2019/09/01 17:01 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bad3cce2 .config console log report ci2-upstream-usb
2019/09/01 15:37 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bad3cce2 .config console log report ci2-upstream-usb
2019/09/01 01:24 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bad3cce2 .config console log report ci2-upstream-usb
2019/08/31 22:06 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bad3cce2 .config console log report ci2-upstream-usb
2019/08/31 14:36 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bad3cce2 .config console log report ci2-upstream-usb
2019/08/31 13:18 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bcd7bcc2 .config console log report ci2-upstream-usb
2019/08/31 11:25 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bcd7bcc2 .config console log report ci2-upstream-usb
2019/08/31 09:01 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bcd7bcc2 .config console log report ci2-upstream-usb
2019/08/31 07:37 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bcd7bcc2 .config console log report ci2-upstream-usb
2019/08/31 03:16 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 bcd7bcc2 .config console log report ci2-upstream-usb
2019/08/30 14:56 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 9adfa876 .config console log report ci2-upstream-usb
2019/08/30 05:27 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 cd626f3b .config console log report ci2-upstream-usb
2019/08/30 03:58 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 cd626f3b .config console log report ci2-upstream-usb
2019/08/30 00:57 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 cd626f3b .config console log report ci2-upstream-usb
2019/08/29 16:31 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 cd626f3b .config console log report ci2-upstream-usb
2019/08/29 10:30 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 cd626f3b .config console log report ci2-upstream-usb
2019/08/28 19:39 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 1eb076e9 .config console log report ci2-upstream-usb
2019/08/28 17:45 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 1eb076e9 .config console log report ci2-upstream-usb
2019/08/28 00:23 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 fd37b39e .config console log report ci2-upstream-usb
2019/08/27 21:33 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/27 20:00 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/27 16:52 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/27 15:38 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/27 13:09 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/27 01:45 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/26 15:04 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/26 13:07 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/26 09:07 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/26 04:40 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/26 03:15 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/25 20:28 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/25 09:41 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/25 07:11 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/25 05:23 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 d21c5d9d .config console log report ci2-upstream-usb
2019/08/24 13:27 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 78ded196 .config console log report ci2-upstream-usb
2019/08/24 12:21 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 78ded196 .config console log report ci2-upstream-usb
2019/08/24 09:04 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 78ded196 .config console log report ci2-upstream-usb
2019/08/24 04:47 https://github.com/google/kasan.git usb-fuzzer eea39f24f4a5 78ded196 .config console log report ci2-upstream-usb
2019/08/07 17:26 https://github.com/google/kasan.git usb-fuzzer e96407b49762 e6ebef88 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.