Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.310080] ================================================================== [ 29.310152] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.310227] Write of size 1 at addr fff00000c9ad1f00 by task kunit_try_catch/175 [ 29.310299] [ 29.310345] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 29.310433] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.310476] Hardware name: linux,dummy-virt (DT) [ 29.310522] Call trace: [ 29.310570] show_stack+0x20/0x38 (C) [ 29.310644] dump_stack_lvl+0x8c/0xd0 [ 29.310722] print_report+0x118/0x5d0 [ 29.310791] kasan_report+0xdc/0x128 [ 29.310835] __asan_report_store1_noabort+0x20/0x30 [ 29.311128] kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.311188] kunit_try_run_case+0x170/0x3f0 [ 29.311251] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.311301] kthread+0x328/0x630 [ 29.311342] ret_from_fork+0x10/0x20 [ 29.311394] [ 29.311431] Allocated by task 175: [ 29.311460] kasan_save_stack+0x3c/0x68 [ 29.311497] kasan_save_track+0x20/0x40 [ 29.311532] kasan_save_alloc_info+0x40/0x58 [ 29.311723] __kasan_kmalloc+0xd4/0xd8 [ 29.311760] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.311818] kmalloc_big_oob_right+0xb8/0x2f0 [ 29.311897] kunit_try_run_case+0x170/0x3f0 [ 29.311933] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.311974] kthread+0x328/0x630 [ 29.312022] ret_from_fork+0x10/0x20 [ 29.312067] [ 29.312085] The buggy address belongs to the object at fff00000c9ad0000 [ 29.312085] which belongs to the cache kmalloc-8k of size 8192 [ 29.312139] The buggy address is located 0 bytes to the right of [ 29.312139] allocated 7936-byte region [fff00000c9ad0000, fff00000c9ad1f00) [ 29.312198] [ 29.312219] The buggy address belongs to the physical page: [ 29.312266] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ad0 [ 29.312315] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.312359] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.312421] page_type: f5(slab) [ 29.312476] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 29.312607] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.312689] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 29.312804] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.312909] head: 0bfffe0000000003 ffffc1ffc326b401 00000000ffffffff 00000000ffffffff [ 29.312993] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 29.313043] page dumped because: kasan: bad access detected [ 29.313081] [ 29.313099] Memory state around the buggy address: [ 29.313128] fff00000c9ad1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.313295] fff00000c9ad1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.313336] >fff00000c9ad1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.313371] ^ [ 29.313405] fff00000c9ad1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.313444] fff00000c9ad2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.313518] ==================================================================
[ 25.154208] ================================================================== [ 25.155709] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 25.156792] Write of size 1 at addr ffff888102b4df00 by task kunit_try_catch/193 [ 25.157720] [ 25.158025] CPU: 1 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 25.158095] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.158107] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.158127] Call Trace: [ 25.158140] <TASK> [ 25.158156] dump_stack_lvl+0x73/0xb0 [ 25.158189] print_report+0xd1/0x610 [ 25.158209] ? __virt_addr_valid+0x1db/0x2d0 [ 25.158232] ? kmalloc_big_oob_right+0x316/0x370 [ 25.158253] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.158421] ? kmalloc_big_oob_right+0x316/0x370 [ 25.158445] kasan_report+0x141/0x180 [ 25.158468] ? kmalloc_big_oob_right+0x316/0x370 [ 25.158495] __asan_report_store1_noabort+0x1b/0x30 [ 25.158518] kmalloc_big_oob_right+0x316/0x370 [ 25.158571] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 25.158594] ? __schedule+0x10c6/0x2b60 [ 25.158618] ? __pfx_read_tsc+0x10/0x10 [ 25.158638] ? ktime_get_ts64+0x86/0x230 [ 25.158683] kunit_try_run_case+0x1a5/0x480 [ 25.158719] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.158740] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.158762] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.158784] ? __kthread_parkme+0x82/0x180 [ 25.158808] ? preempt_count_sub+0x50/0x80 [ 25.158831] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.158853] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.158875] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.158897] kthread+0x337/0x6f0 [ 25.158915] ? trace_preempt_on+0x20/0xc0 [ 25.158938] ? __pfx_kthread+0x10/0x10 [ 25.158957] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.158977] ? calculate_sigpending+0x7b/0xa0 [ 25.159000] ? __pfx_kthread+0x10/0x10 [ 25.159021] ret_from_fork+0x116/0x1d0 [ 25.159038] ? __pfx_kthread+0x10/0x10 [ 25.159057] ret_from_fork_asm+0x1a/0x30 [ 25.159098] </TASK> [ 25.159108] [ 25.170046] Allocated by task 193: [ 25.170552] kasan_save_stack+0x45/0x70 [ 25.170934] kasan_save_track+0x18/0x40 [ 25.171299] kasan_save_alloc_info+0x3b/0x50 [ 25.171705] __kasan_kmalloc+0xb7/0xc0 [ 25.172047] __kmalloc_cache_noprof+0x189/0x420 [ 25.172557] kmalloc_big_oob_right+0xa9/0x370 [ 25.172948] kunit_try_run_case+0x1a5/0x480 [ 25.173377] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.173867] kthread+0x337/0x6f0 [ 25.174185] ret_from_fork+0x116/0x1d0 [ 25.174617] ret_from_fork_asm+0x1a/0x30 [ 25.174997] [ 25.175179] The buggy address belongs to the object at ffff888102b4c000 [ 25.175179] which belongs to the cache kmalloc-8k of size 8192 [ 25.176355] The buggy address is located 0 bytes to the right of [ 25.176355] allocated 7936-byte region [ffff888102b4c000, ffff888102b4df00) [ 25.177628] [ 25.177819] The buggy address belongs to the physical page: [ 25.178351] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b48 [ 25.179060] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 25.179813] flags: 0x200000000000040(head|node=0|zone=2) [ 25.180297] page_type: f5(slab) [ 25.180418] raw: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 [ 25.180640] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 25.180864] head: 0200000000000040 ffff888100042280 dead000000000100 dead000000000122 [ 25.181097] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 25.181320] head: 0200000000000003 ffffea00040ad201 00000000ffffffff 00000000ffffffff [ 25.181544] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 25.181765] page dumped because: kasan: bad access detected [ 25.181939] [ 25.182002] Memory state around the buggy address: [ 25.182430] ffff888102b4de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.183101] ffff888102b4de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.183929] >ffff888102b4df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.184780] ^ [ 25.185098] ffff888102b4df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.185818] ffff888102b4e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.186506] ==================================================================