FAT-fs (loop1): Filesystem has been set read-only FAT-fs (loop1): error, invalid access to FAT (entry 0x0000e1b1) ================================================================== BUG: KCSAN: data-race in _prb_read_valid / prb_reserve write to 0xffffffff866edb68 of 8 bytes by task 31373 on cpu 0: prb_reserve+0x740/0xb60 vprintk_store+0x558/0x870 kernel/printk/printk.c:2326 vprintk_emit+0x15e/0x680 kernel/printk/printk.c:2408 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447 vprintk+0x75/0x80 kernel/printk/printk_safe.c:86 _printk+0x7a/0xa0 kernel/printk/printk.c:2457 __nla_validate_parse+0x1881/0x1e30 lib/nlattr.c:647 __nla_parse+0x40/0x60 lib/nlattr.c:732 nla_parse_deprecated include/net/netlink.h:711 [inline] nfnetlink_rcv_msg+0x338/0x570 net/netfilter/nfnetlink.c:275 netlink_rcv_skb+0x12c/0x230 net/netlink/af_netlink.c:2542 nfnetlink_rcv+0x16c/0x15d0 net/netfilter/nfnetlink.c:667 netlink_unicast_kernel net/netlink/af_netlink.c:1321 [inline] netlink_unicast+0x599/0x670 net/netlink/af_netlink.c:1347 netlink_sendmsg+0x5cc/0x6e0 net/netlink/af_netlink.c:1891 sock_sendmsg_nosec net/socket.c:711 [inline] __sock_sendmsg+0x140/0x180 net/socket.c:726 ____sys_sendmsg+0x312/0x410 net/socket.c:2583 ___sys_sendmsg net/socket.c:2637 [inline] __sys_sendmsg+0x19d/0x230 net/socket.c:2669 __do_sys_sendmsg net/socket.c:2674 [inline] __se_sys_sendmsg net/socket.c:2672 [inline] __x64_sys_sendmsg+0x46/0x50 net/socket.c:2672 x64_sys_call+0x2734/0x2dc0 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 0xffffffff866edb68 of 8 bytes by task 31370 on cpu 1: desc_read kernel/printk/printk_ringbuffer.c:486 [inline] prb_first_seq kernel/printk/printk_ringbuffer.c:1957 [inline] _prb_read_valid+0x3bb/0xba0 kernel/printk/printk_ringbuffer.c:2114 prb_read_valid+0x3d/0x60 kernel/printk/printk_ringbuffer.c:2182 printk_get_next_message+0xd4/0x710 kernel/printk/printk.c:2989 console_emit_next_record kernel/printk/printk.c:3076 [inline] console_flush_all+0x28a/0x770 kernel/printk/printk.c:3210 __console_flush_and_unlock kernel/printk/printk.c:3269 [inline] console_unlock+0xab/0x330 kernel/printk/printk.c:3309 vprintk_emit+0x3f4/0x680 kernel/printk/printk.c:2432 vprintk_default+0x26/0x30 kernel/printk/printk.c:2447 vprintk+0x75/0x80 kernel/printk/printk_safe.c:86 _printk+0x7a/0xa0 kernel/printk/printk.c:2457 _fat_msg+0xa2/0xd0 fs/fat/misc.c:62 __fat_fs_error+0x176/0x1d0 fs/fat/misc.c:31 fat_ent_read+0x53a/0x5a0 fs/fat/fatent.c:359 fat_free fs/fat/file.c:353 [inline] fat_truncate_blocks+0x2ec/0x530 fs/fat/file.c:394 fat_write_failed fs/fat/inode.c:218 [inline] fat_write_begin+0xc0/0xe0 fs/fat/inode.c:232 cont_expand_zero fs/buffer.c:2504 [inline] cont_write_begin+0x18b/0x860 fs/buffer.c:2567 fat_write_begin+0x51/0xe0 fs/fat/inode.c:228 generic_cont_expand_simple+0xaa/0x150 fs/buffer.c:2468 fat_cont_expand+0x3a/0x160 fs/fat/file.c:223 fat_setattr+0x2aa/0x840 fs/fat/file.c:513 notify_change+0x85c/0x8e0 fs/attr.c:552 do_truncate+0x116/0x160 fs/open.c:65 vfs_truncate+0x1e9/0x240 fs/open.c:111 do_sys_truncate+0x95/0x130 fs/open.c:134 __do_sys_truncate fs/open.c:146 [inline] __se_sys_truncate fs/open.c:144 [inline] __x64_sys_truncate+0x31/0x40 fs/open.c:144 x64_sys_call+0x26d0/0x2dc0 arch/x86/include/generated/asm/syscalls_64.h:77 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: 0x000000000000304f -> 0x000000000000504f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 31370 Comm: syz.1.8657 Not tainted 6.13.0-rc3-syzkaller-00289-g48f506ad0b68 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 ================================================================== FAT-fs (loop1): error, invalid access to FAT (entry 0x0000e1b1)