================================================================== BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2749 [inline] BUG: KMSAN: uninit-value in kmem_cache_alloc_node+0x5d0/0xe70 mm/slub.c:2828 CPU: 0 PID: 12242 Comm: syz-executor.0 Not tainted 5.3.0-rc3+ #17 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 slab_alloc_node mm/slub.c:2749 [inline] kmem_cache_alloc_node+0x5d0/0xe70 mm/slub.c:2828 __alloc_skb+0x215/0xa10 net/core/skbuff.c:197 alloc_skb include/linux/skbuff.h:1056 [inline] __ip_append_data+0x3901/0x52f0 net/ipv4/ip_output.c:1094 ip_append_data+0x324/0x480 net/ipv4/ip_output.c:1309 udp_sendmsg+0x6d2/0x4170 net/ipv4/udp.c:1200 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg net/socket.c:657 [inline] kernel_sendmsg+0x384/0x440 net/socket.c:677 sock_no_sendpage+0x205/0x2b0 net/core/sock.c:2721 udp_sendpage+0x417/0xa50 net/ipv4/udp.c:1276 inet_sendpage+0x1ab/0x2c0 net/ipv4/af_inet.c:821 kernel_sendpage net/socket.c:3682 [inline] sock_sendpage+0x1f1/0x2e0 net/socket.c:935 pipe_to_sendpage+0x342/0x470 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x484/0xe80 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x1d5/0x2d0 fs/splice.c:829 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0x19e/0x200 fs/splice.c:1020 splice_direct_to_actor+0x852/0x1130 fs/splice.c:975 do_splice_direct+0x342/0x580 fs/splice.c:1063 do_sendfile+0x1010/0x1d20 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64+0x2bb/0x360 fs/read_write.c:1511 __x64_sys_sendfile64+0x56/0x70 fs/read_write.c:1511 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x459829 Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc093fd0c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000459829 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000020000000009 R11: 0000000000000246 R12: 00007fc093fd16d4 R13: 00000000004c6ff7 R14: 00000000004dc578 R15: 00000000ffffffff Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:187 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:345 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:190 ___slab_alloc+0x1dbc/0x1fb0 mm/slub.c:2634 __slab_alloc mm/slub.c:2687 [inline] slab_alloc_node mm/slub.c:2750 [inline] kmem_cache_alloc_node+0x769/0xe70 mm/slub.c:2828 __alloc_skb+0x215/0xa10 net/core/skbuff.c:197 alloc_skb include/linux/skbuff.h:1056 [inline] __ip_append_data+0x3901/0x52f0 net/ipv4/ip_output.c:1094 ip_append_data+0x324/0x480 net/ipv4/ip_output.c:1309 udp_sendmsg+0x6d2/0x4170 net/ipv4/udp.c:1200 inet_sendmsg+0x276/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg net/socket.c:657 [inline] kernel_sendmsg+0x384/0x440 net/socket.c:677 sock_no_sendpage+0x205/0x2b0 net/core/sock.c:2721 udp_sendpage+0x417/0xa50 net/ipv4/udp.c:1276 inet_sendpage+0x1ab/0x2c0 net/ipv4/af_inet.c:821 kernel_sendpage net/socket.c:3682 [inline] sock_sendpage+0x1f1/0x2e0 net/socket.c:935 pipe_to_sendpage+0x342/0x470 fs/splice.c:449 splice_from_pipe_feed fs/splice.c:500 [inline] __splice_from_pipe+0x484/0xe80 fs/splice.c:624 splice_from_pipe fs/splice.c:659 [inline] generic_splice_sendpage+0x1d5/0x2d0 fs/splice.c:829 do_splice_from fs/splice.c:848 [inline] direct_splice_actor+0x19e/0x200 fs/splice.c:1020 splice_direct_to_actor+0x852/0x1130 fs/splice.c:975 do_splice_direct+0x342/0x580 fs/splice.c:1063 do_sendfile+0x1010/0x1d20 fs/read_write.c:1464 __do_sys_sendfile64 fs/read_write.c:1525 [inline] __se_sys_sendfile64+0x2bb/0x360 fs/read_write.c:1511 __x64_sys_sendfile64+0x56/0x70 fs/read_write.c:1511 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:187 [inline] kmsan_internal_poison_shadow+0x53/0xa0 mm/kmsan/kmsan.c:146 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_bulk+0x3ad9/0x3f50 mm/slub.c:3163 __kfree_skb_flush+0xb0/0x100 net/core/skbuff.c:862 net_rx_action+0x1908/0x1950 net/core/dev.c:6436 __do_softirq+0x4a1/0x83a kernel/softirq.c:293 invoke_softirq kernel/softirq.c:375 [inline] irq_exit+0x230/0x280 kernel/softirq.c:416 exiting_irq arch/x86/include/asm/apic.h:537 [inline] do_IRQ+0x20d/0x3a0 arch/x86/kernel/irq.c:259 ret_from_intr+0x0/0x33 kmsan_get_shadow_origin_ptr+0x57/0x3a0 mm/kmsan/kmsan.c:723 __msan_metadata_ptr_for_store_8+0x13/0x20 mm/kmsan/kmsan_instr.c:55 __write_once_size include/linux/compiler.h:235 [inline] __list_del include/linux/list.h:106 [inline] __list_del_entry include/linux/list.h:134 [inline] list_move_tail include/linux/list.h:213 [inline] tcp_update_skb_after_send net/ipv4/tcp_output.c:999 [inline] __tcp_transmit_skb+0x47b3/0x5c60 net/ipv4/tcp_output.c:1165 tcp_transmit_skb net/ipv4/tcp_output.c:1174 [inline] tcp_write_xmit+0x38d9/0xa870 net/ipv4/tcp_output.c:2425 __tcp_push_pending_frames+0x124/0x4e0 net/ipv4/tcp_output.c:2601 tcp_push+0x705/0x8b0 net/ipv4/tcp.c:724 tcp_sendmsg_locked+0x5af9/0x6880 net/ipv4/tcp.c:1382 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1420 inet_sendmsg+0x178/0x2e0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg net/socket.c:657 [inline] sock_write_iter+0x599/0x650 net/socket.c:989 call_write_iter include/linux/fs.h:1870 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0xa2c/0xcb0 fs/read_write.c:496 vfs_write+0x481/0x920 fs/read_write.c:558 ksys_write+0x265/0x430 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+0xbc/0xf0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================