EXT4-fs (loop3): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: writeback. BUG: spinlock (null) on CPU#-1950675520, x/-1 ================================================================== BUG: KASAN: stack-out-of-bounds in vprintk_store+0x103/0x1160 kernel/printk/printk.c:2194 Write of size 32 at addr ffffc900043c7700 by task syz.3.8/5340 CPU: 1 UID: 0 PID: 5340 Comm: syz.3.8 Not tainted 6.11.0-rc4-next-20240820-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 kasan_check_range+0x282/0x290 mm/kasan/generic.c:189 __asan_memset+0x23/0x50 mm/kasan/shadow.c:84 vprintk_store+0x103/0x1160 kernel/printk/printk.c:2194 vprintk_emit+0x1e0/0x7c0 kernel/printk/printk.c:2329 _printk+0xd5/0x120 kernel/printk/printk.c:2373 __report_bug lib/bug.c:195 [inline] report_bug+0x346/0x500 lib/bug.c:219 handle_bug+0x60/0x90 arch/x86/kernel/traps.c:285 exc_invalid_op+0x1a/0x50 arch/x86/kernel/traps.c:309 asm_exc_invalid_op+0x1a/0x20 arch/x86/include/asm/idtentry.h:621 RIP: e300:lockdep_hardirqs_on_prepare+0x497/0x780 Code: 00 00 65 48 8b 04 25 28 00 00 00 48 3b 44 24 60 0f 85 ab 02 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 90 <0f> 0b 90 48 c7 c7 40 ce 0a 8c e8 ea a1 4b 0a 48 ba 00 00 00 00 00 RSP: 0018:ffffc900043c7ba0 EFLAGS: 00010097 RAX: 0000000000000000 RBX: ffffffffffffffff RCX: 1ffff92000878f34 RDX: dffffc0000000000 RSI: 00000000000000ee RDI: 00000000000000ef RBP: 1ffff92000878f78 R08: ffffffff81324838 R09: 1ffff110045e9000 R10: dffffc0000000000 R11: ffffed10045e9001 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 1ffff92000878f78 The buggy address belongs to stack of task syz.3.8/5340 and is located at offset 128 in frame: vprintk_store+0x0/0x1160 This frame has 8 objects: [32, 40) 'flags.i.i.i257' [64, 72) 'flags.i.i.i256' [96, 104) 'flags.i.i.i' [128, 160) 'e' [192, 196) 'flags' [208, 232) 'r' [272, 280) 'prefix_buf' [304, 328) 'args2' The buggy address belongs to the virtual mapping at [ffffc900043c0000, ffffc900043c9000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2206 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802e8a7a80 pfn:0x2e8a7 memcg:ffff88801f74a402 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88802e8a7a80 0000000000000000 00000001ffffffff ffff88801f74a402 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 5330, tgid 5330 (syz.3.6), ts 66477630305, free_ts 66052987407 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1517 prep_new_page mm/page_alloc.c:1525 [inline] get_page_from_freelist+0x3004/0x30c0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x29e/0x780 mm/page_alloc.c:4743 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3600 [inline] __vmalloc_area_node mm/vmalloc.c:3669 [inline] __vmalloc_node_range_noprof+0xa40/0x1400 mm/vmalloc.c:3850 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d50 kernel/fork.c:2206 kernel_clone+0x226/0x8f0 kernel/fork.c:2787 __do_sys_clone3 kernel/fork.c:3091 [inline] __se_sys_clone3+0x2cb/0x350 kernel/fork.c:3070 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5240 tgid 5240 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1098 [inline] free_unref_page+0xc07/0xd90 mm/page_alloc.c:2651 __slab_free+0x31b/0x3d0 mm/slub.c:4432 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4036 [inline] slab_alloc_node mm/slub.c:4085 [inline] __do_kmalloc_node mm/slub.c:4205 [inline] __kmalloc_node_noprof+0x1d2/0x440 mm/slub.c:4212 kmalloc_node_noprof include/linux/slab.h:708 [inline] qdisc_alloc+0x97/0xa80 net/sched/sch_generic.c:946 qdisc_create_dflt+0x62/0x4b0 net/sched/sch_generic.c:1008 attach_one_default_qdisc net/sched/sch_generic.c:1174 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2481 [inline] attach_default_qdiscs net/sched/sch_generic.c:1192 [inline] dev_activate+0x3c0/0x1240 net/sched/sch_generic.c:1251 __dev_open+0x352/0x450 net/core/dev.c:1483 __dev_change_flags+0x1e2/0x6f0 net/core/dev.c:8838 dev_change_flags+0x8b/0x1a0 net/core/dev.c:8910 do_setlink+0xcd0/0x41f0 net/core/rtnetlink.c:2900 __rtnl_newlink net/core/rtnetlink.c:3696 [inline] rtnl_newlink+0x180d/0x20a0 net/core/rtnetlink.c:3743 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6647 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550 Memory state around the buggy address: ffffc900043c7600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900043c7680: f1 f1 f1 f1 00 f2 f2 f2 00 f2 f2 f2 00 f2 f2 f2 >ffffc900043c7700: 00 f2 f2 f2 f2 f2 f2 f2 04 f2 00 00 00 f2 f2 f2 ^ ffffc900043c7780: f2 f2 00 f2 f2 f2 00 00 00 f3 f3 f3 f3 f3 f3 f3 ffffc900043c7800: f2 f2 00 00 00 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 ==================================================================