syzbot


BUG: bad usercopy in ld_usb_read (3)

Status: closed as dup on 2019/10/18 06:28
Subsystems: hardening mm usb
[Documentation on labels]
Reported-by: syzbot+acee996f6938b9ded381@syzkaller.appspotmail.com
First crash: 1898d, last: 1886d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: slab-out-of-bounds Read in ld_usb_read (3) usb C 74 1886d 1897d
Discussions (1)
Title Replies (including bot) Last reply
BUG: bad usercopy in ld_usb_read (3) 2 (3) 2019/10/18 06:28
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 usb C 124 1941d 1966d 0/28 closed as dup on 2019/08/12 12:06

Sample crash report:
ldusb 4-1:0.28: Read buffer overflow, 1863950463890137282 bytes dropped
usercopy: Kernel memory exposure attempt detected from process stack (offset 0, size 2147479552)!
------------[ cut here ]------------
kernel BUG at mm/usercopy.c:99!
invalid opcode: 0000 [#1] SMP KASAN
CPU: 1 PID: 1754 Comm: syz-executor165 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:usercopy_abort+0xb9/0xbb mm/usercopy.c:99
Code: e8 32 51 d6 ff 49 89 d9 4d 89 e8 4c 89 e1 41 56 48 89 ee 48 c7 c7 40 d9 cd 85 ff 74 24 08 41 57 48 8b 54 24 20 e8 46 e3 c0 ff <0f> 0b e8 06 51 d6 ff e8 31 8b fd ff 8b 54 24 04 49 89 d8 4c 89 e1
RSP: 0018:ffff8881cedefc58 EFLAGS: 00010282
RAX: 0000000000000061 RBX: ffffffff85cdd660 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8128bcbd RDI: ffffed1039dbdf7d
RBP: ffffffff85cdd820 R08: 0000000000000061 R09: fffffbfff11b23b5
R10: fffffbfff11b23b4 R11: ffffffff88d91da7 R12: ffffffff85cdda40
R13: ffffffff85cdd660 R14: 000000007ffff000 R15: ffffffff85cdd660
FS:  00000000025d4940(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1f2c60000 CR3: 00000001cff65000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __check_object_size mm/usercopy.c:282 [inline]
 __check_object_size.cold+0x91/0xbb mm/usercopy.c:256
 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+0x31a/0x760 drivers/usb/misc/ldusb.c:492
 __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:0x441d49
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:00007ffed1ac2f28 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441d49
RDX: 00000000ffffff7d RSI: 0000000020000080 RDI: 0000000000000004
RBP: 0000000000027e08 R08: 000000000000000f R09: 0000000000402b30
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402aa0
R13: 0000000000402b30 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace d633d40edc75aaf7 ]---
RIP: 0010:usercopy_abort+0xb9/0xbb mm/usercopy.c:99
Code: e8 32 51 d6 ff 49 89 d9 4d 89 e8 4c 89 e1 41 56 48 89 ee 48 c7 c7 40 d9 cd 85 ff 74 24 08 41 57 48 8b 54 24 20 e8 46 e3 c0 ff <0f> 0b e8 06 51 d6 ff e8 31 8b fd ff 8b 54 24 04 49 89 d8 4c 89 e1
RSP: 0018:ffff8881cedefc58 EFLAGS: 00010282
RAX: 0000000000000061 RBX: ffffffff85cdd660 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8128bcbd RDI: ffffed1039dbdf7d
RBP: ffffffff85cdd820 R08: 0000000000000061 R09: fffffbfff11b23b5
R10: fffffbfff11b23b4 R11: ffffffff88d91da7 R12: ffffffff85cdda40
R13: ffffffff85cdd660 R14: 000000007ffff000 R15: ffffffff85cdd660
FS:  00000000025d4940(0000) GS:ffff8881db300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1f2c60000 CR3: 00000001cff65000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (46):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/17 11:44 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report syz C ci2-upstream-usb
2019/10/28 09:34 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 25bb509e .config console log report ci2-upstream-usb
2019/10/27 04:18 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 25bb509e .config console log report ci2-upstream-usb
2019/10/26 02:42 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 413926c5 .config console log report ci2-upstream-usb
2019/10/25 17:25 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 04ca72cd .config console log report ci2-upstream-usb
2019/10/25 05:51 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 d01bb02a .config console log report ci2-upstream-usb
2019/10/25 05:46 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 d01bb02a .config console log report ci2-upstream-usb
2019/10/24 11:56 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 d01bb02a .config console log report ci2-upstream-usb
2019/10/23 22:42 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b602d64b .config console log report ci2-upstream-usb
2019/10/23 09:18 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 d0686497 .config console log report ci2-upstream-usb
2019/10/22 18:14 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 4ee855e7 .config console log report ci2-upstream-usb
2019/10/22 15:16 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 4ee855e7 .config console log report ci2-upstream-usb
2019/10/21 22:20 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b24d2b8a .config console log report ci2-upstream-usb
2019/10/21 17:38 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b24d2b8a .config console log report ci2-upstream-usb
2019/10/21 12:26 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/21 09:24 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/21 05:28 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/21 01:59 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/21 00:53 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/20 17:43 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/20 06:34 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/20 06:15 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/20 03:18 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/20 01:45 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/20 00:42 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 20:14 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 19:43 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 18:12 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 15:53 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 15:03 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 14:23 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 03:14 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/19 00:09 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/18 19:26 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/18 17:20 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/18 12:13 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/17 15:42 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/17 13:15 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/17 11:10 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/17 07:29 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/17 01:23 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/17 01:21 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/16 23:08 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/16 17:35 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 8c88c9c1 .config console log report ci2-upstream-usb
2019/10/16 01:21 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 d4ea592f .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.