syzbot


KMSAN: uninit-value in stack_trace_consume_entry

Status: upstream: reported C repro on 2022/08/10 06:13
Reported-by: syzbot+227ae323c9d4c04c300a@syzkaller.appspotmail.com
First crash: 945d, last: 62d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KMSAN: uninit-value in p9pdu_vwritef 544 43d 273d 0/24 upstream: reported on 2022/01/07 12:50
upstream KMSAN: uninit-value in irqtime_account_irq (2) C 7 161d 294d 0/24 auto-closed as invalid on 2022/09/02 15:33
upstream KMSAN: kernel-infoleak in _copy_to_iter (7) C 1439 31m 212d 23/24 internal: reported C repro on 2022/03/09 07:32
upstream KMSAN: uninit-value in exit_to_user_mode_loop (3) C 2558 115d 373d 0/24 auto-closed as invalid on 2022/09/22 19:06
upstream KMSAN: uninit-value in do_user_addr_fault (3) C 680 148d 197d 2/24 closed as invalid on 2022/05/12 12:08
upstream KASAN: stack-out-of-bounds Read in __show_regs C unreliable unreliable 413 now 477d 0/24 upstream: reported C repro on 2021/06/17 03:08

Sample crash report:
=====================================================
BUG: KMSAN: uninit-value in stack_trace_consume_entry+0x171/0x310 kernel/stacktrace.c:89
CPU: 1 PID: 10926 Comm: syz-executor854 Not tainted 5.6.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:77 [inline]
 dump_stack+0x1c9/0x220 lib/dump_stack.c:118
 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:118
 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215
 stack_trace_consume_entry+0x171/0x310 kernel/stacktrace.c:89
 arch_stack_walk+0x317/0x3e0 arch/x86/kernel/stacktrace.c:27
 stack_trace_save+0x117/0x1a0 kernel/stacktrace.c:123
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310
 kmsan_memcpy_memmove_metadata+0x272/0x2e0 mm/kmsan/kmsan.c:247
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267
 __msan_memcpy+0x43/0x50 mm/kmsan/kmsan_instr.c:116
 sock_write_iter+0x4f6/0x6d0 net/socket.c:1005
 call_write_iter include/linux/fs.h:1902 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0xa5a/0xca0 fs/read_write.c:496
 vfs_write+0x44a/0x8f0 fs/read_write.c:558
 ksys_write+0x267/0x450 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:620
 __x64_sys_write+0x4a/0x70 fs/read_write.c:620
 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x443dd9
Code: e8 2c 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 8b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fffb6d37698 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000443dd9
RDX: 0000000000000018 RSI: 0000000020000280 RDI: 0000000000000003
RBP: 00007fffb6d376b0 R08: 0000000101bbbbbb R09: 0000000101bbbbbb
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000404c80 R14: 0000000000000000 R15: 0000000000000000

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310
 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165
 stack_trace_consume_entry+0x27a/0x310 kernel/stacktrace.c:90
 arch_stack_walk+0x317/0x3e0 arch/x86/kernel/stacktrace.c:27
 stack_trace_save+0x117/0x1a0 kernel/stacktrace.c:123
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310
 kmsan_memcpy_memmove_metadata+0x272/0x2e0 mm/kmsan/kmsan.c:247
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267
 __msan_memcpy+0x43/0x50 mm/kmsan/kmsan_instr.c:116
 sock_write_iter+0x4f6/0x6d0 net/socket.c:1005
 call_write_iter include/linux/fs.h:1902 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0xa5a/0xca0 fs/read_write.c:496
 vfs_write+0x44a/0x8f0 fs/read_write.c:558
 ksys_write+0x267/0x450 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:620
 __x64_sys_write+0x4a/0x70 fs/read_write.c:620
 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Uninit was stored to memory at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310
 __msan_chain_origin+0x50/0x90 mm/kmsan/kmsan_instr.c:165
 stack_trace_save+0x193/0x1a0 kernel/stacktrace.c:117
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_chain_origin+0xad/0x130 mm/kmsan/kmsan.c:310
 kmsan_memcpy_memmove_metadata+0x272/0x2e0 mm/kmsan/kmsan.c:247
 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:267
 __msan_memcpy+0x43/0x50 mm/kmsan/kmsan_instr.c:116
 sock_write_iter+0x4f6/0x6d0 net/socket.c:1005
 call_write_iter include/linux/fs.h:1902 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0xa5a/0xca0 fs/read_write.c:496
 vfs_write+0x44a/0x8f0 fs/read_write.c:558
 ksys_write+0x267/0x450 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:620
 __x64_sys_write+0x4a/0x70 fs/read_write.c:620
 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Uninit was created at:
 kmsan_save_stack_with_flags mm/kmsan/kmsan.c:144 [inline]
 kmsan_internal_poison_shadow+0x66/0xd0 mm/kmsan/kmsan.c:127
 kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:82
 slab_alloc_node mm/slub.c:2793 [inline]
 __kmalloc_node_track_caller+0xb40/0x1200 mm/slub.c:4401
 __kmalloc_reserve net/core/skbuff.c:142 [inline]
 __alloc_skb+0x2fd/0xac0 net/core/skbuff.c:210
 alloc_skb include/linux/skbuff.h:1081 [inline]
 alloc_skb_with_frags+0x18c/0xa70 net/core/skbuff.c:5764
 sock_alloc_send_pskb+0xada/0xc60 net/core/sock.c:2245
 packet_alloc_skb net/packet/af_packet.c:2816 [inline]
 packet_snd net/packet/af_packet.c:2911 [inline]
 packet_sendmsg+0x66a0/0x93b0 net/packet/af_packet.c:2993
 sock_sendmsg_nosec net/socket.c:652 [inline]
 sock_sendmsg net/socket.c:672 [inline]
 sock_write_iter+0x6bc/0x6d0 net/socket.c:1004
 call_write_iter include/linux/fs.h:1902 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0xa5a/0xca0 fs/read_write.c:496
 vfs_write+0x44a/0x8f0 fs/read_write.c:558
 ksys_write+0x267/0x450 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write+0x92/0xb0 fs/read_write.c:620
 __x64_sys_write+0x4a/0x70 fs/read_write.c:620
 do_syscall_64+0xb8/0x160 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
=====================================================

Crashes (706):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kmsan-gce 2020/03/20 23:26 https://github.com/google/kmsan.git master a58741ac26cc 2c31c529 .config log report syz C
ci-upstream-kmsan-gce 2020/03/07 06:06 https://github.com/google/kmsan.git master 8bbbc5cf3dca fd2a5f28 .config log report syz C
ci-upstream-kmsan-gce-386 2020/04/11 10:48 https://github.com/google/kmsan.git master 75303409203b a8c6a3f8 .config log report syz C
ci-upstream-kmsan-gce-386 2020/03/11 07:57 https://github.com/google/kmsan.git master 8bbbc5cf3dca 35f53e45 .config log report syz C
ci-upstream-kmsan-gce-386 2022/05/17 18:03 https://github.com/google/kmsan.git master bb5f91ee4783 744a39e2 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/16 16:45 https://github.com/google/kmsan.git master d6e2c8c7eb40 744a39e2 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/16 10:35 https://github.com/google/kmsan.git master d6e2c8c7eb40 744a39e2 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/14 01:21 https://github.com/google/kmsan.git master d6e2c8c7eb40 107f6434 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/13 19:13 https://github.com/google/kmsan.git master d6e2c8c7eb40 107f6434 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/13 00:38 https://github.com/google/kmsan.git master d6e2c8c7eb40 9ad6612a .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/12 21:16 https://github.com/google/kmsan.git master d6e2c8c7eb40 9ad6612a .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/11 23:51 https://github.com/google/kmsan.git master d6e2c8c7eb40 beb0b407 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/11 08:22 https://github.com/google/kmsan.git master d6e2c8c7eb40 8d7b3b67 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/11 07:52 https://github.com/google/kmsan.git master d6e2c8c7eb40 8d7b3b67 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/11 06:35 https://github.com/google/kmsan.git master d6e2c8c7eb40 8d7b3b67 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/11 00:45 https://github.com/google/kmsan.git master d6e2c8c7eb40 8d7b3b67 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/10 22:03 https://github.com/google/kmsan.git master d6e2c8c7eb40 8b277b8e .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/09 15:14 https://github.com/google/kmsan.git master d6e2c8c7eb40 8b277b8e .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/09 06:40 https://github.com/google/kmsan.git master d6e2c8c7eb40 e60b1103 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/08 23:58 https://github.com/google/kmsan.git master d6e2c8c7eb40 e60b1103 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/08 10:51 https://github.com/google/kmsan.git master d6e2c8c7eb40 e60b1103 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/06 10:12 https://github.com/google/kmsan.git master d6e2c8c7eb40 e60b1103 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/05 19:01 https://github.com/google/kmsan.git master d6e2c8c7eb40 efeff0a5 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/05 05:22 https://github.com/google/kmsan.git master d6e2c8c7eb40 dc9e5259 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/04 04:50 https://github.com/google/kmsan.git master d6e2c8c7eb40 dc9e5259 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/05/03 11:58 https://github.com/google/kmsan.git master d6e2c8c7eb40 7ee63e2c .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/30 20:13 https://github.com/google/kmsan.git master d6e2c8c7eb40 2df221f6 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/29 22:28 https://github.com/google/kmsan.git master d6e2c8c7eb40 44a5ca63 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/29 17:59 https://github.com/google/kmsan.git master d6e2c8c7eb40 44a5ca63 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/29 10:54 https://github.com/google/kmsan.git master d6e2c8c7eb40 e9076525 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/29 02:30 https://github.com/google/kmsan.git master d6e2c8c7eb40 e9076525 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/28 21:05 https://github.com/google/kmsan.git master d6e2c8c7eb40 e9076525 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/28 16:00 https://github.com/google/kmsan.git master d6e2c8c7eb40 e9076525 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/28 11:59 https://github.com/google/kmsan.git master d6e2c8c7eb40 8a1f1f07 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/28 08:49 https://github.com/google/kmsan.git master d6e2c8c7eb40 8a1f1f07 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/27 23:02 https://github.com/google/kmsan.git master d6e2c8c7eb40 8a1f1f07 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/26 23:30 https://github.com/google/kmsan.git master e8cbf4e6e3e8 1fa34c1b .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/26 17:44 https://github.com/google/kmsan.git master e8cbf4e6e3e8 1fa34c1b .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/26 03:44 https://github.com/google/kmsan.git master b834db009dc5 152baedd .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/26 00:21 https://github.com/google/kmsan.git master b834db009dc5 152baedd .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/25 21:22 https://github.com/google/kmsan.git master b834db009dc5 152baedd .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/25 15:27 https://github.com/google/kmsan.git master b834db009dc5 c889aef9 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/25 13:17 https://github.com/google/kmsan.git master b834db009dc5 c889aef9 .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/24 06:23 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/24 04:20 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/24 01:37 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/23 20:24 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/22 21:43 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2022/04/22 17:12 https://github.com/google/kmsan.git master b834db009dc5 131df97d .config log report info KMSAN: uninit-value in stack_trace_consume_entry
ci-upstream-kmsan-gce 2020/09/05 08:18 https://github.com/google/kmsan.git master 3b3ea6028136 abf9ba4f .config log report
ci-upstream-kmsan-gce 2020/03/06 17:30 https://github.com/google/kmsan.git master 8bbbc5cf3dca c88c7b75 .config log report
ci-qemu2-riscv64 2022/08/06 06:07 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 0966d385830d e853abd9 .config log report info KASAN: use-after-free Write in stack_trace_consume_entry
ci-upstream-kmsan-gce-386 2020/12/31 16:44 https://github.com/google/kmsan.git master 73d62e81b476 79264ae3 .config log report info
* Struck through repros no longer work on HEAD.