Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.312197] ================================================================== [ 29.312256] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.312306] Write of size 1 at addr fff00000c64a5f00 by task kunit_try_catch/175 [ 29.312356] [ 29.312385] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 29.312470] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.312495] Hardware name: linux,dummy-virt (DT) [ 29.312525] Call trace: [ 29.312584] show_stack+0x20/0x38 (C) [ 29.312649] dump_stack_lvl+0x8c/0xd0 [ 29.312928] print_report+0x118/0x5d0 [ 29.312972] kasan_report+0xdc/0x128 [ 29.313032] __asan_report_store1_noabort+0x20/0x30 [ 29.313088] kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.313167] kunit_try_run_case+0x170/0x3f0 [ 29.313234] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.313287] kthread+0x328/0x630 [ 29.313343] ret_from_fork+0x10/0x20 [ 29.313389] [ 29.313407] Allocated by task 175: [ 29.313433] kasan_save_stack+0x3c/0x68 [ 29.313474] kasan_save_track+0x20/0x40 [ 29.313636] kasan_save_alloc_info+0x40/0x58 [ 29.313679] __kasan_kmalloc+0xd4/0xd8 [ 29.313771] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.313847] kmalloc_big_oob_right+0xb8/0x2f0 [ 29.313905] kunit_try_run_case+0x170/0x3f0 [ 29.313962] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.314006] kthread+0x328/0x630 [ 29.314057] ret_from_fork+0x10/0x20 [ 29.314092] [ 29.314110] The buggy address belongs to the object at fff00000c64a4000 [ 29.314110] which belongs to the cache kmalloc-8k of size 8192 [ 29.314197] The buggy address is located 0 bytes to the right of [ 29.314197] allocated 7936-byte region [fff00000c64a4000, fff00000c64a5f00) [ 29.314282] [ 29.314321] The buggy address belongs to the physical page: [ 29.314368] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064a0 [ 29.314420] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.314663] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.314728] page_type: f5(slab) [ 29.314783] raw: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122 [ 29.314870] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.314981] head: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122 [ 29.315074] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.315156] head: 0bfffe0000000003 ffffc1ffc3192801 00000000ffffffff 00000000ffffffff [ 29.315277] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 29.315329] page dumped because: kasan: bad access detected [ 29.315359] [ 29.315377] Memory state around the buggy address: [ 29.315434] fff00000c64a5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.315477] fff00000c64a5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.315522] >fff00000c64a5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.315560] ^ [ 29.315586] fff00000c64a5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.315627] fff00000c64a6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.315664] ==================================================================
[ 24.514944] ================================================================== [ 24.515474] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 24.516406] Write of size 1 at addr ffff888102b95f00 by task kunit_try_catch/192 [ 24.517199] [ 24.517448] CPU: 1 UID: 0 PID: 192 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 24.517517] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.517530] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.517552] Call Trace: [ 24.517610] <TASK> [ 24.517631] dump_stack_lvl+0x73/0xb0 [ 24.517665] print_report+0xd1/0x610 [ 24.517709] ? __virt_addr_valid+0x1db/0x2d0 [ 24.517736] ? kmalloc_big_oob_right+0x316/0x370 [ 24.517758] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.517803] ? kmalloc_big_oob_right+0x316/0x370 [ 24.517827] kasan_report+0x141/0x180 [ 24.517848] ? kmalloc_big_oob_right+0x316/0x370 [ 24.517874] __asan_report_store1_noabort+0x1b/0x30 [ 24.517898] kmalloc_big_oob_right+0x316/0x370 [ 24.517920] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 24.517943] ? __schedule+0x10cc/0x2b60 [ 24.517967] ? __pfx_read_tsc+0x10/0x10 [ 24.517989] ? ktime_get_ts64+0x86/0x230 [ 24.518016] kunit_try_run_case+0x1a5/0x480 [ 24.518039] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.518059] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.518082] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.518105] ? __kthread_parkme+0x82/0x180 [ 24.518126] ? preempt_count_sub+0x50/0x80 [ 24.518149] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.518170] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.518195] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.518220] kthread+0x337/0x6f0 [ 24.518239] ? trace_preempt_on+0x20/0xc0 [ 24.518263] ? __pfx_kthread+0x10/0x10 [ 24.518283] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.518304] ? calculate_sigpending+0x7b/0xa0 [ 24.518329] ? __pfx_kthread+0x10/0x10 [ 24.518350] ret_from_fork+0x116/0x1d0 [ 24.518369] ? __pfx_kthread+0x10/0x10 [ 24.518389] ret_from_fork_asm+0x1a/0x30 [ 24.518421] </TASK> [ 24.518433] [ 24.530390] Allocated by task 192: [ 24.530650] kasan_save_stack+0x45/0x70 [ 24.530990] kasan_save_track+0x18/0x40 [ 24.531134] kasan_save_alloc_info+0x3b/0x50 [ 24.531280] __kasan_kmalloc+0xb7/0xc0 [ 24.531407] __kmalloc_cache_noprof+0x189/0x420 [ 24.531573] kmalloc_big_oob_right+0xa9/0x370 [ 24.531730] kunit_try_run_case+0x1a5/0x480 [ 24.531873] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.532101] kthread+0x337/0x6f0 [ 24.532262] ret_from_fork+0x116/0x1d0 [ 24.532440] ret_from_fork_asm+0x1a/0x30 [ 24.532617] [ 24.532711] The buggy address belongs to the object at ffff888102b94000 [ 24.532711] which belongs to the cache kmalloc-8k of size 8192 [ 24.533168] The buggy address is located 0 bytes to the right of [ 24.533168] allocated 7936-byte region [ffff888102b94000, ffff888102b95f00) [ 24.533868] [ 24.533971] The buggy address belongs to the physical page: [ 24.534242] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b90 [ 24.534621] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.534945] flags: 0x200000000000040(head|node=0|zone=2) [ 24.535204] page_type: f5(slab) [ 24.535449] raw: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 [ 24.535782] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.536095] head: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 [ 24.536460] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.536879] head: 0200000000000003 ffffea00040ae401 00000000ffffffff 00000000ffffffff [ 24.537135] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.537526] page dumped because: kasan: bad access detected [ 24.537867] [ 24.537977] Memory state around the buggy address: [ 24.538171] ffff888102b95e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.538533] ffff888102b95e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.538912] >ffff888102b95f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.539234] ^ [ 24.539394] ffff888102b95f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.539749] ffff888102b96000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.540081] ==================================================================