===================================================== BUG: KMSAN: uninit-value in update_stack_state+0x974/0xb40 arch/x86/kernel/unwind_frame.c:238 CPU: 1 PID: 4868 Comm: systemd-udevd Not tainted 5.8.0-rc5-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+0x21c/0x280 lib/dump_stack.c:118 kmsan_report+0xf7/0x1e0 mm/kmsan/kmsan_report.c:121 __msan_warning+0x58/0xa0 mm/kmsan/kmsan_instr.c:215 update_stack_state+0x974/0xb40 arch/x86/kernel/unwind_frame.c:238 unwind_next_frame+0x8c6/0xed0 arch/x86/kernel/unwind_frame.c:305 arch_stack_walk+0x338/0x3d0 arch/x86/kernel/stacktrace.c:25 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 sctp_init_addrs+0x91/0xf0 net/sctp/sm_make_chunk.c:1364 sctp_rcv+0x4e92/0x6120 net/sctp/input.c:222 ip_protocol_deliver_rcu+0x572/0xc50 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip_local_deliver+0x727/0x8d0 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:449 [inline] ip_rcv_finish net/ipv4/ip_input.c:428 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] ip_rcv+0x795/0x810 net/ipv4/ip_input.c:539 __netif_receive_skb_one_core net/core/dev.c:5281 [inline] __netif_receive_skb+0x265/0x670 net/core/dev.c:5395 process_backlog+0x50d/0xba0 net/core/dev.c:6239 napi_poll+0x43b/0xfd0 net/core/dev.c:6684 net_rx_action+0x35c/0xd40 net/core/dev.c:6752 __do_softirq+0x2ea/0x7f5 kernel/softirq.c:293 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:23 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:50 [inline] do_softirq_own_stack+0x7c/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:390 [inline] __irq_exit_rcu+0x226/0x270 kernel/softirq.c:420 irq_exit_rcu+0xe/0x10 kernel/softirq.c:432 sysvec_call_function_single+0x107/0x130 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:601 RIP: 0010:kmsan_get_metadata+0x159/0x180 mm/kmsan/kmsan_shadow.c:201 Code: ff 0f 00 00 45 84 f6 48 0f 45 c8 48 b8 00 00 00 00 00 16 00 00 48 01 c8 48 c1 e8 04 48 b9 00 d0 cc cc cc cc cc cc 48 0f af c8 <48> 09 d9 48 b8 00 00 00 00 80 88 ff ff e9 fd fe ff ff 31 c0 5b 41 RSP: 0018:ffff888114097960 EFLAGS: 00000a07 RAX: 00000000005634a7 RBX: 0000000000000c28 RCX: 0000000113dbb000 RDX: 00000001141bbc28 RSI: 0000000000000440 RDI: ffff8881141bbc28 RBP: ffff888114097978 R08: ffffea000000000f R09: ffff88812fffa000 R10: 0000000000000003 R11: ffff88811a0d3d00 R12: ffff888114097b05 R13: ffff888114097b88 R14: 0000000000000001 R15: 0000000000000001 kmsan_get_shadow_origin_ptr+0x81/0xb0 mm/kmsan/kmsan_shadow.c:154 __msan_metadata_ptr_for_load_8+0x10/0x20 mm/kmsan/kmsan_instr.c:55 tomoyo_compare_name_union security/tomoyo/file.c:85 [inline] tomoyo_check_path_acl+0x14f/0x360 security/tomoyo/file.c:260 tomoyo_check_acl+0x239/0x5a0 security/tomoyo/domain.c:175 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_perm+0x83f/0xc60 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x54/0x60 security/tomoyo/tomoyo.c:123 security_inode_getattr+0x144/0x280 security/security.c:1278 vfs_getattr fs/stat.c:121 [inline] vfs_statx_fd fs/stat.c:151 [inline] vfs_fstat include/linux/fs.h:3313 [inline] __do_sys_newfstat fs/stat.c:398 [inline] __se_sys_newfstat+0x11c/0xaf0 fs/stat.c:395 __x64_sys_newfstat+0x3e/0x60 fs/stat.c:395 do_syscall_64+0xad/0x160 arch/x86/entry/common.c:386 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fc99c2522e2 Code: Bad RIP value. RSP: 002b:00007fffc707a328 EFLAGS: 00000246 ORIG_RAX: 0000000000000005 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc99c2522e2 RDX: 00007fffc707a340 RSI: 00007fffc707a340 RDI: 000000000000000e RBP: 00007fffc707a4e0 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000080000 R11: 0000000000000246 R12: 0000560a2afac400 R13: 0000560a2af30010 R14: 0000560a2af99130 R15: 00007fffc707a4a0 Local variable ----filename@process_measurement created at: process_measurement+0x1d2/0x3960 security/integrity/ima/ima_main.c:198 process_measurement+0x1d2/0x3960 security/integrity/ima/ima_main.c:198 =====================================================