syzbot


KASAN: slab-out-of-bounds Read in ld_usb_read (2)

Status: closed as dup on 2019/09/17 12:20
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+4a52dbcef08fddbc887e@syzkaller.appspotmail.com
First crash: 1933d, last: 1899d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in __pm_runtime_resume input usb pm C 197 1919d 1982d
Discussions (1)
Title Replies (including bot) Last reply
KASAN: slab-out-of-bounds Read in ld_usb_read (2) 1 (2) 2019/09/17 12:20
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in ld_usb_read usb C 57 1941d 1963d 0/28 closed as dup on 2019/08/12 12:23
upstream KASAN: slab-out-of-bounds Read in ld_usb_read (3) usb C 74 1887d 1897d 13/28 fixed on 2019/11/06 12:39

Sample crash report:
ldusb 4-1:0.28: Read buffer overflow, -131383845158656 bytes dropped
==================================================================
BUG: KASAN: slab-out-of-bounds in _copy_to_user+0x124/0x150 lib/usercopy.c:28
Read of size 102400 at addr ffff8881d0960008 by task syz-executor.3/4671

CPU: 0 PID: 4671 Comm: syz-executor.3 Not tainted 5.4.0-rc3+ #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+0xca/0x13e lib/dump_stack.c:113
 print_address_description.constprop.0+0x36/0x50 mm/kasan/report.c:374
 __kasan_report.cold+0x1a/0x33 mm/kasan/report.c:506
 kasan_report+0xe/0x20 mm/kasan/common.c:634
 check_memory_region_inline mm/kasan/generic.c:185 [inline]
 check_memory_region+0x128/0x190 mm/kasan/generic.c:192
 _copy_to_user+0x124/0x150 lib/usercopy.c:28
 copy_to_user include/linux/uaccess.h:152 [inline]
 ld_usb_read+0x329/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:0x459a59
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f59704f8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a59
RDX: 0000000000019000 RSI: 0000000020001240 RDI: 0000000000000004
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f59704f96d4
R13: 00000000004c70d5 R14: 00000000004dc948 R15: 00000000ffffffff

The buggy address belongs to the page:
page:ffffea0007425800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 compound_mapcount: 0
flags: 0x200000000010000(head)
raw: 0200000000010000 dead000000000100 dead000000000122 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8881d0975500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff8881d0975580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881d0975600: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
                   ^
 ffff8881d0975680: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
 ffff8881d0975700: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe
==================================================================

Crashes (58):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/15 15:43 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b5268b89 .config console log report ci2-upstream-usb
2019/10/15 14:11 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 b5268b89 .config console log report ci2-upstream-usb
2019/10/15 01:30 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 05ad7292 .config console log report ci2-upstream-usb
2019/10/14 22:25 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 05ad7292 .config console log report ci2-upstream-usb
2019/10/14 18:03 https://github.com/google/kasan.git usb-fuzzer 22be26f76193 a6aef847 .config console log report ci2-upstream-usb
2019/10/14 12:34 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 a6aef847 .config console log report ci2-upstream-usb
2019/10/14 11:16 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 a6aef847 .config console log report ci2-upstream-usb
2019/10/14 07:34 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 22:58 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 21:39 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 18:17 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 2f661ec4 .config console log report ci2-upstream-usb
2019/10/13 02:16 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/12 16:14 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/12 15:28 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/12 13:41 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/12 06:19 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 426631dd .config console log report ci2-upstream-usb
2019/10/11 09:59 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/11 07:09 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/11 06:44 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/10 21:00 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 1a3bad90 .config console log report ci2-upstream-usb
2019/10/10 18:33 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 d52eff28 .config console log report ci2-upstream-usb
2019/10/10 16:15 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 d52eff28 .config console log report ci2-upstream-usb
2019/10/09 21:51 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 c4b9981b .config console log report ci2-upstream-usb
2019/10/08 11:36 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 64612bfd .config console log report ci2-upstream-usb
2019/10/07 03:37 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/10/06 04:29 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 f3f7d9c8 .config console log report ci2-upstream-usb
2019/10/04 12:11 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 b2f369e5 .config console log report ci2-upstream-usb
2019/10/04 07:12 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 fc17ba49 .config console log report ci2-upstream-usb
2019/10/04 05:57 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 fc17ba49 .config console log report ci2-upstream-usb
2019/10/03 20:33 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 fc17ba49 .config console log report ci2-upstream-usb
2019/10/03 17:01 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 fc17ba49 .config console log report ci2-upstream-usb
2019/10/03 13:48 https://github.com/google/kasan.git usb-fuzzer 58d5f26a5584 fc17ba49 .config console log report ci2-upstream-usb
2019/10/01 23:14 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe b7a87a83 .config console log report ci2-upstream-usb
2019/10/01 01:01 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe c7a4fb99 .config console log report ci2-upstream-usb
2019/09/29 14:07 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe c1ad5441 .config console log report ci2-upstream-usb
2019/09/29 05:33 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe eb6b9855 .config console log report ci2-upstream-usb
2019/09/28 06:27 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe d8074e0b .config console log report ci2-upstream-usb
2019/09/26 18:23 https://github.com/google/kasan.git usb-fuzzer 2994c07743fe 24d405a3 .config console log report ci2-upstream-usb
2019/09/26 14:46 https://github.com/google/kasan.git usb-fuzzer 23e42cc70f6e 24d405a3 .config console log report ci2-upstream-usb
2019/09/26 14:15 https://github.com/google/kasan.git usb-fuzzer 23e42cc70f6e 24d405a3 .config console log report ci2-upstream-usb
2019/09/26 11:11 https://github.com/google/kasan.git usb-fuzzer 23e42cc70f6e 24d405a3 .config console log report ci2-upstream-usb
2019/09/25 14:47 https://github.com/google/kasan.git usb-fuzzer d9e63adcd16e a3355dba .config console log report ci2-upstream-usb
2019/09/25 06:00 https://github.com/google/kasan.git usb-fuzzer d9e63adcd16e e38a6630 .config console log report ci2-upstream-usb
2019/09/24 03:03 https://github.com/google/kasan.git usb-fuzzer d9e63adcd16e c68252d2 .config console log report ci2-upstream-usb
2019/09/19 22:21 https://github.com/google/kasan.git usb-fuzzer e0bd8d794fc9 4d3ae0b7 .config console log report ci2-upstream-usb
2019/09/19 16:33 https://github.com/google/kasan.git usb-fuzzer e0bd8d794fc9 eb940044 .config console log report ci2-upstream-usb
2019/09/17 20:56 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 13dcda9b .config console log report ci2-upstream-usb
2019/09/17 19:44 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 13dcda9b .config console log report ci2-upstream-usb
2019/09/16 17:37 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 55c50e70 .config console log report ci2-upstream-usb
2019/09/13 10:39 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 40fa42bc .config console log report ci2-upstream-usb
2019/09/12 10:30 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 0b7672ee .config console log report ci2-upstream-usb
2019/09/12 02:33 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 f4e53c10 .config console log report ci2-upstream-usb
2019/09/11 21:56 https://github.com/google/kasan.git usb-fuzzer f0df5c1be1e9 f4e53c10 .config console log report ci2-upstream-usb
* Struck through repros no longer work on HEAD.