syzbot


KMSAN: uninit-value in build_id_parse

Status: auto-closed as invalid on 2021/08/05 15:08
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 656d, last: 641d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in build_id_parse (2) 3 428d 439d 0/24 auto-closed as invalid on 2022/03/07 06:37

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in build_id_parse+0x3ff/0x17b0 lib/buildid.c:134
CPU: 0 PID: 16767 Comm: syz-executor.0 Tainted: G        W         5.12.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x24c/0x2e0 lib/dump_stack.c:120
 kmsan_report+0xfb/0x1e0 mm/kmsan/kmsan_report.c:118
 __msan_warning+0x5c/0xa0 mm/kmsan/kmsan_instr.c:197
 build_id_parse+0x3ff/0x17b0 lib/buildid.c:134
 perf_event_mmap_event kernel/events/core.c:8277 [inline]
 perf_event_mmap+0x2b35/0x2c20 kernel/events/core.c:8420
 mmap_region+0x200d/0x46c0 mm/mmap.c:1869
 do_mmap+0x1978/0x2650 mm/mmap.c:1581
 vm_mmap_pgoff+0x365/0x570 mm/util.c:519
 ksys_mmap_pgoff+0x59b/0xac0 mm/mmap.c:1632
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:96 [inline]
 __se_sys_mmap+0x172/0x1a0 arch/x86/kernel/sys_x86_64.c:89
 __x64_sys_mmap+0x69/0x90 arch/x86/kernel/sys_x86_64.c:89
 do_syscall_64+0x9f/0x140 arch/x86/entry/common.c:48
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665f9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f531c82e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 000000000200000e RSI: 0000000000e7e000 RDI: 0000000020000000
RBP: 00000000004bfbb9 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000013 R11: 0000000000000246 R12: 000000000056bf60
R13: 0000000000a9fb1f R14: 00007f531c82e300 R15: 0000000000022000

Uninit was created at:
 kmsan_save_stack_with_flags+0x3c/0x90 mm/kmsan/kmsan.c:121
 kmsan_alloc_page+0xd0/0x1e0 mm/kmsan/kmsan_shadow.c:274
 __alloc_pages_nodemask+0x827/0xf90 mm/page_alloc.c:5044
 alloc_pages_current+0x7b6/0xb60 mm/mempolicy.c:2277
 alloc_pages include/linux/gfp.h:561 [inline]
 __page_cache_alloc+0xbd/0x290 mm/filemap.c:978
 page_cache_ra_unbounded+0x519/0xf40 mm/readahead.c:216
 do_page_cache_ra+0x289/0x2a0 mm/readahead.c:267
 do_sync_mmap_readahead+0xa8b/0xc10 mm/filemap.c:2810
 filemap_fault+0x5da/0x2520 mm/filemap.c:2898
 __do_fault mm/memory.c:3639 [inline]
 do_read_fault+0x9f6/0x11e0 mm/memory.c:3941
 do_fault mm/memory.c:4069 [inline]
 handle_pte_fault mm/memory.c:4320 [inline]
 __handle_mm_fault mm/memory.c:4455 [inline]
 handle_mm_fault+0x3be2/0x4ef0 mm/memory.c:4553
 do_user_addr_fault+0x159a/0x2650 arch/x86/mm/fault.c:1403
 handle_page_fault arch/x86/mm/fault.c:1488 [inline]
 __exc_page_fault+0xe3/0x340 arch/x86/mm/fault.c:1544
 exc_page_fault+0x45/0x50 arch/x86/mm/fault.c:1500
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:595
=====================================================
udc-core: couldn't find an available UDC or it's busy
misc raw-gadget: fail, usb_gadget_probe_driver returned -16

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kmsan-gce 2021/04/23 10:40 https://github.com/google/kmsan.git master 4ebaab5fb428 17f0b706 .config console log report info KMSAN: uninit-value in build_id_parse
ci-upstream-kmsan-gce-386 2021/05/07 15:03 https://github.com/google/kmsan.git master 4ebaab5fb428 f6da8120 .config console log report info KMSAN: uninit-value in build_id_parse
ci-upstream-kmsan-gce-386 2021/04/26 16:12 https://github.com/google/kmsan.git master 4ebaab5fb428 e60b7df1 .config console log report info KMSAN: uninit-value in build_id_parse
* Struck through repros no longer work on HEAD.