Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.778372] ================================================================== [ 17.778443] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 17.778571] Write of size 1 at addr fff00000c642df00 by task kunit_try_catch/144 [ 17.778625] [ 17.778733] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.778828] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.778893] Hardware name: linux,dummy-virt (DT) [ 17.779148] Call trace: [ 17.779180] show_stack+0x20/0x38 (C) [ 17.779232] dump_stack_lvl+0x8c/0xd0 [ 17.779664] print_report+0x118/0x608 [ 17.779817] kasan_report+0xdc/0x128 [ 17.779943] __asan_report_store1_noabort+0x20/0x30 [ 17.780094] kmalloc_big_oob_right+0x2a4/0x2f0 [ 17.780249] kunit_try_run_case+0x170/0x3f0 [ 17.780415] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.780506] kthread+0x328/0x630 [ 17.780688] ret_from_fork+0x10/0x20 [ 17.780914] [ 17.781046] Allocated by task 144: [ 17.781131] kasan_save_stack+0x3c/0x68 [ 17.781579] kasan_save_track+0x20/0x40 [ 17.781782] kasan_save_alloc_info+0x40/0x58 [ 17.781877] __kasan_kmalloc+0xd4/0xd8 [ 17.782230] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.782614] kmalloc_big_oob_right+0xb8/0x2f0 [ 17.782730] kunit_try_run_case+0x170/0x3f0 [ 17.782776] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.783287] kthread+0x328/0x630 [ 17.784240] ret_from_fork+0x10/0x20 [ 17.784332] [ 17.784372] The buggy address belongs to the object at fff00000c642c000 [ 17.784372] which belongs to the cache kmalloc-8k of size 8192 [ 17.784429] The buggy address is located 0 bytes to the right of [ 17.784429] allocated 7936-byte region [fff00000c642c000, fff00000c642df00) [ 17.784491] [ 17.784886] The buggy address belongs to the physical page: [ 17.784949] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106428 [ 17.785141] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.785219] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.785573] page_type: f5(slab) [ 17.785738] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 17.786104] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 17.786181] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 17.786394] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 17.786468] head: 0bfffe0000000003 ffffc1ffc3190a01 00000000ffffffff 00000000ffffffff [ 17.786629] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 17.786839] page dumped because: kasan: bad access detected [ 17.786964] [ 17.787144] Memory state around the buggy address: [ 17.787364] fff00000c642de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.787569] fff00000c642de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.787644] >fff00000c642df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.788048] ^ [ 17.788241] fff00000c642df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.788306] fff00000c642e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.788581] ==================================================================
[ 11.300064] ================================================================== [ 11.300972] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 11.301252] Write of size 1 at addr ffff888102a9df00 by task kunit_try_catch/161 [ 11.301993] [ 11.302177] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.302236] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.302248] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.302270] Call Trace: [ 11.302284] <TASK> [ 11.302303] dump_stack_lvl+0x73/0xb0 [ 11.302334] print_report+0xd1/0x650 [ 11.302356] ? __virt_addr_valid+0x1db/0x2d0 [ 11.302378] ? kmalloc_big_oob_right+0x316/0x370 [ 11.302399] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.302462] ? kmalloc_big_oob_right+0x316/0x370 [ 11.302485] kasan_report+0x141/0x180 [ 11.302505] ? kmalloc_big_oob_right+0x316/0x370 [ 11.302530] __asan_report_store1_noabort+0x1b/0x30 [ 11.302549] kmalloc_big_oob_right+0x316/0x370 [ 11.302570] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 11.302591] ? __schedule+0x10cc/0x2b60 [ 11.302613] ? __pfx_read_tsc+0x10/0x10 [ 11.302634] ? ktime_get_ts64+0x86/0x230 [ 11.302658] kunit_try_run_case+0x1a5/0x480 [ 11.302683] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.302703] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.302726] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.302746] ? __kthread_parkme+0x82/0x180 [ 11.302766] ? preempt_count_sub+0x50/0x80 [ 11.302788] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.302809] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.302830] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.302851] kthread+0x337/0x6f0 [ 11.302869] ? trace_preempt_on+0x20/0xc0 [ 11.302891] ? __pfx_kthread+0x10/0x10 [ 11.302910] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.302930] ? calculate_sigpending+0x7b/0xa0 [ 11.302953] ? __pfx_kthread+0x10/0x10 [ 11.302973] ret_from_fork+0x116/0x1d0 [ 11.302989] ? __pfx_kthread+0x10/0x10 [ 11.303008] ret_from_fork_asm+0x1a/0x30 [ 11.303038] </TASK> [ 11.303048] [ 11.311748] Allocated by task 161: [ 11.311918] kasan_save_stack+0x45/0x70 [ 11.312118] kasan_save_track+0x18/0x40 [ 11.312505] kasan_save_alloc_info+0x3b/0x50 [ 11.312906] __kasan_kmalloc+0xb7/0xc0 [ 11.313106] __kmalloc_cache_noprof+0x189/0x420 [ 11.313585] kmalloc_big_oob_right+0xa9/0x370 [ 11.313926] kunit_try_run_case+0x1a5/0x480 [ 11.314075] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.314520] kthread+0x337/0x6f0 [ 11.314649] ret_from_fork+0x116/0x1d0 [ 11.314781] ret_from_fork_asm+0x1a/0x30 [ 11.314918] [ 11.314991] The buggy address belongs to the object at ffff888102a9c000 [ 11.314991] which belongs to the cache kmalloc-8k of size 8192 [ 11.316054] The buggy address is located 0 bytes to the right of [ 11.316054] allocated 7936-byte region [ffff888102a9c000, ffff888102a9df00) [ 11.316709] [ 11.316818] The buggy address belongs to the physical page: [ 11.317060] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a98 [ 11.318152] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.318535] flags: 0x200000000000040(head|node=0|zone=2) [ 11.319210] page_type: f5(slab) [ 11.319636] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.320144] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.320893] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.321525] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.321844] head: 0200000000000003 ffffea00040aa601 00000000ffffffff 00000000ffffffff [ 11.322167] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.322906] page dumped because: kasan: bad access detected [ 11.323394] [ 11.323492] Memory state around the buggy address: [ 11.323712] ffff888102a9de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.324010] ffff888102a9de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.324818] >ffff888102a9df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.325471] ^ [ 11.325873] ffff888102a9df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.326175] ffff888102a9e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.327065] ==================================================================