netlink: 104 bytes leftover after parsing attributes in process `syz.4.9488'. ================================================================== BUG: KCSAN: data-race in data_push_tail / string write to 0xffffffff88b955bb of 1 bytes by task 28371 on cpu 0: string_nocheck lib/vsprintf.c:650 [inline] string+0x16c/0x210 lib/vsprintf.c:728 vsnprintf+0xa09/0xe30 lib/vsprintf.c:2803 vscnprintf+0x42/0x90 lib/vsprintf.c:2909 printk_sprint+0x30/0x2d0 kernel/printk/printk.c:2197 vprintk_store+0x570/0x810 kernel/printk/printk.c:2311 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2383 vprintk_default+0x26/0x30 kernel/printk/printk.c:2422 vprintk+0x75/0x80 kernel/printk/printk_safe.c:68 _printk+0x7a/0xa0 kernel/printk/printk.c:2432 __nla_validate_parse+0x1881/0x1e30 lib/nlattr.c:647 __nla_parse+0x40/0x60 lib/nlattr.c:732 __nlmsg_parse include/net/netlink.h:761 [inline] nlmsg_parse_deprecated include/net/netlink.h:802 [inline] xfrm_user_rcv_msg+0x396/0x5c0 net/xfrm/xfrm_user.c:3304 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2551 xfrm_netlink_rcv+0x47/0x60 net/xfrm/xfrm_user.c:3343 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:744 ____sys_sendmsg+0x312/0x410 net/socket.c:2607 ___sys_sendmsg net/socket.c:2661 [inline] __sys_sendmsg+0x1d9/0x270 net/socket.c:2690 __do_sys_sendmsg net/socket.c:2699 [inline] __se_sys_sendmsg net/socket.c:2697 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2697 x64_sys_call+0x2689/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffffff88b955b8 of 8 bytes by task 28370 on cpu 1: data_make_reusable kernel/printk/printk_ringbuffer.c:594 [inline] data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:679 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1054 prb_reserve+0x85e/0xb60 kernel/printk/printk_ringbuffer.c:1669 vprintk_store+0x53f/0x810 kernel/printk/printk.c:2301 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2383 vprintk_default+0x26/0x30 kernel/printk/printk.c:2422 vprintk+0x75/0x80 kernel/printk/printk_safe.c:68 _printk+0x7a/0xa0 kernel/printk/printk.c:2432 __nla_validate_parse+0x1881/0x1e30 lib/nlattr.c:647 __nla_parse+0x40/0x60 lib/nlattr.c:732 __nlmsg_parse include/net/netlink.h:761 [inline] nlmsg_parse_deprecated include/net/netlink.h:802 [inline] xfrm_user_rcv_msg+0x396/0x5c0 net/xfrm/xfrm_user.c:3304 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2551 xfrm_netlink_rcv+0x47/0x60 net/xfrm/xfrm_user.c:3343 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:744 ____sys_sendmsg+0x312/0x410 net/socket.c:2607 ___sys_sendmsg net/socket.c:2661 [inline] __sys_sendmsg+0x1d9/0x270 net/socket.c:2690 __do_sys_sendmsg net/socket.c:2699 [inline] __se_sys_sendmsg net/socket.c:2697 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2697 x64_sys_call+0x2689/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:47 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000fffffa12 -> 0x392e332e7a797360 Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 28370 Comm: syz.4.9488 Tainted: G W 6.12.0-rc5-syzkaller-00044-gc1e939a21eb1 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ==================================================================