syzbot


KMSAN: uninit-value in kmem_cache_alloc

Status: closed as invalid on 2018/09/05 16:30
Subsystems: net
[Documentation on labels]
First crash: 2595d, last: 2595d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in kmem_cache_alloc (2) net 7 11 2154d 2406d 0/29 auto-closed as invalid on 2019/12/27 19:44

Sample crash report:
==================================================================
BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2705 [inline]
BUG: KMSAN: uninit-value in slab_alloc mm/slub.c:2728 [inline]
BUG: KMSAN: uninit-value in kmem_cache_alloc+0x390/0xbb0 mm/slub.c:2733
CPU: 1 PID: 15829 Comm: syz-executor3 Not tainted 4.18.0-rc4+ #27
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+0x185/0x1e0 lib/dump_stack.c:113
 kmsan_report+0x195/0x2c0 mm/kmsan/kmsan.c:982
 __msan_warning+0x7d/0xe0 mm/kmsan/kmsan_instr.c:645
 slab_alloc_node mm/slub.c:2705 [inline]
 slab_alloc mm/slub.c:2728 [inline]
 kmem_cache_alloc+0x390/0xbb0 mm/slub.c:2733
 sk_prot_alloc+0xf6/0x4b0 net/core/sock.c:1475
 sk_alloc+0xf1/0xc00 net/core/sock.c:1535
 inet6_create+0x75f/0x16f0 net/ipv6/af_inet6.c:183
 __sock_create+0x723/0xf70 net/socket.c:1286
 sock_create net/socket.c:1326 [inline]
 __sys_socket+0x184/0x670 net/socket.c:1356
 __do_sys_socket net/socket.c:1365 [inline]
 __se_sys_socket net/socket.c:1363 [inline]
 __x64_sys_socket+0xd8/0x120 net/socket.c:1363
 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x63/0xe7
RIP: 0033:0x455ab9
Code: 1d ba 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 
RSP: 002b:00007fd2d7e79c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007fd2d7e7a6d4 RCX: 0000000000455ab9
RDX: 0000000000000001 RSI: 0000400000000003 RDI: 000000000000000a
RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004c1c6c R14: 00000000004d3438 R15: 0000000000000000

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline]
 kmsan_internal_alloc_meta_for_pages+0x157/0x730 mm/kmsan/kmsan.c:694
 kmsan_alloc_page+0x80/0xe0 mm/kmsan/kmsan_hooks.c:250
 __alloc_pages_nodemask+0x105b/0x6320 mm/page_alloc.c:4409
 __alloc_pages include/linux/gfp.h:458 [inline]
 __alloc_pages_node include/linux/gfp.h:471 [inline]
 alloc_pages_vma+0x1591/0x1830 mm/mempolicy.c:2049
 do_huge_pmd_anonymous_page+0xc45/0x2870 mm/huge_memory.c:719
 create_huge_pmd mm/memory.c:3865 [inline]
 __handle_mm_fault mm/memory.c:4069 [inline]
 handle_mm_fault+0x47a4/0x85e0 mm/memory.c:4135
 __do_page_fault+0xa76/0x1810 arch/x86/mm/fault.c:1397
 do_page_fault+0x98/0xd0 arch/x86/mm/fault.c:1474
 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1169
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/14 22:46 https://github.com/google/kmsan.git master 80ecacc456c1 92a49505 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.