EXT4-fs error (device loop4): ext4_dirty_inode:5935: inode #2: comm syz.4.1010: mark_inode_dirty error ================================================================== BUG: KCSAN: data-race in data_push_tail / vsnprintf write to 0xffffffff883d24ec of 1 bytes by task 7966 on cpu 0: vsnprintf+0xdd8/0xe30 va_format lib/vsprintf.c:1683 [inline] pointer+0x8a1/0xd20 lib/vsprintf.c:2455 vsnprintf+0x861/0xe30 lib/vsprintf.c:2828 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 __netdev_printk+0x2d1/0x3e0 net/core/dev.c:11633 netdev_info+0x99/0xc0 net/core/dev.c:11680 __dev_set_allmulti+0x15b/0x240 net/core/dev.c:8641 dev_set_allmulti+0x1f/0x30 net/core/dev.c:8667 br_add_if+0x267/0xa50 net/bridge/br_if.c:605 br_add_slave+0x2c/0x40 net/bridge/br_device.c:373 do_set_master net/core/rtnetlink.c:2701 [inline] do_setlink+0x968/0x2490 net/core/rtnetlink.c:2907 __rtnl_newlink net/core/rtnetlink.c:3696 [inline] rtnl_newlink+0x11a1/0x1690 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x85e/0x910 net/core/rtnetlink.c:6635 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2564 rtnetlink_rcv+0x1c/0x30 net/core/rtnetlink.c:6653 netlink_unicast_kernel net/netlink/af_netlink.c:1335 [inline] netlink_unicast+0x58d/0x660 net/netlink/af_netlink.c:1361 netlink_sendmsg+0x5ca/0x6e0 net/netlink/af_netlink.c:1905 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:745 __sys_sendto+0x1e5/0x260 net/socket.c:2192 __do_sys_sendto net/socket.c:2204 [inline] __se_sys_sendto net/socket.c:2200 [inline] __x64_sys_sendto+0x78/0x90 net/socket.c:2200 x64_sys_call+0x16d7/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:45 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 0xffffffff883d24e8 of 8 bytes by task 8099 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: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_mark_inode_dirty+0xbe/0x440 fs/ext4/inode.c:5909 ext4_dirty_inode+0x91/0xb0 fs/ext4/inode.c:5935 __mark_inode_dirty+0x16d/0x7e0 fs/fs-writeback.c:2486 mark_inode_dirty include/linux/fs.h:2404 [inline] dquot_alloc_space include/linux/quotaops.h:319 [inline] dquot_alloc_block include/linux/quotaops.h:336 [inline] ext4_mb_new_blocks+0x103e/0x2020 fs/ext4/mballoc.c:6185 ext4_ext_map_blocks+0x10a1/0x33b0 fs/ext4/extents.c:4318 ext4_map_blocks+0x72a/0xf50 fs/ext4/inode.c:623 ext4_getblk+0x112/0x500 fs/ext4/inode.c:833 ext4_bread+0x2c/0x110 fs/ext4/inode.c:889 ext4_add_entry+0x10dd/0x1ec0 fs/ext4/namei.c:2435 ext4_add_nondir+0x50/0x1a0 fs/ext4/namei.c:2792 ext4_create+0x20f/0x2f0 fs/ext4/namei.c:2838 lookup_open fs/namei.c:3505 [inline] open_last_lookups fs/namei.c:3574 [inline] path_openat+0xdbc/0x1fa0 fs/namei.c:3810 do_filp_open+0xf7/0x200 fs/namei.c:3840 do_sys_openat2+0xab/0x120 fs/open.c:1413 do_sys_open fs/open.c:1428 [inline] __do_sys_openat fs/open.c:1444 [inline] __se_sys_openat fs/open.c:1439 [inline] __x64_sys_openat+0xf3/0x120 fs/open.c:1439 x64_sys_call+0x1057/0x2d70 arch/x86/include/generated/asm/syscalls_64.h:258 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: 0x00000000ffffe27a -> 0x000000000a656465 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 8099 Comm: syz.4.1010 Not tainted 6.10.0-rc6-syzkaller-00223-gc6653f49e4fd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 ================================================================== EXT4-fs error (device loop4): ext4_do_update_inode:5075: inode #2: comm syz.4.1010: corrupted inode contents EXT4-fs error (device loop4): __ext4_ext_dirty:202: inode #2: comm syz.4.1010: mark_inode_dirty error EXT4-fs warning (device loop4): ext4_update_dynamic_rev:1137: updating to rev 1 because of new feature flag, running e2fsck is recommended EXT4-fs (loop4): unmounting filesystem 00000000-0000-0000-0000-000000000000. syz.4.1010 (8099) used greatest stack depth: 8888 bytes left