================================================================== BUG: KASAN: slab-use-after-free in __mutex_waiter_is_first kernel/locking/mutex.c:183 [inline] BUG: KASAN: slab-use-after-free in __mutex_lock_common kernel/locking/mutex.c:681 [inline] BUG: KASAN: slab-use-after-free in __mutex_lock+0xa65/0xb90 kernel/locking/mutex.c:747 Read of size 8 at addr ffff88806c5e6908 by task jfsCommit/110 CPU: 1 UID: 0 PID: 110 Comm: jfsCommit Not tainted 6.16.0-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 __mutex_waiter_is_first kernel/locking/mutex.c:183 [inline] __mutex_lock_common kernel/locking/mutex.c:681 [inline] __mutex_lock+0xa65/0xb90 kernel/locking/mutex.c:747 jfs_syncpt+0x2a/0xa0 fs/jfs/jfs_logmgr.c:1039 txEnd+0x30a/0x5a0 fs/jfs/jfs_txnmgr.c:549 txLazyCommit fs/jfs/jfs_txnmgr.c:2684 [inline] jfs_lazycommit+0x783/0xb30 fs/jfs/jfs_txnmgr.c:2733 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6663: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] open_inline_log fs/jfs/jfs_logmgr.c:1159 [inline] lmLogOpen+0x571/0x1400 fs/jfs/jfs_logmgr.c:1069 jfs_mount_rw+0x2e9/0x6f0 fs/jfs/jfs_mount.c:257 jfs_fill_super+0xc64/0x1060 fs/jfs/super.c:532 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1681 vfs_get_tree+0x8e/0x340 fs/super.c:1804 do_new_mount fs/namespace.c:3902 [inline] path_mount+0x1414/0x2020 fs/namespace.c:4226 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount fs/namespace.c:4427 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5846: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4842 lmLogClose+0x585/0x710 fs/jfs/jfs_logmgr.c:1461 jfs_umount+0x2f0/0x440 fs/jfs/jfs_umount.c:114 jfs_put_super+0x88/0x1d0 fs/jfs/super.c:194 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1755 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1417 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806c5e6800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 264 bytes inside of freed 1024-byte region [ffff88806c5e6800, ffff88806c5e6c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6c5e0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001b17801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 61, tgid 61 (kworker/u8:4), ts 140481297596, free_ts 101970334287 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab mm/slub.c:2619 [inline] new_slab+0x23b/0x330 mm/slub.c:2673 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3859 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3949 __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4340 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ieee802_11_parse_elems_full+0x1db/0x3770 net/mac80211/parse.c:1011 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2414 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2421 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1569 [inline] ieee80211_ibss_rx_queued_mgmt+0xc69/0x2fd0 net/mac80211/ibss.c:1600 ieee80211_iface_process_skb net/mac80211/iface.c:1670 [inline] ieee80211_iface_work+0xbf4/0x1020 net/mac80211/iface.c:1724 cfg80211_wiphy_work+0x3df/0x550 net/wireless/core.c:435 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 5829 tgid 5829 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] free_unref_folios+0xa65/0x1800 mm/page_alloc.c:2763 folios_put_refs+0x56f/0x740 mm/swap.c:992 free_pages_and_swap_cache+0x245/0x4a0 mm/swap_state.c:264 __tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136 tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu mm/mmu_gather.c:404 [inline] tlb_finish_mmu+0x168/0x7c0 mm/mmu_gather.c:497 vms_clear_ptes+0x55e/0x770 mm/vma.c:1230 vms_complete_munmap_vmas+0x1ca/0x970 mm/vma.c:1272 do_vmi_align_munmap+0x43b/0x7d0 mm/vma.c:1531 do_vmi_munmap+0x204/0x3e0 mm/vma.c:1579 __vm_munmap+0x19a/0x390 mm/vma.c:3108 __do_sys_munmap mm/mmap.c:1084 [inline] __se_sys_munmap mm/mmap.c:1081 [inline] __x64_sys_munmap+0x59/0x80 mm/mmap.c:1081 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806c5e6800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806c5e6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806c5e6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806c5e6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806c5e6a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: slab-use-after-free in atomic_long_read include/linux/atomic/atomic-instrumented.h:3188 [inline] BUG: KASAN: slab-use-after-free in __mutex_trylock_common+0x7f/0x250 kernel/locking/mutex.c:91 Read of size 8 at addr ffff88806c5e68b8 by task jfsCommit/110 CPU: 1 UID: 0 PID: 110 Comm: jfsCommit Tainted: G B 6.16.0-syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_long_read include/linux/atomic/atomic-instrumented.h:3188 [inline] __mutex_trylock_common+0x7f/0x250 kernel/locking/mutex.c:91 __mutex_trylock_or_handoff kernel/locking/mutex.c:128 [inline] __mutex_lock_common kernel/locking/mutex.c:689 [inline] __mutex_lock+0x75d/0xb90 kernel/locking/mutex.c:747 jfs_syncpt+0x2a/0xa0 fs/jfs/jfs_logmgr.c:1039 txEnd+0x30a/0x5a0 fs/jfs/jfs_txnmgr.c:549 txLazyCommit fs/jfs/jfs_txnmgr.c:2684 [inline] jfs_lazycommit+0x783/0xb30 fs/jfs/jfs_txnmgr.c:2733 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6663: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] open_inline_log fs/jfs/jfs_logmgr.c:1159 [inline] lmLogOpen+0x571/0x1400 fs/jfs/jfs_logmgr.c:1069 jfs_mount_rw+0x2e9/0x6f0 fs/jfs/jfs_mount.c:257 jfs_fill_super+0xc64/0x1060 fs/jfs/super.c:532 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1681 vfs_get_tree+0x8e/0x340 fs/super.c:1804 do_new_mount fs/namespace.c:3902 [inline] path_mount+0x1414/0x2020 fs/namespace.c:4226 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount fs/namespace.c:4427 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5846: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4842 lmLogClose+0x585/0x710 fs/jfs/jfs_logmgr.c:1461 jfs_umount+0x2f0/0x440 fs/jfs/jfs_umount.c:114 jfs_put_super+0x88/0x1d0 fs/jfs/super.c:194 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1755 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1417 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806c5e6800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 184 bytes inside of freed 1024-byte region [ffff88806c5e6800, ffff88806c5e6c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6c5e0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001b17801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 61, tgid 61 (kworker/u8:4), ts 140481297596, free_ts 101970334287 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab mm/slub.c:2619 [inline] new_slab+0x23b/0x330 mm/slub.c:2673 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3859 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3949 __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4340 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ieee802_11_parse_elems_full+0x1db/0x3770 net/mac80211/parse.c:1011 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2414 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2421 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1569 [inline] ieee80211_ibss_rx_queued_mgmt+0xc69/0x2fd0 net/mac80211/ibss.c:1600 ieee80211_iface_process_skb net/mac80211/iface.c:1670 [inline] ieee80211_iface_work+0xbf4/0x1020 net/mac80211/iface.c:1724 cfg80211_wiphy_work+0x3df/0x550 net/wireless/core.c:435 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 5829 tgid 5829 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] free_unref_folios+0xa65/0x1800 mm/page_alloc.c:2763 folios_put_refs+0x56f/0x740 mm/swap.c:992 free_pages_and_swap_cache+0x245/0x4a0 mm/swap_state.c:264 __tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136 tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu mm/mmu_gather.c:404 [inline] tlb_finish_mmu+0x168/0x7c0 mm/mmu_gather.c:497 vms_clear_ptes+0x55e/0x770 mm/vma.c:1230 vms_complete_munmap_vmas+0x1ca/0x970 mm/vma.c:1272 do_vmi_align_munmap+0x43b/0x7d0 mm/vma.c:1531 do_vmi_munmap+0x204/0x3e0 mm/vma.c:1579 __vm_munmap+0x19a/0x390 mm/vma.c:3108 __do_sys_munmap mm/mmap.c:1084 [inline] __se_sys_munmap mm/mmap.c:1081 [inline] __x64_sys_munmap+0x59/0x80 mm/mmap.c:1081 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806c5e6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806c5e6800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806c5e6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806c5e6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806c5e6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in arch_atomic64_read arch/x86/include/asm/atomic64_64.h:15 [inline] BUG: KASAN: slab-use-after-free in raw_atomic64_read include/linux/atomic/atomic-arch-fallback.h:2583 [inline] BUG: KASAN: slab-use-after-free in raw_atomic_long_read include/linux/atomic/atomic-long.h:38 [inline] BUG: KASAN: slab-use-after-free in atomic_long_read include/linux/atomic/atomic-instrumented.h:3189 [inline] BUG: KASAN: slab-use-after-free in __mutex_trylock_common+0x22b/0x250 kernel/locking/mutex.c:91 Read of size 8 at addr ffff88806c5e68b8 by task jfsCommit/110 CPU: 1 UID: 0 PID: 110 Comm: jfsCommit Tainted: G B 6.16.0-syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 arch_atomic64_read arch/x86/include/asm/atomic64_64.h:15 [inline] raw_atomic64_read include/linux/atomic/atomic-arch-fallback.h:2583 [inline] raw_atomic_long_read include/linux/atomic/atomic-long.h:38 [inline] atomic_long_read include/linux/atomic/atomic-instrumented.h:3189 [inline] __mutex_trylock_common+0x22b/0x250 kernel/locking/mutex.c:91 __mutex_trylock_or_handoff kernel/locking/mutex.c:128 [inline] __mutex_lock_common kernel/locking/mutex.c:689 [inline] __mutex_lock+0x75d/0xb90 kernel/locking/mutex.c:747 jfs_syncpt+0x2a/0xa0 fs/jfs/jfs_logmgr.c:1039 txEnd+0x30a/0x5a0 fs/jfs/jfs_txnmgr.c:549 txLazyCommit fs/jfs/jfs_txnmgr.c:2684 [inline] jfs_lazycommit+0x783/0xb30 fs/jfs/jfs_txnmgr.c:2733 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6663: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] open_inline_log fs/jfs/jfs_logmgr.c:1159 [inline] lmLogOpen+0x571/0x1400 fs/jfs/jfs_logmgr.c:1069 jfs_mount_rw+0x2e9/0x6f0 fs/jfs/jfs_mount.c:257 jfs_fill_super+0xc64/0x1060 fs/jfs/super.c:532 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1681 vfs_get_tree+0x8e/0x340 fs/super.c:1804 do_new_mount fs/namespace.c:3902 [inline] path_mount+0x1414/0x2020 fs/namespace.c:4226 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount fs/namespace.c:4427 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5846: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4842 lmLogClose+0x585/0x710 fs/jfs/jfs_logmgr.c:1461 jfs_umount+0x2f0/0x440 fs/jfs/jfs_umount.c:114 jfs_put_super+0x88/0x1d0 fs/jfs/super.c:194 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1755 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1417 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806c5e6800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 184 bytes inside of freed 1024-byte region [ffff88806c5e6800, ffff88806c5e6c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6c5e0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001b17801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 61, tgid 61 (kworker/u8:4), ts 140481297596, free_ts 101970334287 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab mm/slub.c:2619 [inline] new_slab+0x23b/0x330 mm/slub.c:2673 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3859 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3949 __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4340 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ieee802_11_parse_elems_full+0x1db/0x3770 net/mac80211/parse.c:1011 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2414 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2421 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1569 [inline] ieee80211_ibss_rx_queued_mgmt+0xc69/0x2fd0 net/mac80211/ibss.c:1600 ieee80211_iface_process_skb net/mac80211/iface.c:1670 [inline] ieee80211_iface_work+0xbf4/0x1020 net/mac80211/iface.c:1724 cfg80211_wiphy_work+0x3df/0x550 net/wireless/core.c:435 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 5829 tgid 5829 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] free_unref_folios+0xa65/0x1800 mm/page_alloc.c:2763 folios_put_refs+0x56f/0x740 mm/swap.c:992 free_pages_and_swap_cache+0x245/0x4a0 mm/swap_state.c:264 __tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136 tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu mm/mmu_gather.c:404 [inline] tlb_finish_mmu+0x168/0x7c0 mm/mmu_gather.c:497 vms_clear_ptes+0x55e/0x770 mm/vma.c:1230 vms_complete_munmap_vmas+0x1ca/0x970 mm/vma.c:1272 do_vmi_align_munmap+0x43b/0x7d0 mm/vma.c:1531 do_vmi_munmap+0x204/0x3e0 mm/vma.c:1579 __vm_munmap+0x19a/0x390 mm/vma.c:3108 __do_sys_munmap mm/mmap.c:1084 [inline] __se_sys_munmap mm/mmap.c:1081 [inline] __x64_sys_munmap+0x59/0x80 mm/mmap.c:1081 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806c5e6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806c5e6800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806c5e6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806c5e6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806c5e6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: slab-use-after-free in atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4456 [inline] BUG: KASAN: slab-use-after-free in __mutex_trylock_common+0xdc/0x250 kernel/locking/mutex.c:113 Write of size 8 at addr ffff88806c5e68b8 by task jfsCommit/110 CPU: 1 UID: 0 PID: 110 Comm: jfsCommit Tainted: G B 6.16.0-syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x100/0x1b0 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_long_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:4456 [inline] __mutex_trylock_common+0xdc/0x250 kernel/locking/mutex.c:113 __mutex_trylock_or_handoff kernel/locking/mutex.c:128 [inline] __mutex_lock_common kernel/locking/mutex.c:689 [inline] __mutex_lock+0x75d/0xb90 kernel/locking/mutex.c:747 jfs_syncpt+0x2a/0xa0 fs/jfs/jfs_logmgr.c:1039 txEnd+0x30a/0x5a0 fs/jfs/jfs_txnmgr.c:549 txLazyCommit fs/jfs/jfs_txnmgr.c:2684 [inline] jfs_lazycommit+0x783/0xb30 fs/jfs/jfs_txnmgr.c:2733 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 6663: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kmalloc_noprof include/linux/slab.h:905 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] open_inline_log fs/jfs/jfs_logmgr.c:1159 [inline] lmLogOpen+0x571/0x1400 fs/jfs/jfs_logmgr.c:1069 jfs_mount_rw+0x2e9/0x6f0 fs/jfs/jfs_mount.c:257 jfs_fill_super+0xc64/0x1060 fs/jfs/super.c:532 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1681 vfs_get_tree+0x8e/0x340 fs/super.c:1804 do_new_mount fs/namespace.c:3902 [inline] path_mount+0x1414/0x2020 fs/namespace.c:4226 do_mount fs/namespace.c:4239 [inline] __do_sys_mount fs/namespace.c:4450 [inline] __se_sys_mount fs/namespace.c:4427 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4427 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5846: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4842 lmLogClose+0x585/0x710 fs/jfs/jfs_logmgr.c:1461 jfs_umount+0x2f0/0x440 fs/jfs/jfs_umount.c:114 jfs_put_super+0x88/0x1d0 fs/jfs/super.c:194 generic_shutdown_super+0x156/0x390 fs/super.c:643 kill_block_super+0x3b/0x90 fs/super.c:1755 deactivate_locked_super+0xc1/0x1a0 fs/super.c:474 deactivate_super fs/super.c:507 [inline] deactivate_super+0xde/0x100 fs/super.c:503 cleanup_mnt+0x225/0x450 fs/namespace.c:1417 task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88806c5e6800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 184 bytes inside of freed 1024-byte region [ffff88806c5e6800, ffff88806c5e6c00) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6c5e0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 raw: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b841dc0 ffffea0000d54a00 dead000000000002 head: 0000000000000000 0000000000100010 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0001b17801 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 61, tgid 61 (kworker/u8:4), ts 140481297596, free_ts 101970334287 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab mm/slub.c:2619 [inline] new_slab+0x23b/0x330 mm/slub.c:2673 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3859 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3949 __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0x2f2/0x510 mm/slub.c:4340 kmalloc_noprof include/linux/slab.h:909 [inline] kzalloc_noprof include/linux/slab.h:1039 [inline] ieee802_11_parse_elems_full+0x1db/0x3770 net/mac80211/parse.c:1011 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2414 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2421 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1569 [inline] ieee80211_ibss_rx_queued_mgmt+0xc69/0x2fd0 net/mac80211/ibss.c:1600 ieee80211_iface_process_skb net/mac80211/iface.c:1670 [inline] ieee80211_iface_work+0xbf4/0x1020 net/mac80211/iface.c:1724 cfg80211_wiphy_work+0x3df/0x550 net/wireless/core.c:435 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c5/0x780 kernel/kthread.c:464 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 page last free pid 5829 tgid 5829 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] free_unref_folios+0xa65/0x1800 mm/page_alloc.c:2763 folios_put_refs+0x56f/0x740 mm/swap.c:992 free_pages_and_swap_cache+0x245/0x4a0 mm/swap_state.c:264 __tlb_batch_free_encoded_pages+0xf9/0x290 mm/mmu_gather.c:136 tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:397 [inline] tlb_flush_mmu mm/mmu_gather.c:404 [inline] tlb_finish_mmu+0x168/0x7c0 mm/mmu_gather.c:497 vms_clear_ptes+0x55e/0x770 mm/vma.c:1230 vms_complete_munmap_vmas+0x1ca/0x970 mm/vma.c:1272 do_vmi_align_munmap+0x43b/0x7d0 mm/vma.c:1531 do_vmi_munmap+0x204/0x3e0 mm/vma.c:1579 __vm_munmap+0x19a/0x390 mm/vma.c:3108 __do_sys_munmap mm/mmap.c:1084 [inline] __se_sys_munmap mm/mmap.c:1081 [inline] __x64_sys_munmap+0x59/0x80 mm/mmap.c:1081 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88806c5e6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806c5e6800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88806c5e6880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88806c5e6900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806c5e6980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================