================================================================== BUG: KMSAN: uninit-value in do_slab_free mm/slub.c:2985 [inline] BUG: KMSAN: uninit-value in slab_free mm/slub.c:3008 [inline] BUG: KMSAN: uninit-value in kmem_cache_free+0x682/0x2b70 mm/slub.c:3023 CPU: 1 PID: 14380 Comm: syz-executor.5 Not tainted 5.0.0-rc1+ #9 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+0x173/0x1d0 lib/dump_stack.c:113 kmsan_report+0x12e/0x2a0 mm/kmsan/kmsan.c:600 __msan_warning+0x82/0xf0 mm/kmsan/kmsan_instr.c:313 do_slab_free mm/slub.c:2985 [inline] slab_free mm/slub.c:3008 [inline] kmem_cache_free+0x682/0x2b70 mm/slub.c:3023 sk_prot_free net/core/sock.c:1512 [inline] __sk_destruct+0x8ce/0x970 net/core/sock.c:1596 sk_destruct net/core/sock.c:1604 [inline] __sk_free+0x5af/0x640 net/core/sock.c:1615 sk_free net/core/sock.c:1626 [inline] sock_put include/net/sock.h:1707 [inline] sk_common_release+0x2fc/0x4d0 net/core/sock.c:3042 rawv6_close+0xd9/0x110 net/ipv6/raw.c:1236 inet_release+0x162/0x2a0 net/ipv4/af_inet.c:428 inet6_release+0xaf/0x100 net/ipv6/af_inet6.c:461 __sock_release net/socket.c:579 [inline] sock_close+0x13f/0x400 net/socket.c:1141 __fput+0x4d1/0xbb0 fs/file_table.c:278 ____fput+0x37/0x40 fs/file_table.c:309 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:166 [inline] prepare_exit_to_usermode+0x321/0x420 arch/x86/entry/common.c:197 syscall_return_slowpath+0xb2/0x650 arch/x86/entry/common.c:268 do_syscall_64+0xe2/0xf0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x411d31 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 94 19 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:0000000000a4fd90 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000411d31 RDX: 0000000000000000 RSI: 00000000007411a0 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000741198 R09: 000000000005fc6a R10: 0000000000a4fcb0 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000058 R15: 0000000000000005 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_save_stack mm/kmsan/kmsan.c:220 [inline] kmsan_internal_chain_origin+0x134/0x230 mm/kmsan/kmsan.c:426 __msan_chain_origin+0x70/0xe0 mm/kmsan/kmsan_instr.c:200 ___slab_alloc+0x1d41/0x2060 mm/slub.c:2604 __slab_alloc mm/slub.c:2657 [inline] slab_alloc_node mm/slub.c:2720 [inline] slab_alloc mm/slub.c:2762 [inline] kmem_cache_alloc+0xae8/0xb60 mm/slub.c:2767 sk_prot_alloc+0xf1/0x500 net/core/sock.c:1471 sk_alloc+0xde/0xb90 net/core/sock.c:1531 inet6_create+0x72c/0x1600 net/ipv6/af_inet6.c:183 __sock_create+0x65f/0xf30 net/socket.c:1277 sock_create net/socket.c:1317 [inline] __sys_socket+0x174/0x640 net/socket.c:1347 __do_sys_socket net/socket.c:1356 [inline] __se_sys_socket+0x8d/0xb0 net/socket.c:1354 __x64_sys_socket+0x4a/0x70 net/socket.c:1354 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Uninit was created at: kmsan_save_stack_with_flags+0x7a/0x130 mm/kmsan/kmsan.c:205 kmsan_internal_alloc_meta_for_pages+0x113/0x580 mm/kmsan/kmsan_hooks.c:98 kmsan_alloc_page+0x7e/0x100 mm/kmsan/kmsan_hooks.c:396 __alloc_pages_nodemask+0x137b/0x5e30 mm/page_alloc.c:4572 alloc_pages_current+0x69d/0x9b0 mm/mempolicy.c:2106 alloc_pages include/linux/gfp.h:511 [inline] alloc_slab_page mm/slub.c:1492 [inline] allocate_slab mm/slub.c:1637 [inline] new_slab+0x3c6/0x20b0 mm/slub.c:1711 new_slab_objects mm/slub.c:2465 [inline] ___slab_alloc+0x1577/0x2060 mm/slub.c:2617 __slab_alloc mm/slub.c:2657 [inline] slab_alloc_node mm/slub.c:2720 [inline] slab_alloc mm/slub.c:2762 [inline] kmem_cache_alloc+0xae8/0xb60 mm/slub.c:2767 sk_prot_alloc+0xf1/0x500 net/core/sock.c:1471 sk_alloc+0xde/0xb90 net/core/sock.c:1531 inet6_create+0x72c/0x1600 net/ipv6/af_inet6.c:183 __sock_create+0x65f/0xf30 net/socket.c:1277 sock_create net/socket.c:1317 [inline] __sys_socket+0x174/0x640 net/socket.c:1347 __do_sys_socket net/socket.c:1356 [inline] __se_sys_socket+0x8d/0xb0 net/socket.c:1354 __x64_sys_socket+0x4a/0x70 net/socket.c:1354 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================