================================================================== BUG: KASAN: use-after-free in __lock_acquire+0xf0/0x651c kernel/locking/lockdep.c:4882 Read of size 8 at addr ffff0000cb82fa58 by task kworker/0:1H/227 CPU: 0 PID: 227 Comm: kworker/0:1H Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: xfs-log/loop2 xlog_ioend_work Call trace: dump_backtrace+0x0/0x43c arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf8/0x160 lib/dump_stack.c:106 print_address_description+0x78/0x30c mm/kasan/report.c:248 __kasan_report mm/kasan/report.c:434 [inline] kasan_report+0xec/0x15c mm/kasan/report.c:451 __asan_report_load8_noabort+0x44/0x50 mm/kasan/report_generic.c:309 __lock_acquire+0xf0/0x651c kernel/locking/lockdep.c:4882 lock_acquire+0x1f4/0x620 kernel/locking/lockdep.c:5623 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0xb0/0x10c kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:363 [inline] xfs_trans_committed_bulk+0x67c/0x6ec fs/xfs/xfs_trans.c:816 xlog_cil_committed+0x234/0xb88 fs/xfs/xfs_log_cil.c:631 xlog_cil_process_committed+0x11c/0x174 fs/xfs/xfs_log_cil.c:659 xlog_state_do_iclog_callbacks fs/xfs/xfs_log.c:2858 [inline] xlog_state_do_callback+0x658/0xf84 fs/xfs/xfs_log.c:2883 xlog_state_done_syncing+0x1f0/0x404 fs/xfs/xfs_log.c:2936 xlog_ioend_work+0xd0/0x110 fs/xfs/xfs_log.c:1350 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Allocated by task 8300: 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 mm/kasan/common.c:513 [inline] __kasan_kmalloc+0xb0/0xf0 mm/kasan/common.c:522 kasan_kmalloc include/linux/kasan.h:264 [inline] __kmalloc+0x298/0x44c mm/slub.c:4407 kmalloc include/linux/slab.h:609 [inline] kmem_alloc+0x224/0x4ec fs/xfs/kmem.c:21 kmem_zalloc fs/xfs/kmem.h:69 [inline] xfs_trans_ail_init+0x2c/0x218 fs/xfs/xfs_trans_ail.c:892 xfs_log_mount+0x260/0x5f4 fs/xfs/xfs_log.c:698 xfs_mountfs+0x8b4/0x15f8 fs/xfs/xfs_mount.c:764 xfs_fs_fill_super+0xe1c/0x106c fs/xfs/xfs_super.c:1675 get_tree_bdev+0x358/0x544 fs/super.c:1325 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1722 vfs_get_tree+0x90/0x274 fs/super.c:1530 do_new_mount+0x228/0x810 fs/namespace.c:3010 path_mount+0x5b4/0x1000 fs/namespace.c:3340 do_mount fs/namespace.c:3353 [inline] __do_sys_mount fs/namespace.c:3561 [inline] __se_sys_mount fs/namespace.c:3538 [inline] __arm64_sys_mount+0x514/0x5e4 fs/namespace.c:3538 __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+0x78/0x1e0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 Freed by task 4037: 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/0x1e8 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0x170/0x40c mm/slub.c:4559 kvfree+0x40/0x50 mm/util.c:654 kmem_free fs/xfs/kmem.h:62 [inline] xfs_trans_ail_destroy+0x60/0x70 fs/xfs/xfs_trans_ail.c:923 xfs_log_unmount+0x50/0xb0 fs/xfs/xfs_log.c:1061 xfs_unmountfs+0x110/0x1a8 fs/xfs/xfs_mount.c:1040 xfs_fs_put_super+0x70/0x250 fs/xfs/xfs_super.c:1095 generic_shutdown_super+0x130/0x2f0 fs/super.c:475 kill_block_super+0x70/0xdc fs/super.c:1427 deactivate_locked_super+0xb8/0x13c fs/super.c:335 deactivate_super+0xf8/0x118 fs/super.c:366 cleanup_mnt+0x3a4/0x458 fs/namespace.c:1139 __cleanup_mnt+0x20/0x30 fs/namespace.c:1146 task_work_run+0x12c/0x1e0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] do_notify_resume+0x24b4/0x3128 arch/arm64/kernel/signal.c:949 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:133 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:138 [inline] el0_svc+0xf0/0x1e0 arch/arm64/kernel/entry-common.c:609 el0t_64_sync_handler+0xcc/0xe4 arch/arm64/kernel/entry-common.c:626 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+0xcc/0x114 mm/kasan/generic.c:348 __call_rcu kernel/rcu/tree.c:3007 [inline] call_rcu+0x110/0x8f0 kernel/rcu/tree.c:3087 neigh_parms_release+0x1ac/0x224 net/core/neighbour.c:1674 addrconf_ifdown+0x138c/0x1688 net/ipv6/addrconf.c:3935 addrconf_notify+0x2f4/0xc6c net/ipv6/addrconf.c:-1 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd4/0x164 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2049 [inline] call_netdevice_notifiers_extack net/core/dev.c:2061 [inline] call_netdevice_notifiers net/core/dev.c:2075 [inline] unregister_netdevice_many+0xe10/0x17d0 net/core/dev.c:11134 ip6gre_exit_batch_net+0x418/0x468 net/ipv6/ip6_gre.c:1650 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x644/0xa98 net/core/net_namespace.c:635 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Second to last potentially related work creation: kasan_save_stack+0x38/0x68 mm/kasan/common.c:38 kasan_record_aux_stack+0xcc/0x114 mm/kasan/generic.c:348 kvfree_call_rcu+0xb8/0x66c kernel/rcu/tree.c:3596 drop_sysctl_table+0x274/0x39c fs/proc/proc_sysctl.c:1681 unregister_sysctl_table+0x94/0x134 fs/proc/proc_sysctl.c:1719 unregister_net_sysctl_table+0x20/0x30 net/sysctl_net.c:175 nf_ct_frags6_sysctl_unregister net/ipv6/netfilter/nf_conntrack_reasm.c:111 [inline] nf_ct_net_exit+0x78/0xe4 net/ipv6/netfilter/nf_conntrack_reasm.c:527 ops_exit_list net/core/net_namespace.c:172 [inline] cleanup_net+0x5c4/0xa98 net/core/net_namespace.c:635 process_one_work+0x79c/0x1140 kernel/workqueue.c:2310 worker_thread+0x8f4/0x101c kernel/workqueue.c:2457 kthread+0x374/0x454 kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 The buggy address belongs to the object at ffff0000cb82fa00 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 88 bytes inside of 256-byte region [ffff0000cb82fa00, ffff0000cb82fb00) The buggy address belongs to the page: page:000000009ce13ab1 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10b82e head:000000009ce13ab1 order:1 compound_mapcount:0 flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000010200 dead000000000100 dead000000000122 ffff0000c0002480 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000cb82f900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000cb82f980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000cb82fa00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff0000cb82fa80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff0000cb82fb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================