EXT4-fs (loop3): Cannot turn on journaled quota: type 0: error -2 EXT4-fs error (device loop3): ext4_clear_blocks:883: inode #13: comm syz-executor.3: attempt to clear invalid blocks 2 len 1 EXT4-fs error (device loop3): ext4_validate_block_bitmap:430: comm syz-executor.3: bg 0: block 3: invalid block bitmap ================================================================== BUG: KCSAN: data-race in data_alloc / data_push_tail write to 0xffffffff86f61e30 of 8 bytes by task 12579 on cpu 0: data_alloc+0x216/0x2c0 kernel/printk/printk_ringbuffer.c:1074 prb_reserve+0x893/0xbc0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x53e/0x800 kernel/printk/printk.c:2232 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2288 vprintk_default+0x26/0x30 kernel/printk/printk.c:2318 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2328 __netdev_printk+0x2bf/0x3b0 net/core/dev.c:11239 netdev_info+0x99/0xc0 net/core/dev.c:11286 __dev_set_promiscuity+0x189/0x370 net/core/dev.c:8321 dev_set_promiscuity+0x3b/0x90 net/core/dev.c:8359 hsr_del_port+0x101/0x140 net/hsr/hsr_slave.c:223 hsr_del_ports net/hsr/hsr_device.c:396 [inline] hsr_dev_finalize+0x3ff/0x4d0 net/hsr/hsr_device.c:559 hsr_newlink+0x426/0x470 net/hsr/hsr_netlink.c:102 rtnl_newlink_create net/core/rtnetlink.c:3472 [inline] __rtnl_newlink net/core/rtnetlink.c:3689 [inline] rtnl_newlink+0xe83/0x1600 net/core/rtnetlink.c:3702 rtnetlink_rcv_msg+0x807/0x8c0 net/core/rtnetlink.c:6424 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2549 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:6442 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x56f/0x640 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x665/0x770 net/netlink/af_netlink.c:1914 sock_sendmsg_nosec net/socket.c:725 [inline] sock_sendmsg net/socket.c:748 [inline] ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494 ___sys_sendmsg net/socket.c:2548 [inline] __sys_sendmsg+0x1e9/0x270 net/socket.c:2577 __do_sys_sendmsg net/socket.c:2586 [inline] __se_sys_sendmsg net/socket.c:2584 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2584 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd read to 0xffffffff86f61e30 of 8 bytes by task 12571 on cpu 1: data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline] data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:675 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1046 prb_reserve+0x893/0xbc0 kernel/printk/printk_ringbuffer.c:1555 vprintk_store+0x53e/0x800 kernel/printk/printk.c:2232 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2288 vprintk_default+0x26/0x30 kernel/printk/printk.c:2318 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50 _printk+0x7a/0xa0 kernel/printk/printk.c:2328 __ext4_error+0x21c/0x310 fs/ext4/super.c:769 ext4_validate_block_bitmap+0x8f5/0x990 fs/ext4/balloc.c:429 ext4_wait_block_bitmap+0xeb/0x150 fs/ext4/balloc.c:583 ext4_read_block_bitmap+0x40/0x70 fs/ext4/balloc.c:595 ext4_mb_clear_bb fs/ext4/mballoc.c:6395 [inline] ext4_free_blocks+0xa64/0x1a30 fs/ext4/mballoc.c:6640 ext4_free_branches+0x307/0x410 fs/ext4/indirect.c:1090 ext4_free_branches+0x202/0x410 fs/ext4/indirect.c:1049 ext4_free_branches+0x202/0x410 fs/ext4/indirect.c:1049 ext4_ind_truncate+0x82c/0x870 fs/ext4/indirect.c:1215 ext4_truncate+0x74a/0xb30 fs/ext4/inode.c:4129 ext4_process_orphan+0x113/0x1c0 fs/ext4/orphan.c:339 ext4_orphan_cleanup+0x669/0x9b0 fs/ext4/orphan.c:474 __ext4_fill_super fs/ext4/super.c:5577 [inline] ext4_fill_super+0x3574/0x38b0 fs/ext4/super.c:5696 get_tree_bdev+0x2b4/0x3b0 fs/super.c:1318 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5728 vfs_get_tree+0x51/0x190 fs/super.c:1519 do_new_mount+0x203/0x660 fs/namespace.c:3335 path_mount+0x496/0xb30 fs/namespace.c:3662 do_mount fs/namespace.c:3675 [inline] __do_sys_mount fs/namespace.c:3884 [inline] __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3861 __x64_sys_mount+0x67/0x80 fs/namespace.c:3861 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000001000051fa -> 0x0000000100005d77 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 12571 Comm: syz-executor.3 Not tainted 6.5.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 ================================================================== EXT4-fs error (device loop3) in ext4_mb_clear_bb:6537: Corrupt filesystem EXT4-fs error (device loop3): ext4_free_branches:1030: inode #13: comm syz-executor.3: invalid indirect mapped block 1819239214 (level 0) EXT4-fs error (device loop3): ext4_free_branches:1030: inode #13: comm syz-executor.3: invalid indirect mapped block 1819239214 (level 1) EXT4-fs (loop3): 1 truncate cleaned up EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. EXT4-fs (loop3): re-mounted 00000000-0000-0000-0000-000000000000 ro. Quota mode: writeback. syz-executor.3 (12571) used greatest stack depth: 9320 bytes left