==================================================================
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:
__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
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:
__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
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:
__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
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:
__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
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:
__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
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
==================================================================