Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.343533] ================================================================== [ 19.343606] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 19.343661] Write of size 1 at addr fff00000c641df00 by task kunit_try_catch/145 [ 19.343832] [ 19.343988] CPU: 1 UID: 0 PID: 145 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.345044] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.345097] Hardware name: linux,dummy-virt (DT) [ 19.345140] Call trace: [ 19.345178] show_stack+0x20/0x38 (C) [ 19.345253] dump_stack_lvl+0x8c/0xd0 [ 19.345310] print_report+0x118/0x608 [ 19.345357] kasan_report+0xdc/0x128 [ 19.345412] __asan_report_store1_noabort+0x20/0x30 [ 19.345463] kmalloc_big_oob_right+0x2a4/0x2f0 [ 19.345529] kunit_try_run_case+0x170/0x3f0 [ 19.345622] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.345674] kthread+0x328/0x630 [ 19.345733] ret_from_fork+0x10/0x20 [ 19.345780] [ 19.345816] Allocated by task 145: [ 19.345846] kasan_save_stack+0x3c/0x68 [ 19.345891] kasan_save_track+0x20/0x40 [ 19.345929] kasan_save_alloc_info+0x40/0x58 [ 19.345969] __kasan_kmalloc+0xd4/0xd8 [ 19.346005] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.346045] kmalloc_big_oob_right+0xb8/0x2f0 [ 19.346082] kunit_try_run_case+0x170/0x3f0 [ 19.346138] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.346305] kthread+0x328/0x630 [ 19.346347] ret_from_fork+0x10/0x20 [ 19.346493] [ 19.346531] The buggy address belongs to the object at fff00000c641c000 [ 19.346531] which belongs to the cache kmalloc-8k of size 8192 [ 19.346606] The buggy address is located 0 bytes to the right of [ 19.346606] allocated 7936-byte region [fff00000c641c000, fff00000c641df00) [ 19.346797] [ 19.346818] The buggy address belongs to the physical page: [ 19.346849] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106418 [ 19.346972] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.347072] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.347220] page_type: f5(slab) [ 19.347260] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 19.347315] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 19.347582] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 19.347647] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 19.347696] head: 0bfffe0000000003 ffffc1ffc3190601 00000000ffffffff 00000000ffffffff [ 19.347826] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 19.347952] page dumped because: kasan: bad access detected [ 19.347983] [ 19.348083] Memory state around the buggy address: [ 19.348116] fff00000c641de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.348163] fff00000c641de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.348206] >fff00000c641df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.348243] ^ [ 19.348318] fff00000c641df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.348359] fff00000c641e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.348416] ==================================================================
[ 12.080617] ================================================================== [ 12.081760] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.082035] Write of size 1 at addr ffff888102ba5f00 by task kunit_try_catch/161 [ 12.082250] [ 12.082346] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.082394] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.082406] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.082428] Call Trace: [ 12.082442] <TASK> [ 12.082461] dump_stack_lvl+0x73/0xb0 [ 12.082493] print_report+0xd1/0x650 [ 12.082528] ? __virt_addr_valid+0x1db/0x2d0 [ 12.082552] ? kmalloc_big_oob_right+0x316/0x370 [ 12.082574] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.082597] ? kmalloc_big_oob_right+0x316/0x370 [ 12.082619] kasan_report+0x141/0x180 [ 12.082640] ? kmalloc_big_oob_right+0x316/0x370 [ 12.082666] __asan_report_store1_noabort+0x1b/0x30 [ 12.082691] kmalloc_big_oob_right+0x316/0x370 [ 12.082721] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.082744] ? __schedule+0x10cc/0x2b60 [ 12.082766] ? __pfx_read_tsc+0x10/0x10 [ 12.082787] ? ktime_get_ts64+0x86/0x230 [ 12.082813] kunit_try_run_case+0x1a5/0x480 [ 12.082839] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.082861] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.082886] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.082910] ? __kthread_parkme+0x82/0x180 [ 12.082942] ? preempt_count_sub+0x50/0x80 [ 12.082967] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.082991] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.083015] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.083040] kthread+0x337/0x6f0 [ 12.083058] ? trace_preempt_on+0x20/0xc0 [ 12.083082] ? __pfx_kthread+0x10/0x10 [ 12.083104] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.083510] ? calculate_sigpending+0x7b/0xa0 [ 12.083538] ? __pfx_kthread+0x10/0x10 [ 12.083560] ret_from_fork+0x116/0x1d0 [ 12.083579] ? __pfx_kthread+0x10/0x10 [ 12.083599] ret_from_fork_asm+0x1a/0x30 [ 12.083631] </TASK> [ 12.083643] [ 12.099653] Allocated by task 161: [ 12.100067] kasan_save_stack+0x45/0x70 [ 12.100402] kasan_save_track+0x18/0x40 [ 12.100537] kasan_save_alloc_info+0x3b/0x50 [ 12.100684] __kasan_kmalloc+0xb7/0xc0 [ 12.100814] __kmalloc_cache_noprof+0x189/0x420 [ 12.101203] kmalloc_big_oob_right+0xa9/0x370 [ 12.101647] kunit_try_run_case+0x1a5/0x480 [ 12.102042] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.102592] kthread+0x337/0x6f0 [ 12.102902] ret_from_fork+0x116/0x1d0 [ 12.103304] ret_from_fork_asm+0x1a/0x30 [ 12.103761] [ 12.103946] The buggy address belongs to the object at ffff888102ba4000 [ 12.103946] which belongs to the cache kmalloc-8k of size 8192 [ 12.105173] The buggy address is located 0 bytes to the right of [ 12.105173] allocated 7936-byte region [ffff888102ba4000, ffff888102ba5f00) [ 12.105991] [ 12.106225] The buggy address belongs to the physical page: [ 12.106763] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ba0 [ 12.107465] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.107700] flags: 0x200000000000040(head|node=0|zone=2) [ 12.107885] page_type: f5(slab) [ 12.108142] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.108523] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.109240] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.109627] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.110293] head: 0200000000000003 ffffea00040ae801 00000000ffffffff 00000000ffffffff [ 12.110619] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.111150] page dumped because: kasan: bad access detected [ 12.111779] [ 12.112046] Memory state around the buggy address: [ 12.112368] ffff888102ba5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.112682] ffff888102ba5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.113203] >ffff888102ba5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.113900] ^ [ 12.114608] ffff888102ba5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.114941] ffff888102ba6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.115233] ==================================================================