EXT4-fs error (device loop3): ext4_do_update_inode:5154: inode #20: comm syz.3.657: corrupted inode contents EXT4-fs error (device loop3): ext4_dirty_inode:6014: inode #20: comm syz.3.657: mark_inode_dirty error EXT4-fs error (device loop3): ext4_do_update_inode:5154: inode #20: comm syz.3.657: corrupted inode contents ================================================================== BUG: KCSAN: data-race in data_push_tail / vsnprintf write to 0xffffffff88b4b4b8 of 1 bytes by task 5873 on cpu 1: vsnprintf+0xdd8/0xe30 vscnprintf+0x42/0x90 lib/vsprintf.c:2930 printk_sprint+0x30/0x2d0 kernel/printk/printk.c:2165 vprintk_store+0x570/0x810 kernel/printk/printk.c:2279 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2329 vprintk_default+0x26/0x30 kernel/printk/printk.c:2363 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2373 validate_nla lib/nlattr.c:414 [inline] __nla_validate_parse+0x1332/0x1e30 lib/nlattr.c:635 __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] rtnl_setlink+0xd2/0x300 net/core/rtnetlink.c:3174 rtnetlink_rcv_msg+0x6aa/0x710 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2550 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6665 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x593/0x670 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:745 sock_write_iter+0x164/0x1b0 net/socket.c:1160 do_iter_readv_writev+0x3b0/0x470 vfs_writev+0x2e0/0x880 fs/read_write.c:971 do_writev+0xf8/0x220 fs/read_write.c:1018 __do_sys_writev fs/read_write.c:1091 [inline] __se_sys_writev fs/read_write.c:1088 [inline] __x64_sys_writev+0x45/0x50 fs/read_write.c:1088 x64_sys_call+0x1f18/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:21 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 0xffffffff88b4b4b8 of 8 bytes by task 5896 on cpu 0: 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:2269 vprintk_emit+0x10c/0x5e0 kernel/printk/printk.c:2329 vprintk_default+0x26/0x30 kernel/printk/printk.c:2363 vprintk+0x75/0x80 kernel/printk/printk_safe.c:45 _printk+0x7a/0xa0 kernel/printk/printk.c:2373 __ext4_error_inode+0x2da/0x400 fs/ext4/super.c:853 ext4_do_update_inode fs/ext4/inode.c:5154 [inline] ext4_mark_iloc_dirty+0x325/0xe10 fs/ext4/inode.c:5781 __ext4_mark_inode_dirty+0x314/0x440 fs/ext4/inode.c:5985 ext4_xattr_delete_inode+0x721/0x790 fs/ext4/xattr.c:3007 ext4_evict_inode+0xa82/0xdd0 fs/ext4/inode.c:268 evict+0x1ae/0x420 fs/inode.c:669 iput_final fs/inode.c:1803 [inline] iput+0x432/0x5c0 fs/inode.c:1829 ext4_ext_migrate+0x8e3/0x9a0 fs/ext4/migrate.c:587 __ext4_ioctl fs/ext4/ioctl.c:1408 [inline] ext4_ioctl+0x104b/0x2de0 fs/ext4/ioctl.c:1626 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xd3/0x150 fs/ioctl.c:893 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:893 x64_sys_call+0x15cc/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:17 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: 0x00000000ffffe1c5 -> 0x00000000ffffe100 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 5896 Comm: syz.3.657 Not tainted 6.11.0-rc2-syzkaller-00315-g7006fe2f7f78 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 ================================================================== EXT4-fs error (device loop3): ext4_xattr_delete_inode:3007: inode #20: comm syz.3.657: mark_inode_dirty error EXT4-fs error (device loop3): ext4_xattr_delete_inode:3010: inode #20: comm syz.3.657: mark inode dirty (error -117) EXT4-fs warning (device loop3): ext4_evict_inode:271: xattr delete (err -117)