KASAN: slab-use-after-free Read in ext4_discard_work

Status: moderation: reported on 2026/11/24 00:20
Subsystems: ext4
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+e941d5ca99b2882d258c@syzkaller.appspotmail.com
First crash: 4d02h, last: 3d06h
✨ AI cause bisection: introduced by (AI job) :
commit 55cdd0af2bc5ffc92a2deb745627755aecd5db33
Author: Wang Jianchao <wangjianchao@kuaishou.com>
Date: Sat Jul 24 07:41:23 2021 +0000

  ext4: get discard out of jbd2 commit kthread contex

✨ AI-generated root cause summary:

During a failed ext4 mount in __ext4_fill_super(), the error-cleanup path calls ext4_mb_release() (at failed_mount6) before calling ext4_journal_destroy() (at failed_mount_wq). Because sbi->s_journal->j_commit_callback (ext4_journal_commit_callback) remains active until ext4_journal_destroy() finishes, a transaction commit triggered during mount error handling or journal teardown invokes ext4_process_freed_data(), which queues &sbi->s_discard_work when the DISCARD mount option is set (even if freed_data_list is empty). Since ext4_mb_release() has already run and flushed s_discard_work earlier in the cleanup path, s_discard_work is never flushed again before ext4_fill_super() frees sbi via ext4_free_sbi(), resulting in a slab use-after-free when ext4_discard_work() subsequently reads sbi->s_sb.

▶ ▼ ✨ Full AI root cause analysis
Based on kernel commit e8017d29067f:

Root Cause Analysis

The slab use-after-free occurs because the error-cleanup path in __ext4_fill_super() (fs/ext4/super.c) tears down mballoc (ext4_mb_release()) before shutting down the JBD2 journal (ext4_journal_destroy()), allowing a subsequent journal commit callback to re-queue sbi->s_discard_work after ext4_mb_release() has already flushed it and before ext4_free_sbi() frees sbi.

Detailed Mechanism

  1. Initialization during mount (fs/ext4/super.c):

  2. Mount failure triggers a journaled superblock update:

    • ext4_init_orphan_info(sb) (fs/ext4/super.c:5751) fails on a corrupted orphan file block checksum at fs/ext4/orphan.c:625 and calls ext4_error().
    • ext4_handle_error() (fs/ext4/super.c:734) schedules sbi->s_sb_upd_work (update_super_work), which starts and stops a JBD2 handle (jbd2_journal_start() / jbd2_journal_dirty_metadata() / jbd2_journal_stop() in fs/ext4/super.c:783-806) to record the error in the superblock.
    • ext4_init_orphan_info() returns -EIO, jumping to failed_mount7 in __ext4_fill_super().
  3. Inverted teardown order in __ext4_fill_super():

    • At failed_mount6, __ext4_fill_super() calls ext4_mb_release(sb) (fs/ext4/super.c:5823). Inside ext4_mb_release() (fs/ext4/mballoc.c:3898), flush_work(&sbi->s_discard_work) runs and drains any currently queued discard work, then mballoc structures are freed.
    • However, sbi->s_journal is still running with j_commit_callback still pointing to ext4_journal_commit_callback.
    • Later, at failed_mount_wq, __ext4_fill_super() calls ext4_journal_destroy(sbi, sbi->s_journal) (fs/ext4/super.c:5846, defined in fs/ext4/ext4_jbd2.h:437), which calls ext4_force_commit(), flush_work(&sbi->s_sb_upd_work), and jbd2_journal_destroy().
    • When kjournald2 commits the transaction in jbd2_journal_commit_transaction(), it invokes ext4_journal_commit_callback() (fs/ext4/super.c:526) -> ext4_process_freed_data() (fs/ext4/mballoc.c:4018).
    • In ext4_process_freed_data() (fs/ext4/mballoc.c:4031-4037), when test_opt(sb, DISCARD) is set and list_empty(&sbi->s_discard_list) is true, it unconditionally calls queue_work(system_dfl_wq, &sbi->s_discard_work)β€”even when freed_data_list is empty. (Note also that EXT4_MOUNT_DISCARD has not yet been cleared for non-discard devices because that check at fs/ext4/super.c:5787 comes after ext4_init_orphan_info().)
  4. Use-after-free:

    • After ext4_journal_destroy() finishes, __ext4_fill_super() returns the error without flushing sbi->s_discard_work again.
    • ext4_fill_super() frees sbi via ext4_free_sbi(sbi) (fs/ext4/super.c:5925 -> 4418).
    • When the worker thread subsequently runs ext4_discard_work() (fs/ext4/mballoc.c:3645), reading sbi->s_sb (at offset 1008 bytes in struct ext4_sb_info) accesses the freed kmalloc-8k slab object.

Note that normal unmount in ext4_put_super() (fs/ext4/super.c:1333-1345) avoids this by calling ext4_journal_destroy() before ext4_mb_release(sb). In __ext4_fill_super(), either the journal must be destroyed (or j_commit_callback / s_discard_work handled) before ext4_mb_release(), or s_discard_work must not be queued once teardown/mballoc release begins and must be flushed after ext4_journal_destroy(). Additionally, ext4_process_freed_data() does not need to queue s_discard_work if freed_data_list is empty.

▶ ▼ ✨ AI Jobs (3)
ID Workflow Result Correct Bug Created Started Finished Revision
80e9600f repro-c Reproduced: βœ… ❓ KASAN: slab-use-after-free Read in ext4_discard_work 2026/11/22 00:02 2026/11/22 00:02 2026/11/22 03:40 b2c69459
40c391cc bisect-cause IsRelease: ❌ ❓ KASAN: slab-use-after-free Read in ext4_discard_work 2026/11/19 22:46 2026/11/19 22:46 2026/11/19 23:21 229865fb
d4b7c226 assessment-security DenialOfService: βœ… Exploitable: βœ… FilesystemTrigger: βœ… FuzzingArtifact: ❌ MemoryCorruption: βœ… NetworkNeedsSetup: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ ❓ KASAN: slab-use-after-free Read in ext4_discard_work 2026/11/19 22:45 2026/11/19 22:45 2026/11/19 23:49 229865fb
▶ ▼ Last patch testing requests (1)
Created Duration User Patch Repo Result
2026/11/22 09:56 25m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 909ef7a9a30fa139e69e555e3606680f5cca7726 no crash job log log

Sample crash report:
==================================================================
BUG: KASAN: slab-use-after-free in ext4_discard_work+0x818/0x920 fs/ext4/mballoc.c:3645
Read of size 8 at addr ffff888072f203f0 by task kworker/u8:1/14

CPU: 0 UID: 0 PID: 14 Comm: kworker/u8:1 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: events_unbound ext4_discard_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0x13d/0x4b0 mm/kasan/report.c:482
 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
 ext4_discard_work+0x818/0x920 fs/ext4/mballoc.c:3645
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495
 process_scheduled_works kernel/workqueue.c:3578 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Allocated by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 poison_kmalloc_redzone mm/kasan/common.c:412 [inline]
 __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:429
 kasan_kmalloc include/linux/kasan.h:267 [inline]
 __kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5680
 _kmalloc_noprof include/linux/slab.h:991 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 ext4_alloc_sbi fs/ext4/super.c:4424 [inline]
 ext4_fill_super+0xdf/0xaea0 fs/ext4/super.c:5886
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:599
 poison_slab_object mm/kasan/common.c:267 [inline]
 __kasan_slab_free+0x73/0x90 mm/kasan/common.c:299
 kasan_slab_free include/linux/kasan.h:239 [inline]
 slab_free_hook mm/slub.c:2780 [inline]
 slab_free mm/slub.c:6637 [inline]
 kfree+0x22d/0x6d0 mm/slub.c:6930
 ext4_free_sbi fs/ext4/super.c:4417 [inline]
 ext4_fill_super+0x259f/0xaea0 fs/ext4/super.c:5924
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 ext4_process_freed_data+0xa0e/0xd20 fs/ext4/mballoc.c:4037
 ext4_journal_commit_callback+0xcb/0x790 fs/ext4/super.c:526
 jbd2_journal_commit_transaction+0x572d/0x6880 fs/jbd2/commit.c:1147
 kjournald2+0x200/0x750 fs/jbd2/journal.c:200
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Second to last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 schedule_work include/linux/workqueue.h:761 [inline]
 ext4_handle_error+0x71d/0x7f0 fs/ext4/super.c:734
 __ext4_error+0x2e5/0x3a0 fs/ext4/super.c:848
 ext4_init_orphan_info+0xa90/0xd30 fs/ext4/orphan.c:625
 __ext4_fill_super fs/ext4/super.c:5750 [inline]
 ext4_fill_super+0x86df/0xaea0 fs/ext4/super.c:5899
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888072f20000
 which belongs to the cache kmalloc-8k of size 8192
The buggy address is located 1008 bytes inside of
 freed 8192-byte region [ffff888072f20000, ffff888072f22000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72f20
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 ffff88813ff11280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88813ff11280 dead000000000100 dead000000000122
head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000003 fffffffffffffe01 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 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9150, tgid 9150 (syz-executor), ts 440061681435
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873
 prep_new_page mm/page_alloc.c:1881 [inline]
 get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963
 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505
 alloc_slab_page mm/slub.c:3384 [inline]
 allocate_slab mm/slub.c:3499 [inline]
 new_slab+0xb1/0x6d0 mm/slub.c:3550
 refill_objects+0xe3/0x410 mm/slub.c:7546
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811
 alloc_from_pcs mm/slub.c:4887 [inline]
 slab_alloc_node mm/slub.c:5021 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kvmalloc_node_noprof+0x7b6/0x9b0 mm/slub.c:7143
 _kvmalloc_array_node_noprof include/linux/slab.h:1374 [inline]
 __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:503 [inline]
 ptr_ring_init_noprof include/linux/ptr_ring.h:521 [inline]
 skb_array_init_noprof include/linux/skb_array.h:182 [inline]
 pfifo_fast_init+0x177/0x3b0 net/sched/sch_generic.c:956
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 mq_init_common+0x1f4/0x490 net/sched/sch_mq.c:91
 mq_init+0x26/0x60 net/sched/sch_mq.c:112
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 attach_default_qdiscs net/sched/sch_generic.c:1281 [inline]
 dev_activate+0xaa9/0xce0 net/sched/sch_generic.c:1339
 __dev_open+0x490/0x8f0 net/core/dev.c:1771
 __dev_change_flags+0x596/0x850 net/core/dev.c:10026
 netif_change_flags+0x8d/0x160 net/core/dev.c:10091
page last free pid 9150 tgid 9150 ts 440054186149 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1415 [inline]
 __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:364
 kasan_slab_alloc include/linux/kasan.h:257 [inline]
 slab_post_alloc_hook mm/slub.c:4720 [inline]
 slab_alloc_node mm/slub.c:5033 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_noprof+0x2cc/0x840 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 fib6_info_alloc+0x40/0x160 net/ipv6/ip6_fib.c:189
 ip6_route_info_create+0x14c/0xad0 net/ipv6/route.c:3833
 ip6_route_add+0x4b/0x1d0 net/ipv6/route.c:3962
 addrconf_prefix_route+0x2fb/0x510 net/ipv6/addrconf.c:2522
 inet6_addr_add+0x575/0x9a0 net/ipv6/addrconf.c:3095
 inet6_rtm_newaddr+0x147a/0x1bb0 net/ipv6/addrconf.c:5121
 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7169
 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2585
 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline]
 netlink_unicast+0x668/0x950 net/netlink/af_netlink.c:1362
 netlink_sendmsg+0x9ac/0x10c0 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:800 [inline]
 __sock_sendmsg net/socket.c:818 [inline]
 __sys_sendto+0x492/0x4e0 net/socket.c:2283

Memory state around the buggy address:
 ffff888072f20280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888072f20380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                                             ^
 ffff888072f20400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline]
BUG: KASAN: slab-use-after-free in do_raw_spin_lock+0x23a/0x260 kernel/locking/spinlock_debug.c:115
Read of size 4 at addr ffff888072f2050c by task kworker/u8:1/14

CPU: 0 UID: 0 PID: 14 Comm: kworker/u8:1 Tainted: G    B        L      syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: events_unbound ext4_discard_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0x13d/0x4b0 mm/kasan/report.c:482
 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
 debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline]
 do_raw_spin_lock+0x23a/0x260 kernel/locking/spinlock_debug.c:115
 spin_lock include/linux/spinlock.h:347 [inline]
 ext4_discard_work+0xe5/0x920 fs/ext4/mballoc.c:3652
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495
 process_scheduled_works kernel/workqueue.c:3578 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Allocated by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 poison_kmalloc_redzone mm/kasan/common.c:412 [inline]
 __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:429
 kasan_kmalloc include/linux/kasan.h:267 [inline]
 __kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5680
 _kmalloc_noprof include/linux/slab.h:991 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 ext4_alloc_sbi fs/ext4/super.c:4424 [inline]
 ext4_fill_super+0xdf/0xaea0 fs/ext4/super.c:5886
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:599
 poison_slab_object mm/kasan/common.c:267 [inline]
 __kasan_slab_free+0x73/0x90 mm/kasan/common.c:299
 kasan_slab_free include/linux/kasan.h:239 [inline]
 slab_free_hook mm/slub.c:2780 [inline]
 slab_free mm/slub.c:6637 [inline]
 kfree+0x22d/0x6d0 mm/slub.c:6930
 ext4_free_sbi fs/ext4/super.c:4417 [inline]
 ext4_fill_super+0x259f/0xaea0 fs/ext4/super.c:5924
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 ext4_process_freed_data+0xa0e/0xd20 fs/ext4/mballoc.c:4037
 ext4_journal_commit_callback+0xcb/0x790 fs/ext4/super.c:526
 jbd2_journal_commit_transaction+0x572d/0x6880 fs/jbd2/commit.c:1147
 kjournald2+0x200/0x750 fs/jbd2/journal.c:200
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Second to last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 schedule_work include/linux/workqueue.h:761 [inline]
 ext4_handle_error+0x71d/0x7f0 fs/ext4/super.c:734
 __ext4_error+0x2e5/0x3a0 fs/ext4/super.c:848
 ext4_init_orphan_info+0xa90/0xd30 fs/ext4/orphan.c:625
 __ext4_fill_super fs/ext4/super.c:5750 [inline]
 ext4_fill_super+0x86df/0xaea0 fs/ext4/super.c:5899
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888072f20000
 which belongs to the cache kmalloc-8k of size 8192
The buggy address is located 1292 bytes inside of
 freed 8192-byte region [ffff888072f20000, ffff888072f22000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72f20
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 ffff88813ff11280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88813ff11280 dead000000000100 dead000000000122
head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000003 fffffffffffffe01 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 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9150, tgid 9150 (syz-executor), ts 440061681435
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873
 prep_new_page mm/page_alloc.c:1881 [inline]
 get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963
 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505
 alloc_slab_page mm/slub.c:3384 [inline]
 allocate_slab mm/slub.c:3499 [inline]
 new_slab+0xb1/0x6d0 mm/slub.c:3550
 refill_objects+0xe3/0x410 mm/slub.c:7546
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811
 alloc_from_pcs mm/slub.c:4887 [inline]
 slab_alloc_node mm/slub.c:5021 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kvmalloc_node_noprof+0x7b6/0x9b0 mm/slub.c:7143
 _kvmalloc_array_node_noprof include/linux/slab.h:1374 [inline]
 __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:503 [inline]
 ptr_ring_init_noprof include/linux/ptr_ring.h:521 [inline]
 skb_array_init_noprof include/linux/skb_array.h:182 [inline]
 pfifo_fast_init+0x177/0x3b0 net/sched/sch_generic.c:956
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 mq_init_common+0x1f4/0x490 net/sched/sch_mq.c:91
 mq_init+0x26/0x60 net/sched/sch_mq.c:112
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 attach_default_qdiscs net/sched/sch_generic.c:1281 [inline]
 dev_activate+0xaa9/0xce0 net/sched/sch_generic.c:1339
 __dev_open+0x490/0x8f0 net/core/dev.c:1771
 __dev_change_flags+0x596/0x850 net/core/dev.c:10026
 netif_change_flags+0x8d/0x160 net/core/dev.c:10091
page last free pid 9150 tgid 9150 ts 440054186149 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1415 [inline]
 __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:364
 kasan_slab_alloc include/linux/kasan.h:257 [inline]
 slab_post_alloc_hook mm/slub.c:4720 [inline]
 slab_alloc_node mm/slub.c:5033 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_noprof+0x2cc/0x840 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 fib6_info_alloc+0x40/0x160 net/ipv6/ip6_fib.c:189
 ip6_route_info_create+0x14c/0xad0 net/ipv6/route.c:3833
 ip6_route_add+0x4b/0x1d0 net/ipv6/route.c:3962
 addrconf_prefix_route+0x2fb/0x510 net/ipv6/addrconf.c:2522
 inet6_addr_add+0x575/0x9a0 net/ipv6/addrconf.c:3095
 inet6_rtm_newaddr+0x147a/0x1bb0 net/ipv6/addrconf.c:5121
 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7169
 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2585
 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline]
 netlink_unicast+0x668/0x950 net/netlink/af_netlink.c:1362
 netlink_sendmsg+0x9ac/0x10c0 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:800 [inline]
 __sock_sendmsg net/socket.c:818 [inline]
 __sys_sendto+0x492/0x4e0 net/socket.c:2283

Memory state around the buggy address:
 ffff888072f20400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888072f20500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff888072f20580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:87 [inline]
BUG: KASAN: slab-use-after-free in do_raw_spin_lock+0x247/0x260 kernel/locking/spinlock_debug.c:115
Read of size 8 at addr ffff888072f20518 by task kworker/u8:1/14

CPU: 0 UID: 0 PID: 14 Comm: kworker/u8:1 Tainted: G    B        L      syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: events_unbound ext4_discard_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0x13d/0x4b0 mm/kasan/report.c:482
 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
 debug_spin_lock_before kernel/locking/spinlock_debug.c:87 [inline]
 do_raw_spin_lock+0x247/0x260 kernel/locking/spinlock_debug.c:115
 spin_lock include/linux/spinlock.h:347 [inline]
 ext4_discard_work+0xe5/0x920 fs/ext4/mballoc.c:3652
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495
 process_scheduled_works kernel/workqueue.c:3578 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Allocated by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 poison_kmalloc_redzone mm/kasan/common.c:412 [inline]
 __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:429
 kasan_kmalloc include/linux/kasan.h:267 [inline]
 __kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5680
 _kmalloc_noprof include/linux/slab.h:991 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 ext4_alloc_sbi fs/ext4/super.c:4424 [inline]
 ext4_fill_super+0xdf/0xaea0 fs/ext4/super.c:5886
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:599
 poison_slab_object mm/kasan/common.c:267 [inline]
 __kasan_slab_free+0x73/0x90 mm/kasan/common.c:299
 kasan_slab_free include/linux/kasan.h:239 [inline]
 slab_free_hook mm/slub.c:2780 [inline]
 slab_free mm/slub.c:6637 [inline]
 kfree+0x22d/0x6d0 mm/slub.c:6930
 ext4_free_sbi fs/ext4/super.c:4417 [inline]
 ext4_fill_super+0x259f/0xaea0 fs/ext4/super.c:5924
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 ext4_process_freed_data+0xa0e/0xd20 fs/ext4/mballoc.c:4037
 ext4_journal_commit_callback+0xcb/0x790 fs/ext4/super.c:526
 jbd2_journal_commit_transaction+0x572d/0x6880 fs/jbd2/commit.c:1147
 kjournald2+0x200/0x750 fs/jbd2/journal.c:200
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Second to last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 schedule_work include/linux/workqueue.h:761 [inline]
 ext4_handle_error+0x71d/0x7f0 fs/ext4/super.c:734
 __ext4_error+0x2e5/0x3a0 fs/ext4/super.c:848
 ext4_init_orphan_info+0xa90/0xd30 fs/ext4/orphan.c:625
 __ext4_fill_super fs/ext4/super.c:5750 [inline]
 ext4_fill_super+0x86df/0xaea0 fs/ext4/super.c:5899
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888072f20000
 which belongs to the cache kmalloc-8k of size 8192
The buggy address is located 1304 bytes inside of
 freed 8192-byte region [ffff888072f20000, ffff888072f22000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72f20
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 ffff88813ff11280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88813ff11280 dead000000000100 dead000000000122
head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000003 fffffffffffffe01 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 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9150, tgid 9150 (syz-executor), ts 440061681435
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873
 prep_new_page mm/page_alloc.c:1881 [inline]
 get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963
 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505
 alloc_slab_page mm/slub.c:3384 [inline]
 allocate_slab mm/slub.c:3499 [inline]
 new_slab+0xb1/0x6d0 mm/slub.c:3550
 refill_objects+0xe3/0x410 mm/slub.c:7546
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811
 alloc_from_pcs mm/slub.c:4887 [inline]
 slab_alloc_node mm/slub.c:5021 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kvmalloc_node_noprof+0x7b6/0x9b0 mm/slub.c:7143
 _kvmalloc_array_node_noprof include/linux/slab.h:1374 [inline]
 __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:503 [inline]
 ptr_ring_init_noprof include/linux/ptr_ring.h:521 [inline]
 skb_array_init_noprof include/linux/skb_array.h:182 [inline]
 pfifo_fast_init+0x177/0x3b0 net/sched/sch_generic.c:956
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 mq_init_common+0x1f4/0x490 net/sched/sch_mq.c:91
 mq_init+0x26/0x60 net/sched/sch_mq.c:112
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 attach_default_qdiscs net/sched/sch_generic.c:1281 [inline]
 dev_activate+0xaa9/0xce0 net/sched/sch_generic.c:1339
 __dev_open+0x490/0x8f0 net/core/dev.c:1771
 __dev_change_flags+0x596/0x850 net/core/dev.c:10026
 netif_change_flags+0x8d/0x160 net/core/dev.c:10091
page last free pid 9150 tgid 9150 ts 440054186149 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1415 [inline]
 __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:364
 kasan_slab_alloc include/linux/kasan.h:257 [inline]
 slab_post_alloc_hook mm/slub.c:4720 [inline]
 slab_alloc_node mm/slub.c:5033 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_noprof+0x2cc/0x840 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 fib6_info_alloc+0x40/0x160 net/ipv6/ip6_fib.c:189
 ip6_route_info_create+0x14c/0xad0 net/ipv6/route.c:3833
 ip6_route_add+0x4b/0x1d0 net/ipv6/route.c:3962
 addrconf_prefix_route+0x2fb/0x510 net/ipv6/addrconf.c:2522
 inet6_addr_add+0x575/0x9a0 net/ipv6/addrconf.c:3095
 inet6_rtm_newaddr+0x147a/0x1bb0 net/ipv6/addrconf.c:5121
 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7169
 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2585
 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline]
 netlink_unicast+0x668/0x950 net/netlink/af_netlink.c:1362
 netlink_sendmsg+0x9ac/0x10c0 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:800 [inline]
 __sock_sendmsg net/socket.c:818 [inline]
 __sys_sendto+0x492/0x4e0 net/socket.c:2283

Memory state around the buggy address:
 ffff888072f20400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888072f20500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                            ^
 ffff888072f20580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
==================================================================
BUG: KASAN: slab-use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:88 [inline]
BUG: KASAN: slab-use-after-free in do_raw_spin_lock+0x230/0x260 kernel/locking/spinlock_debug.c:115
Read of size 4 at addr ffff888072f20510 by task kworker/u8:1/14

CPU: 0 UID: 0 PID: 14 Comm: kworker/u8:1 Tainted: G    B        L      syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: events_unbound ext4_discard_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0x13d/0x4b0 mm/kasan/report.c:482
 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
 debug_spin_lock_before kernel/locking/spinlock_debug.c:88 [inline]
 do_raw_spin_lock+0x230/0x260 kernel/locking/spinlock_debug.c:115
 spin_lock include/linux/spinlock.h:347 [inline]
 ext4_discard_work+0xe5/0x920 fs/ext4/mballoc.c:3652
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495
 process_scheduled_works kernel/workqueue.c:3578 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Allocated by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 poison_kmalloc_redzone mm/kasan/common.c:412 [inline]
 __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:429
 kasan_kmalloc include/linux/kasan.h:267 [inline]
 __kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5680
 _kmalloc_noprof include/linux/slab.h:991 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 ext4_alloc_sbi fs/ext4/super.c:4424 [inline]
 ext4_fill_super+0xdf/0xaea0 fs/ext4/super.c:5886
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:599
 poison_slab_object mm/kasan/common.c:267 [inline]
 __kasan_slab_free+0x73/0x90 mm/kasan/common.c:299
 kasan_slab_free include/linux/kasan.h:239 [inline]
 slab_free_hook mm/slub.c:2780 [inline]
 slab_free mm/slub.c:6637 [inline]
 kfree+0x22d/0x6d0 mm/slub.c:6930
 ext4_free_sbi fs/ext4/super.c:4417 [inline]
 ext4_fill_super+0x259f/0xaea0 fs/ext4/super.c:5924
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 ext4_process_freed_data+0xa0e/0xd20 fs/ext4/mballoc.c:4037
 ext4_journal_commit_callback+0xcb/0x790 fs/ext4/super.c:526
 jbd2_journal_commit_transaction+0x572d/0x6880 fs/jbd2/commit.c:1147
 kjournald2+0x200/0x750 fs/jbd2/journal.c:200
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Second to last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 schedule_work include/linux/workqueue.h:761 [inline]
 ext4_handle_error+0x71d/0x7f0 fs/ext4/super.c:734
 __ext4_error+0x2e5/0x3a0 fs/ext4/super.c:848
 ext4_init_orphan_info+0xa90/0xd30 fs/ext4/orphan.c:625
 __ext4_fill_super fs/ext4/super.c:5750 [inline]
 ext4_fill_super+0x86df/0xaea0 fs/ext4/super.c:5899
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888072f20000
 which belongs to the cache kmalloc-8k of size 8192
The buggy address is located 1296 bytes inside of
 freed 8192-byte region [ffff888072f20000, ffff888072f22000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72f20
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 ffff88813ff11280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88813ff11280 dead000000000100 dead000000000122
head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000003 fffffffffffffe01 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 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9150, tgid 9150 (syz-executor), ts 440061681435
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873
 prep_new_page mm/page_alloc.c:1881 [inline]
 get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963
 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505
 alloc_slab_page mm/slub.c:3384 [inline]
 allocate_slab mm/slub.c:3499 [inline]
 new_slab+0xb1/0x6d0 mm/slub.c:3550
 refill_objects+0xe3/0x410 mm/slub.c:7546
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811
 alloc_from_pcs mm/slub.c:4887 [inline]
 slab_alloc_node mm/slub.c:5021 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kvmalloc_node_noprof+0x7b6/0x9b0 mm/slub.c:7143
 _kvmalloc_array_node_noprof include/linux/slab.h:1374 [inline]
 __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:503 [inline]
 ptr_ring_init_noprof include/linux/ptr_ring.h:521 [inline]
 skb_array_init_noprof include/linux/skb_array.h:182 [inline]
 pfifo_fast_init+0x177/0x3b0 net/sched/sch_generic.c:956
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 mq_init_common+0x1f4/0x490 net/sched/sch_mq.c:91
 mq_init+0x26/0x60 net/sched/sch_mq.c:112
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 attach_default_qdiscs net/sched/sch_generic.c:1281 [inline]
 dev_activate+0xaa9/0xce0 net/sched/sch_generic.c:1339
 __dev_open+0x490/0x8f0 net/core/dev.c:1771
 __dev_change_flags+0x596/0x850 net/core/dev.c:10026
 netif_change_flags+0x8d/0x160 net/core/dev.c:10091
page last free pid 9150 tgid 9150 ts 440054186149 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1415 [inline]
 __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:364
 kasan_slab_alloc include/linux/kasan.h:257 [inline]
 slab_post_alloc_hook mm/slub.c:4720 [inline]
 slab_alloc_node mm/slub.c:5033 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_noprof+0x2cc/0x840 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 fib6_info_alloc+0x40/0x160 net/ipv6/ip6_fib.c:189
 ip6_route_info_create+0x14c/0xad0 net/ipv6/route.c:3833
 ip6_route_add+0x4b/0x1d0 net/ipv6/route.c:3962
 addrconf_prefix_route+0x2fb/0x510 net/ipv6/addrconf.c:2522
 inet6_addr_add+0x575/0x9a0 net/ipv6/addrconf.c:3095
 inet6_rtm_newaddr+0x147a/0x1bb0 net/ipv6/addrconf.c:5121
 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7169
 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2585
 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline]
 netlink_unicast+0x668/0x950 net/netlink/af_netlink.c:1362
 netlink_sendmsg+0x9ac/0x10c0 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:800 [inline]
 __sock_sendmsg net/socket.c:818 [inline]
 __sys_sendto+0x492/0x4e0 net/socket.c:2283

Memory state around the buggy address:
 ffff888072f20400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888072f20500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                         ^
 ffff888072f20580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20600: 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:112 [inline]
BUG: KASAN: slab-use-after-free in atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1300 [inline]
BUG: KASAN: slab-use-after-free in queued_spin_lock include/asm-generic/qspinlock.h:112 [inline]
BUG: KASAN: slab-use-after-free in do_raw_spin_lock+0x119/0x260 kernel/locking/spinlock_debug.c:116
Write of size 4 at addr ffff888072f20508 by task kworker/u8:1/14

CPU: 0 UID: 0 PID: 14 Comm: kworker/u8:1 Tainted: G    B        L      syzkaller #0 PREEMPT(full) 
Tainted: [B]=BAD_PAGE, [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Workqueue: events_unbound ext4_discard_work
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:94 [inline]
 dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0x13d/0x4b0 mm/kasan/report.c:482
 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
 check_region_inline mm/kasan/generic.c:186 [inline]
 kasan_check_range+0x10f/0x1e0 mm/kasan/generic.c:200
 instrument_atomic_read_write include/linux/instrumented.h:112 [inline]
 atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:1300 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:112 [inline]
 do_raw_spin_lock+0x119/0x260 kernel/locking/spinlock_debug.c:116
 spin_lock include/linux/spinlock.h:347 [inline]
 ext4_discard_work+0xe5/0x920 fs/ext4/mballoc.c:3652
 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3495
 process_scheduled_works kernel/workqueue.c:3578 [inline]
 worker_thread+0x5ef/0xe50 kernel/workqueue.c:3659
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>

Allocated by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 poison_kmalloc_redzone mm/kasan/common.c:412 [inline]
 __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:429
 kasan_kmalloc include/linux/kasan.h:267 [inline]
 __kmalloc_cache_noprof+0x2f8/0x6d0 mm/slub.c:5680
 _kmalloc_noprof include/linux/slab.h:991 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 ext4_alloc_sbi fs/ext4/super.c:4424 [inline]
 ext4_fill_super+0xdf/0xaea0 fs/ext4/super.c:5886
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Freed by task 15564:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 kasan_save_track+0x14/0x40 mm/kasan/common.c:79
 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:599
 poison_slab_object mm/kasan/common.c:267 [inline]
 __kasan_slab_free+0x73/0x90 mm/kasan/common.c:299
 kasan_slab_free include/linux/kasan.h:239 [inline]
 slab_free_hook mm/slub.c:2780 [inline]
 slab_free mm/slub.c:6637 [inline]
 kfree+0x22d/0x6d0 mm/slub.c:6930
 ext4_free_sbi fs/ext4/super.c:4417 [inline]
 ext4_fill_super+0x259f/0xaea0 fs/ext4/super.c:5924
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 ext4_process_freed_data+0xa0e/0xd20 fs/ext4/mballoc.c:4037
 ext4_journal_commit_callback+0xcb/0x790 fs/ext4/super.c:526
 jbd2_journal_commit_transaction+0x572d/0x6880 fs/jbd2/commit.c:1147
 kjournald2+0x200/0x750 fs/jbd2/journal.c:200
 kthread+0x373/0x450 kernel/kthread.c:436
 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245

Second to last potentially related work creation:
 kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:561
 insert_work+0x36/0x230 kernel/workqueue.c:2356
 __queue_work+0xac1/0x16f0 kernel/workqueue.c:2546
 queue_work_on+0x180/0x1e0 kernel/workqueue.c:2599
 queue_work include/linux/workqueue.h:700 [inline]
 schedule_work include/linux/workqueue.h:761 [inline]
 ext4_handle_error+0x71d/0x7f0 fs/ext4/super.c:734
 __ext4_error+0x2e5/0x3a0 fs/ext4/super.c:848
 ext4_init_orphan_info+0xa90/0xd30 fs/ext4/orphan.c:625
 __ext4_fill_super fs/ext4/super.c:5750 [inline]
 ext4_fill_super+0x86df/0xaea0 fs/ext4/super.c:5899
 get_tree_bdev_flags+0x392/0x630 fs/super.c:1821
 vfs_get_tree+0x92/0x320 fs/super.c:1881
 fc_mount fs/namespace.c:1282 [inline]
 do_new_mount_fc fs/namespace.c:3910 [inline]
 do_new_mount fs/namespace.c:3986 [inline]
 path_mount+0x7d0/0x2850 fs/namespace.c:4337
 do_mount fs/namespace.c:4350 [inline]
 __do_sys_mount fs/namespace.c:4563 [inline]
 __se_sys_mount fs/namespace.c:4540 [inline]
 __x64_sys_mount+0x293/0x310 fs/namespace.c:4540
 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
 do_syscall_64+0x123/0x7b0 arch/x86/entry/syscall_64.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

The buggy address belongs to the object at ffff888072f20000
 which belongs to the cache kmalloc-8k of size 8192
The buggy address is located 1288 bytes inside of
 freed 8192-byte region [ffff888072f20000, ffff888072f22000)

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x72f20
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 ffff88813ff11280 dead000000000100 dead000000000122
raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88813ff11280 dead000000000100 dead000000000122
head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000
head: 00fff00000000003 fffffffffffffe01 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 0xd28c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 9150, tgid 9150 (syz-executor), ts 440061681435
 set_page_owner include/linux/page_owner.h:33 [inline]
 post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1873
 prep_new_page mm/page_alloc.c:1881 [inline]
 get_page_from_freelist+0xdae/0x2c80 mm/page_alloc.c:3963
 __alloc_frozen_pages_noprof+0x2ad/0x31e0 mm/page_alloc.c:5505
 alloc_slab_page mm/slub.c:3384 [inline]
 allocate_slab mm/slub.c:3499 [inline]
 new_slab+0xb1/0x6d0 mm/slub.c:3550
 refill_objects+0xe3/0x410 mm/slub.c:7546
 refill_sheaf mm/slub.c:2917 [inline]
 __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4811
 alloc_from_pcs mm/slub.c:4887 [inline]
 slab_alloc_node mm/slub.c:5021 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kvmalloc_node_noprof+0x7b6/0x9b0 mm/slub.c:7143
 _kvmalloc_array_node_noprof include/linux/slab.h:1374 [inline]
 __ptr_ring_init_queue_alloc_noprof include/linux/ptr_ring.h:503 [inline]
 ptr_ring_init_noprof include/linux/ptr_ring.h:521 [inline]
 skb_array_init_noprof include/linux/skb_array.h:182 [inline]
 pfifo_fast_init+0x177/0x3b0 net/sched/sch_generic.c:956
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 mq_init_common+0x1f4/0x490 net/sched/sch_mq.c:91
 mq_init+0x26/0x60 net/sched/sch_mq.c:112
 qdisc_create_dflt+0x124/0x490 net/sched/sch_generic.c:1099
 attach_default_qdiscs net/sched/sch_generic.c:1281 [inline]
 dev_activate+0xaa9/0xce0 net/sched/sch_generic.c:1339
 __dev_open+0x490/0x8f0 net/core/dev.c:1771
 __dev_change_flags+0x596/0x850 net/core/dev.c:10026
 netif_change_flags+0x8d/0x160 net/core/dev.c:10091
page last free pid 9150 tgid 9150 ts 440054186149 stack trace:
 reset_page_owner include/linux/page_owner.h:26 [inline]
 __free_pages_prepare mm/page_alloc.c:1415 [inline]
 __free_frozen_pages+0x7b1/0x10f0 mm/page_alloc.c:2971
 qlink_free mm/kasan/quarantine.c:163 [inline]
 qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179
 kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286
 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:364
 kasan_slab_alloc include/linux/kasan.h:257 [inline]
 slab_post_alloc_hook mm/slub.c:4720 [inline]
 slab_alloc_node mm/slub.c:5033 [inline]
 __do_kmalloc_node mm/slub.c:5530 [inline]
 __kmalloc_noprof+0x2cc/0x840 mm/slub.c:5556
 _kmalloc_noprof include/linux/slab.h:995 [inline]
 _kzalloc_noprof include/linux/slab.h:1312 [inline]
 fib6_info_alloc+0x40/0x160 net/ipv6/ip6_fib.c:189
 ip6_route_info_create+0x14c/0xad0 net/ipv6/route.c:3833
 ip6_route_add+0x4b/0x1d0 net/ipv6/route.c:3962
 addrconf_prefix_route+0x2fb/0x510 net/ipv6/addrconf.c:2522
 inet6_addr_add+0x575/0x9a0 net/ipv6/addrconf.c:3095
 inet6_rtm_newaddr+0x147a/0x1bb0 net/ipv6/addrconf.c:5121
 rtnetlink_rcv_msg+0x95e/0xe90 net/core/rtnetlink.c:7169
 netlink_rcv_skb+0x159/0x420 net/netlink/af_netlink.c:2585
 netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline]
 netlink_unicast+0x668/0x950 net/netlink/af_netlink.c:1362
 netlink_sendmsg+0x9ac/0x10c0 net/netlink/af_netlink.c:1921
 sock_sendmsg_nosec net/socket.c:800 [inline]
 __sock_sendmsg net/socket.c:818 [inline]
 __sys_sendto+0x492/0x4e0 net/socket.c:2283

Memory state around the buggy address:
 ffff888072f20400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888072f20500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                      ^
 ffff888072f20580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff888072f20600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/20 18:00 upstream 65e4fd942f72 625aa117 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root KASAN: slab-use-after-free Read in ext4_discard_work
2026/11/19 22:48 linux-next e8017d29067f f836d119 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in ext4_discard_work
2026/11/19 22:43 linux-next e8017d29067f f836d119 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: slab-use-after-free Read in ext4_discard_work
* Struck through repros no longer work on HEAD.