EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory ================================================================== BUG: KCSAN: data-race in data_push_tail / number write to 0xffffffff88b79365 of 1 bytes by task 50 on cpu 1: number+0x7d0/0xa90 lib/vsprintf.c:564 vsnprintf+0xa44/0xe30 lib/vsprintf.c:2890 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+0x13a/0x610 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:5988 __ext4_ext_dirty+0xbf/0x130 fs/ext4/extents.c:202 ext4_split_extent_at+0x480/0x880 fs/ext4/extents.c:3204 ext4_split_extent+0x291/0x2d0 fs/ext4/extents.c:3360 ext4_split_convert_extents fs/ext4/extents.c:3689 [inline] ext4_ext_handle_unwritten_extents fs/ext4/extents.c:3851 [inline] ext4_ext_map_blocks+0xc0a/0x33b0 fs/ext4/extents.c:4209 ext4_map_blocks+0x72a/0xf50 fs/ext4/inode.c:652 mpage_map_one_extent fs/ext4/inode.c:2237 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2290 [inline] ext4_do_writepages+0xd85/0x2110 fs/ext4/inode.c:2753 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2842 do_writepages+0x1d8/0x480 mm/page-writeback.c:2683 __writeback_single_inode+0x91/0x870 fs/fs-writeback.c:1651 writeback_sb_inodes+0x559/0xb20 fs/fs-writeback.c:1947 wb_writeback+0x25e/0x720 fs/fs-writeback.c:2127 wb_do_writeback fs/fs-writeback.c:2274 [inline] wb_workfn+0x1a8/0x940 fs/fs-writeback.c:2314 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312 worker_thread+0x526/0x6e0 kernel/workqueue.c:3389 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read to 0xffffffff88b79360 of 8 bytes by task 3349 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+0x13a/0x610 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_std_error+0x34f/0x370 fs/ext4/super.c:965 ext4_reserve_inode_write+0x1bd/0x200 fs/ext4/inode.c:5810 __ext4_mark_inode_dirty+0x8e/0x440 fs/ext4/inode.c:5977 __ext4_ext_dirty+0xbf/0x130 fs/ext4/extents.c:202 ext4_split_extent_at+0x480/0x880 fs/ext4/extents.c:3204 ext4_split_extent+0x291/0x2d0 fs/ext4/extents.c:3360 ext4_split_convert_extents fs/ext4/extents.c:3689 [inline] ext4_ext_handle_unwritten_extents fs/ext4/extents.c:3851 [inline] ext4_ext_map_blocks+0xc0a/0x33b0 fs/ext4/extents.c:4209 ext4_map_blocks+0x72a/0xf50 fs/ext4/inode.c:652 mpage_map_one_extent fs/ext4/inode.c:2237 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2290 [inline] ext4_do_writepages+0xd85/0x2110 fs/ext4/inode.c:2753 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2842 do_writepages+0x1d8/0x480 mm/page-writeback.c:2683 __writeback_single_inode+0x91/0x870 fs/fs-writeback.c:1651 writeback_sb_inodes+0x559/0xb20 fs/fs-writeback.c:1947 wb_writeback+0x25e/0x720 fs/fs-writeback.c:2127 wb_do_writeback fs/fs-writeback.c:2274 [inline] wb_workfn+0x1a8/0x940 fs/fs-writeback.c:2314 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3312 worker_thread+0x526/0x6e0 kernel/workqueue.c:3389 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x0000000100000f98 -> 0x63203a3531232065 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 3349 Comm: kworker/u8:7 Not tainted 6.11.0-rc4-syzkaller-00274-g780bdc1ba776 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: writeback wb_workfn (flush-7:2) ================================================================== EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error: 3213 callbacks suppressed EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory EXT4-fs error (device loop2): __ext4_ext_dirty:202: inode #15: comm kworker/u8:7: mark_inode_dirty error EXT4-fs error (device loop2) in ext4_reserve_inode_write:5810: Out of memory