XFS (loop3): log I/O error -5 ================================================================== BUG: KASAN: use-after-free in instrument_atomic_write include/linux/instrumented.h:86 [inline] BUG: KASAN: use-after-free in set_bit include/asm-generic/bitops/instrumented-atomic.h:28 [inline] BUG: KASAN: use-after-free in xfs_trans_committed_bulk+0x14c/0x70c fs/xfs/xfs_trans.c:757 Write of size 8 at addr ffff0000dcca9560 by task kworker/1:1H/227 CPU: 1 PID: 227 Comm: kworker/1:1H Not tainted 5.15.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: xfs-log/loop3 xlog_ioend_work Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0x174/0x1e4 mm/kasan/report.c:451 kasan_check_range+0x274/0x2b4 mm/kasan/generic.c:189 __kasan_check_write+0x44/0x54 mm/kasan/shadow.c:37 instrument_atomic_write include/linux/instrumented.h:86 [inline] set_bit include/asm-generic/bitops/instrumented-atomic.h:28 [inline] xfs_trans_committed_bulk+0x14c/0x70c fs/xfs/xfs_trans.c:757 xlog_cil_committed+0x22c/0xc20 fs/xfs/xfs_log_cil.c:631 xlog_cil_process_committed+0x11c/0x174 fs/xfs/xfs_log_cil.c:659 xlog_state_shutdown_callbacks+0x23c/0x324 fs/xfs/xfs_log.c:516 xlog_force_shutdown+0x1a8/0x208 fs/xfs/xfs_log.c:3896 xfs_do_force_shutdown+0x118/0x5e8 fs/xfs/xfs_fsops.c:529 xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 541: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] xfs_buf_item_init+0x70/0x434 fs/xfs/xfs_buf_item.c:807 _xfs_trans_bjoin+0x54/0x14c fs/xfs/xfs_trans_buf.c:75 xfs_trans_get_buf_map+0x368/0x884 fs/xfs/xfs_trans_buf.c:162 xfs_trans_get_buf fs/xfs/xfs_trans.h:187 [inline] xfs_dquot_disk_alloc+0x630/0xad8 fs/xfs/xfs_dquot.c:341 xfs_qm_dqread_alloc fs/xfs/xfs_dquot.c:647 [inline] xfs_qm_dqread+0x388/0x828 fs/xfs/xfs_dquot.c:692 xfs_qm_dqget+0x23c/0x790 fs/xfs/xfs_dquot.c:897 xfs_qm_quotacheck_dqadjust+0xe0/0x694 fs/xfs/xfs_qm.c:1085 xfs_qm_dqusage_adjust+0x478/0x518 fs/xfs/xfs_qm.c:1204 xfs_iwalk_ag_recs+0x42c/0x834 fs/xfs/xfs_iwalk.c:220 xfs_iwalk_run_callbacks+0x1bc/0x3b4 fs/xfs/xfs_iwalk.c:376 xfs_iwalk_ag+0x8d4/0x9b0 fs/xfs/xfs_iwalk.c:482 xfs_iwalk_ag_work+0x10c/0x1a8 fs/xfs/xfs_iwalk.c:624 xfs_pwork_work+0x80/0x1b8 fs/xfs/xfs_pwork.c:47 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Freed by task 5099: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 xfs_buf_item_free+0x54/0x64 fs/xfs/xfs_buf_item.c:1005 xfs_buf_item_relse+0x19c/0x3e0 fs/xfs/xfs_buf_item.c:1022 xfs_buf_item_done+0x60/0x94 fs/xfs/xfs_buf_item.c:1044 xfs_buf_ioend+0x324/0x7a0 fs/xfs/xfs_buf.c:1286 xfs_buf_ioend_fail+0x78/0x90 fs/xfs/xfs_buf.c:1357 __xfs_buf_submit+0x1f4/0x85c fs/xfs/xfs_buf.c:1598 xfs_buf_delwri_submit_buffers+0x5cc/0x93c fs/xfs/xfs_buf.c:2136 xfs_buf_delwri_submit+0xbc/0x244 fs/xfs/xfs_buf.c:2182 xfs_qm_quotacheck+0x34c/0x56c fs/xfs/xfs_qm.c:1351 xfs_qm_mount_quotas+0x2ac/0x578 fs/xfs/xfs_qm.c:1441 xfs_mountfs+0x11e4/0x1778 fs/xfs/xfs_mount.c:904 xfs_fs_fill_super+0xd64/0xf60 fs/xfs/xfs_super.c:1658 get_tree_bdev+0x360/0x54c fs/super.c:1303 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1705 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff0000dcca9520 which belongs to the cache xfs_buf_item of size 264 The buggy address is located 64 bytes inside of 264-byte region [ffff0000dcca9520, ffff0000dcca9628) The buggy address belongs to the page: page:000000000ec80405 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11cca9 flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 0000000000000000 dead000000000122 ffff0000c68bbe00 raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000dcca9400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000dcca9480: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc >ffff0000dcca9500: fc fc fc fc fa fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000dcca9580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000dcca9600: fb fb fb fb fb fc fc fc fc fc fc fc fc fa fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3499 [inline] BUG: KASAN: double-free or invalid-free in kfree+0x178/0x410 mm/slub.c:4559 CPU: 1 PID: 227 Comm: kworker/1:1H Tainted: G B 5.15.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: xfs-log/loop3 xlog_ioend_work Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 kasan_report_invalid_free+0x64/0x94 mm/kasan/report.c:373 ____kasan_slab_free+0x134/0x164 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x178/0x410 mm/slub.c:4559 kvfree+0x40/0x50 mm/util.c:654 kmem_free fs/xfs/kmem.h:62 [inline] xfs_buf_free+0x1cc/0x484 fs/xfs/xfs_buf.c:307 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_ioend+0x434/0x7a0 fs/xfs/xfs_buf.c:1299 xfs_buf_ioend_fail+0x78/0x90 fs/xfs/xfs_buf.c:1357 xfs_buf_item_unpin+0x210/0x808 fs/xfs/xfs_buf_item.c:548 xfs_trans_committed_bulk+0x2b0/0x70c fs/xfs/xfs_trans.c:780 xlog_cil_committed+0x22c/0xc20 fs/xfs/xfs_log_cil.c:631 xlog_cil_process_committed+0x11c/0x174 fs/xfs/xfs_log_cil.c:659 xlog_state_shutdown_callbacks+0x23c/0x324 fs/xfs/xfs_log.c:516 xlog_force_shutdown+0x1a8/0x208 fs/xfs/xfs_log.c:3896 xfs_do_force_shutdown+0x118/0x5e8 fs/xfs/xfs_fsops.c:529 xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 541: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xbc/0xfc mm/kasan/common.c:513 __kasan_kmalloc+0x10/0x1c mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x29c/0x4c8 mm/slub.c:4407 kmalloc include/linux/slab.h:596 [inline] kmem_alloc+0x214/0x53c fs/xfs/kmem.c:21 xfs_buf_alloc_kmem fs/xfs/xfs_buf.c:325 [inline] xfs_buf_get_map+0x55c/0xbb0 fs/xfs/xfs_buf.c:670 xfs_trans_get_buf_map+0x184/0x884 fs/xfs/xfs_trans_buf.c:156 xfs_trans_get_buf fs/xfs/xfs_trans.h:187 [inline] xfs_dquot_disk_alloc+0x630/0xad8 fs/xfs/xfs_dquot.c:341 xfs_qm_dqread_alloc fs/xfs/xfs_dquot.c:647 [inline] xfs_qm_dqread+0x388/0x828 fs/xfs/xfs_dquot.c:692 xfs_qm_dqget+0x23c/0x790 fs/xfs/xfs_dquot.c:897 xfs_qm_quotacheck_dqadjust+0xe0/0x694 fs/xfs/xfs_qm.c:1085 xfs_qm_dqusage_adjust+0x478/0x518 fs/xfs/xfs_qm.c:1204 xfs_iwalk_ag_recs+0x42c/0x834 fs/xfs/xfs_iwalk.c:220 xfs_iwalk_run_callbacks+0x1bc/0x3b4 fs/xfs/xfs_iwalk.c:376 xfs_iwalk_ag+0x8d4/0x9b0 fs/xfs/xfs_iwalk.c:482 xfs_iwalk_ag_work+0x10c/0x1a8 fs/xfs/xfs_iwalk.c:624 xfs_pwork_work+0x80/0x1b8 fs/xfs/xfs_pwork.c:47 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Freed by task 5099: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x178/0x410 mm/slub.c:4559 kvfree+0x40/0x50 mm/util.c:654 kmem_free fs/xfs/kmem.h:62 [inline] xfs_buf_free+0x1cc/0x484 fs/xfs/xfs_buf.c:307 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_delwri_submit+0x1ac/0x244 fs/xfs/xfs_buf.c:2195 xfs_qm_quotacheck+0x34c/0x56c fs/xfs/xfs_qm.c:1351 xfs_qm_mount_quotas+0x2ac/0x578 fs/xfs/xfs_qm.c:1441 xfs_mountfs+0x11e4/0x1778 fs/xfs/xfs_mount.c:904 xfs_fs_fill_super+0xd64/0xf60 fs/xfs/xfs_super.c:1658 get_tree_bdev+0x360/0x54c fs/super.c:1303 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1705 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:2993 [inline] call_rcu+0x118/0xb40 kernel/rcu/tree.c:3073 fib6_info_release include/net/ip6_fib.h:339 [inline] ip6_route_info_create+0x818/0xf28 net/ipv6/route.c:3854 ip6_route_add+0x38/0x17c net/ipv6/route.c:3868 addrconf_add_mroute net/ipv6/addrconf.c:2493 [inline] addrconf_add_dev+0x2b0/0x46c net/ipv6/addrconf.c:2511 inet6_addr_add+0x170/0x81c net/ipv6/addrconf.c:2940 inet6_rtm_newaddr+0x6a4/0x1de4 net/ipv6/addrconf.c:4927 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5587 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2533 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1952 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] __sys_sendto+0x388/0x4d0 net/socket.c:2039 __do_sys_sendto net/socket.c:2051 [inline] __se_sys_sendto net/socket.c:2047 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2047 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff000111c1dc00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of 512-byte region [ffff000111c1dc00, ffff000111c1de00) The buggy address belongs to the page: page:00000000a25298ba refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x151c1c head:00000000a25298ba order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002600 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000111c1db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff000111c1db80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff000111c1dc00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff000111c1dc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff000111c1dd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3499 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 CPU: 1 PID: 227 Comm: kworker/1:1H Tainted: G B 5.15.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: xfs-log/loop3 xlog_ioend_work Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 kasan_report_invalid_free+0x64/0x94 mm/kasan/report.c:373 ____kasan_slab_free+0x134/0x164 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 xfs_buf_free+0x22c/0x484 fs/xfs/xfs_buf.c:310 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_ioend+0x434/0x7a0 fs/xfs/xfs_buf.c:1299 xfs_buf_ioend_fail+0x78/0x90 fs/xfs/xfs_buf.c:1357 xfs_buf_item_unpin+0x210/0x808 fs/xfs/xfs_buf_item.c:548 xfs_trans_committed_bulk+0x2b0/0x70c fs/xfs/xfs_trans.c:780 xlog_cil_committed+0x22c/0xc20 fs/xfs/xfs_log_cil.c:631 xlog_cil_process_committed+0x11c/0x174 fs/xfs/xfs_log_cil.c:659 xlog_state_shutdown_callbacks+0x23c/0x324 fs/xfs/xfs_log.c:516 xlog_force_shutdown+0x1a8/0x208 fs/xfs/xfs_log.c:3896 xfs_do_force_shutdown+0x118/0x5e8 fs/xfs/xfs_fsops.c:529 xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 541: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] _xfs_buf_alloc+0x78/0xd20 fs/xfs/xfs_buf.c:223 xfs_buf_get_map+0x194/0xbb0 fs/xfs/xfs_buf.c:659 xfs_trans_get_buf_map+0x184/0x884 fs/xfs/xfs_trans_buf.c:156 xfs_trans_get_buf fs/xfs/xfs_trans.h:187 [inline] xfs_dquot_disk_alloc+0x630/0xad8 fs/xfs/xfs_dquot.c:341 xfs_qm_dqread_alloc fs/xfs/xfs_dquot.c:647 [inline] xfs_qm_dqread+0x388/0x828 fs/xfs/xfs_dquot.c:692 xfs_qm_dqget+0x23c/0x790 fs/xfs/xfs_dquot.c:897 xfs_qm_quotacheck_dqadjust+0xe0/0x694 fs/xfs/xfs_qm.c:1085 xfs_qm_dqusage_adjust+0x478/0x518 fs/xfs/xfs_qm.c:1204 xfs_iwalk_ag_recs+0x42c/0x834 fs/xfs/xfs_iwalk.c:220 xfs_iwalk_run_callbacks+0x1bc/0x3b4 fs/xfs/xfs_iwalk.c:376 xfs_iwalk_ag+0x8d4/0x9b0 fs/xfs/xfs_iwalk.c:482 xfs_iwalk_ag_work+0x10c/0x1a8 fs/xfs/xfs_iwalk.c:624 xfs_pwork_work+0x80/0x1b8 fs/xfs/xfs_pwork.c:47 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Freed by task 5099: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 xfs_buf_free+0x22c/0x484 fs/xfs/xfs_buf.c:310 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_delwri_submit+0x1ac/0x244 fs/xfs/xfs_buf.c:2195 xfs_qm_quotacheck+0x34c/0x56c fs/xfs/xfs_qm.c:1351 xfs_qm_mount_quotas+0x2ac/0x578 fs/xfs/xfs_qm.c:1441 xfs_mountfs+0x11e4/0x1778 fs/xfs/xfs_mount.c:904 xfs_fs_fill_super+0xd64/0xf60 fs/xfs/xfs_super.c:1658 get_tree_bdev+0x360/0x54c fs/super.c:1303 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1705 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff000112649800 which belongs to the cache xfs_buf of size 632 The buggy address is located 0 bytes inside of 632-byte region [ffff000112649800, ffff000112649a78) The buggy address belongs to the page: page:00000000dae46ca4 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff000112648600 pfn:0x152648 head:00000000dae46ca4 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 0000000000000000 dead000000000122 ffff0000c68bf080 raw: ffff000112648600 0000000080150012 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000112649700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc ffff000112649780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff000112649800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff000112649880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff000112649900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== XFS (loop3): Log I/O Error (0x2) detected at xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 (fs/xfs/xfs_log.c:1364). Shutting down filesystem. XFS (loop3): Please unmount the filesystem and rectify the problem(s) XFS (loop3): log I/O error -5 XFS (loop3): Log I/O Error (0x2) detected at xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 (fs/xfs/xfs_log.c:1364). Shutting down filesystem. XFS (loop3): Please unmount the filesystem and rectify the problem(s) XFS (loop3): log I/O error -5 ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3499 [inline] BUG: KASAN: double-free or invalid-free in kfree+0x178/0x410 mm/slub.c:4559 CPU: 1 PID: 227 Comm: kworker/1:1H Tainted: G B 5.15.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: xfs-log/loop3 xlog_ioend_work Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 kasan_report_invalid_free+0x64/0x94 mm/kasan/report.c:373 ____kasan_slab_free+0x134/0x164 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x178/0x410 mm/slub.c:4559 kvfree+0x40/0x50 mm/util.c:654 kmem_free fs/xfs/kmem.h:62 [inline] xfs_buf_free+0x1cc/0x484 fs/xfs/xfs_buf.c:307 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_ioend+0x434/0x7a0 fs/xfs/xfs_buf.c:1299 xfs_buf_ioend_fail+0x78/0x90 fs/xfs/xfs_buf.c:1357 xfs_buf_item_unpin+0x210/0x808 fs/xfs/xfs_buf_item.c:548 xfs_trans_committed_bulk+0x2b0/0x70c fs/xfs/xfs_trans.c:780 xlog_cil_committed+0x22c/0xc20 fs/xfs/xfs_log_cil.c:631 xlog_cil_process_committed+0x11c/0x174 fs/xfs/xfs_log_cil.c:659 xlog_state_shutdown_callbacks+0x23c/0x324 fs/xfs/xfs_log.c:516 xlog_force_shutdown+0x1a8/0x208 fs/xfs/xfs_log.c:3896 xfs_do_force_shutdown+0x118/0x5e8 fs/xfs/xfs_fsops.c:529 xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 4596: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] ____kasan_kmalloc+0xbc/0xfc mm/kasan/common.c:513 __kasan_kmalloc+0x10/0x1c mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x29c/0x4c8 mm/slub.c:4407 kmalloc include/linux/slab.h:596 [inline] kmem_alloc+0x214/0x53c fs/xfs/kmem.c:21 xfs_buf_alloc_kmem fs/xfs/xfs_buf.c:325 [inline] xfs_buf_get_map+0x55c/0xbb0 fs/xfs/xfs_buf.c:670 xfs_trans_get_buf_map+0x184/0x884 fs/xfs/xfs_trans_buf.c:156 xfs_trans_get_buf fs/xfs/xfs_trans.h:187 [inline] xfs_dquot_disk_alloc+0x630/0xad8 fs/xfs/xfs_dquot.c:341 xfs_qm_dqread_alloc fs/xfs/xfs_dquot.c:647 [inline] xfs_qm_dqread+0x388/0x828 fs/xfs/xfs_dquot.c:692 xfs_qm_dqget+0x23c/0x790 fs/xfs/xfs_dquot.c:897 xfs_qm_quotacheck_dqadjust+0xe0/0x694 fs/xfs/xfs_qm.c:1085 xfs_qm_dqusage_adjust+0x478/0x518 fs/xfs/xfs_qm.c:1204 xfs_iwalk_ag_recs+0x42c/0x834 fs/xfs/xfs_iwalk.c:220 xfs_iwalk_run_callbacks+0x1bc/0x3b4 fs/xfs/xfs_iwalk.c:376 xfs_iwalk_ag+0x8d4/0x9b0 fs/xfs/xfs_iwalk.c:482 xfs_iwalk_ag_work+0x10c/0x1a8 fs/xfs/xfs_iwalk.c:624 xfs_pwork_work+0x80/0x1b8 fs/xfs/xfs_pwork.c:47 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Freed by task 5230: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x178/0x410 mm/slub.c:4559 kvfree+0x40/0x50 mm/util.c:654 kmem_free fs/xfs/kmem.h:62 [inline] xfs_buf_free+0x1cc/0x484 fs/xfs/xfs_buf.c:307 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_delwri_submit+0x1ac/0x244 fs/xfs/xfs_buf.c:2195 xfs_qm_quotacheck+0x34c/0x56c fs/xfs/xfs_qm.c:1351 xfs_qm_mount_quotas+0x2ac/0x578 fs/xfs/xfs_qm.c:1441 xfs_mountfs+0x11e4/0x1778 fs/xfs/xfs_mount.c:904 xfs_fs_fill_super+0xd64/0xf60 fs/xfs/xfs_super.c:1658 get_tree_bdev+0x360/0x54c fs/super.c:1303 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1705 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:2993 [inline] call_rcu+0x118/0xb40 kernel/rcu/tree.c:3073 fib6_info_release include/net/ip6_fib.h:339 [inline] ip6_route_info_create+0x818/0xf28 net/ipv6/route.c:3854 ip6_route_add+0x38/0x17c net/ipv6/route.c:3868 addrconf_add_mroute net/ipv6/addrconf.c:2493 [inline] addrconf_add_dev+0x2b0/0x46c net/ipv6/addrconf.c:2511 inet6_addr_add+0x170/0x81c net/ipv6/addrconf.c:2940 inet6_rtm_newaddr+0x6a4/0x1de4 net/ipv6/addrconf.c:4927 rtnetlink_rcv_msg+0xa74/0xdac net/core/rtnetlink.c:5587 netlink_rcv_skb+0x20c/0x3b8 net/netlink/af_netlink.c:2533 rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:5605 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline] netlink_unicast+0x664/0x938 net/netlink/af_netlink.c:1356 netlink_sendmsg+0x844/0xb38 net/netlink/af_netlink.c:1952 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg net/socket.c:724 [inline] __sys_sendto+0x388/0x4d0 net/socket.c:2039 __do_sys_sendto net/socket.c:2051 [inline] __se_sys_sendto net/socket.c:2047 [inline] __arm64_sys_sendto+0xd8/0xf8 net/socket.c:2047 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 The buggy address belongs to the object at ffff000111e01800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 0 bytes inside of 512-byte region [ffff000111e01800, ffff000111e01a00) The buggy address belongs to the page: page:000000007ce4b0b1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x151e00 head:000000007ce4b0b1 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002600 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000111e01700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff000111e01780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff000111e01800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff000111e01880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff000111e01900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: double-free or invalid-free in slab_free mm/slub.c:3499 [inline] BUG: KASAN: double-free or invalid-free in kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 CPU: 1 PID: 227 Comm: kworker/1:1H Tainted: G B 5.15.107-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: xfs-log/loop3 xlog_ioend_work Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 print_address_description+0x7c/0x3f0 mm/kasan/report.c:248 kasan_report_invalid_free+0x64/0x94 mm/kasan/report.c:373 ____kasan_slab_free+0x134/0x164 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 xfs_buf_free+0x22c/0x484 fs/xfs/xfs_buf.c:310 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_ioend+0x434/0x7a0 fs/xfs/xfs_buf.c:1299 xfs_buf_ioend_fail+0x78/0x90 fs/xfs/xfs_buf.c:1357 xfs_buf_item_unpin+0x210/0x808 fs/xfs/xfs_buf_item.c:548 xfs_trans_committed_bulk+0x2b0/0x70c fs/xfs/xfs_trans.c:780 xlog_cil_committed+0x22c/0xc20 fs/xfs/xfs_log_cil.c:631 xlog_cil_process_committed+0x11c/0x174 fs/xfs/xfs_log_cil.c:659 xlog_state_shutdown_callbacks+0x23c/0x324 fs/xfs/xfs_log.c:516 xlog_force_shutdown+0x1a8/0x208 fs/xfs/xfs_log.c:3896 xfs_do_force_shutdown+0x118/0x5e8 fs/xfs/xfs_fsops.c:529 xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 4596: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x8c/0xcc mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:254 [inline] slab_post_alloc_hook+0x74/0x3f4 mm/slab.h:519 slab_alloc_node mm/slub.c:3220 [inline] slab_alloc mm/slub.c:3228 [inline] kmem_cache_alloc+0x1dc/0x45c mm/slub.c:3233 kmem_cache_zalloc include/linux/slab.h:711 [inline] _xfs_buf_alloc+0x78/0xd20 fs/xfs/xfs_buf.c:223 xfs_buf_get_map+0x194/0xbb0 fs/xfs/xfs_buf.c:659 xfs_trans_get_buf_map+0x184/0x884 fs/xfs/xfs_trans_buf.c:156 xfs_trans_get_buf fs/xfs/xfs_trans.h:187 [inline] xfs_dquot_disk_alloc+0x630/0xad8 fs/xfs/xfs_dquot.c:341 xfs_qm_dqread_alloc fs/xfs/xfs_dquot.c:647 [inline] xfs_qm_dqread+0x388/0x828 fs/xfs/xfs_dquot.c:692 xfs_qm_dqget+0x23c/0x790 fs/xfs/xfs_dquot.c:897 xfs_qm_quotacheck_dqadjust+0xe0/0x694 fs/xfs/xfs_qm.c:1085 xfs_qm_dqusage_adjust+0x478/0x518 fs/xfs/xfs_qm.c:1204 xfs_iwalk_ag_recs+0x42c/0x834 fs/xfs/xfs_iwalk.c:220 xfs_iwalk_run_callbacks+0x1bc/0x3b4 fs/xfs/xfs_iwalk.c:376 xfs_iwalk_ag+0x8d4/0x9b0 fs/xfs/xfs_iwalk.c:482 xfs_iwalk_ag_work+0x10c/0x1a8 fs/xfs/xfs_iwalk.c:624 xfs_pwork_work+0x80/0x1b8 fs/xfs/xfs_pwork.c:47 process_one_work+0x790/0x11b8 kernel/workqueue.c:2306 worker_thread+0x910/0x1034 kernel/workqueue.c:2453 kthread+0x37c/0x45c kernel/kthread.c:319 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Freed by task 5230: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x84 mm/kasan/common.c:46 kasan_set_free_info+0x28/0x4c mm/kasan/generic.c:360 ____kasan_slab_free+0x118/0x164 mm/kasan/common.c:366 __kasan_slab_free+0x18/0x28 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0x128/0x1ec mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kmem_cache_free+0xdc/0x3c4 mm/slub.c:3515 xfs_buf_free+0x22c/0x484 fs/xfs/xfs_buf.c:310 xfs_buf_rele+0xef4/0x15a0 xfs_buf_relse fs/xfs/xfs_buf.h:270 [inline] xfs_buf_delwri_submit+0x1ac/0x244 fs/xfs/xfs_buf.c:2195 xfs_qm_quotacheck+0x34c/0x56c fs/xfs/xfs_qm.c:1351 xfs_qm_mount_quotas+0x2ac/0x578 fs/xfs/xfs_qm.c:1441 xfs_mountfs+0x11e4/0x1778 fs/xfs/xfs_mount.c:904 xfs_fs_fill_super+0xd64/0xf60 fs/xfs/xfs_super.c:1658 get_tree_bdev+0x360/0x54c fs/super.c:1303 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1705 vfs_get_tree+0x90/0x274 fs/super.c:1508 do_new_mount+0x25c/0x8c8 fs/namespace.c:2994 path_mount+0x590/0x104c fs/namespace.c:3324 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount fs/namespace.c:3522 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xd4/0x11c mm/kasan/generic.c:348 insert_work+0x64/0x394 kernel/workqueue.c:1362 __queue_work+0xb84/0x114c kernel/workqueue.c:1528 queue_work_on+0xc4/0x17c kernel/workqueue.c:1555 queue_work include/linux/workqueue.h:501 [inline] xfs_buf_ioend_async fs/xfs/xfs_buf.c:1319 [inline] xfs_buf_bio_end_io+0x1e0/0x284 fs/xfs/xfs_buf.c:1403 bio_endio+0x780/0x7c4 block/bio.c:1476 req_bio_endio block/blk-core.c:261 [inline] blk_update_request+0x5cc/0x134c block/blk-core.c:1440 blk_mq_end_request+0x54/0x88 block/blk-mq.c:575 lo_complete_rq+0x140/0x258 drivers/block/loop.c:529 blk_complete_reqs block/blk-mq.c:587 [inline] blk_done_softirq+0x11c/0x168 block/blk-mq.c:592 __do_softirq+0x344/0xe20 kernel/softirq.c:558 The buggy address belongs to the object at ffff000112416700 which belongs to the cache xfs_buf of size 632 The buggy address is located 0 bytes inside of 632-byte region [ffff000112416700, ffff000112416978) The buggy address belongs to the page: page:0000000055f53ab3 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x152414 head:0000000055f53ab3 order:2 compound_mapcount:0 compound_pincount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 fffffc000449ff00 0000000500000005 ffff0000c68bf080 raw: 0000000000000000 0000000080150015 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff000112416600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fc ffff000112416680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff000112416700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff000112416780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff000112416800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== XFS (loop3): Log I/O Error (0x2) detected at xlog_ioend_work+0xc0/0x114 fs/xfs/xfs_log.c:1364 (fs/xfs/xfs_log.c:1364). Shutting down filesystem. XFS (loop3): Please unmount the filesystem and rectify the problem(s)