================================================================== BUG: KMSAN: uninit-value in __skb_unlink include/linux/skbuff.h:2016 [inline] BUG: KMSAN: uninit-value in __skb_dequeue include/linux/skbuff.h:2031 [inline] BUG: KMSAN: uninit-value in skb_dequeue net/core/skbuff.c:3034 [inline] BUG: KMSAN: uninit-value in skb_queue_purge+0x3e2/0x480 net/core/skbuff.c:3071 CPU: 1 PID: 10664 Comm: syz-executor.4 Not tainted 5.3.0-rc7+ #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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x162/0x2d0 mm/kmsan/kmsan_report.c:109 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:294 __skb_unlink include/linux/skbuff.h:2016 [inline] __skb_dequeue include/linux/skbuff.h:2031 [inline] skb_dequeue net/core/skbuff.c:3034 [inline] skb_queue_purge+0x3e2/0x480 net/core/skbuff.c:3071 pfkey_sock_destruct+0x25d/0x4c0 net/key/af_key.c:100 __sk_destruct+0x8c/0x890 net/core/sock.c:1695 sk_destruct net/core/sock.c:1734 [inline] __sk_free+0x5af/0x640 net/core/sock.c:1745 sk_free+0x6c/0x90 net/core/sock.c:1756 sock_put include/net/sock.h:1725 [inline] pfkey_release+0x418/0x530 net/key/af_key.c:190 __sock_release net/socket.c:590 [inline] sock_close+0x156/0x460 net/socket.c:1268 __fput+0x4c9/0xba0 fs/file_table.c:280 ____fput+0x37/0x40 fs/file_table.c:313 task_work_run+0x22e/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x39d/0x4d0 arch/x86/entry/common.c:194 syscall_return_slowpath+0x90/0x610 arch/x86/entry/common.c:274 do_syscall_64+0xe2/0xf0 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x4135d1 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:0000000000a6fbf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00000000004135d1 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 0000000000000001 R08: ffffffff8182a50d R09: 00000000e0d6a1d1 R10: 0000000000a6fcd0 R11: 0000000000000293 R12: 000000000075bf20 R13: 0000000000178395 R14: 0000000000761108 R15: ffffffffffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:189 [inline] kmsan_internal_poison_shadow+0x58/0xb0 mm/kmsan/kmsan.c:148 kmsan_slab_free+0x8d/0x100 mm/kmsan/kmsan_hooks.c:195 slab_free_freelist_hook mm/slub.c:1472 [inline] slab_free mm/slub.c:3038 [inline] kmem_cache_free+0x2d1/0x2b70 mm/slub.c:3054 kfree_skbmem net/core/skbuff.c:644 [inline] __kfree_skb+0x1dd/0x210 net/core/skbuff.c:680 consume_skb+0x2b0/0x2e0 net/core/skbuff.c:838 skb_free_datagram+0x52/0x180 net/core/datagram.c:328 unix_dgram_recvmsg+0x1402/0x1670 net/unix/af_unix.c:2127 sock_recvmsg_nosec net/socket.c:871 [inline] sock_recvmsg net/socket.c:889 [inline] __sys_recvfrom+0xaac/0xac0 net/socket.c:2009 __do_sys_recvfrom net/socket.c:2027 [inline] __se_sys_recvfrom+0x111/0x130 net/socket.c:2023 __x64_sys_recvfrom+0x6e/0x90 net/socket.c:2023 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================