Date
July 16, 2025, 12:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.365391] ================================================================== [ 30.365478] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 30.365544] Write of size 1 at addr fff00000c6465f00 by task kunit_try_catch/175 [ 30.365592] [ 30.365620] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT [ 30.365704] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.365730] Hardware name: linux,dummy-virt (DT) [ 30.365760] Call trace: [ 30.365781] show_stack+0x20/0x38 (C) [ 30.365987] dump_stack_lvl+0x8c/0xd0 [ 30.366036] print_report+0x118/0x5d0 [ 30.366112] kasan_report+0xdc/0x128 [ 30.366176] __asan_report_store1_noabort+0x20/0x30 [ 30.366243] kmalloc_big_oob_right+0x2a4/0x2f0 [ 30.366309] kunit_try_run_case+0x170/0x3f0 [ 30.366354] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.366436] kthread+0x328/0x630 [ 30.366502] ret_from_fork+0x10/0x20 [ 30.366559] [ 30.366576] Allocated by task 175: [ 30.366603] kasan_save_stack+0x3c/0x68 [ 30.366641] kasan_save_track+0x20/0x40 [ 30.366676] kasan_save_alloc_info+0x40/0x58 [ 30.366811] __kasan_kmalloc+0xd4/0xd8 [ 30.366917] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.366977] kmalloc_big_oob_right+0xb8/0x2f0 [ 30.367073] kunit_try_run_case+0x170/0x3f0 [ 30.367109] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.367171] kthread+0x328/0x630 [ 30.367229] ret_from_fork+0x10/0x20 [ 30.367265] [ 30.367283] The buggy address belongs to the object at fff00000c6464000 [ 30.367283] which belongs to the cache kmalloc-8k of size 8192 [ 30.367387] The buggy address is located 0 bytes to the right of [ 30.367387] allocated 7936-byte region [fff00000c6464000, fff00000c6465f00) [ 30.367490] [ 30.367540] The buggy address belongs to the physical page: [ 30.367590] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106460 [ 30.367647] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 30.367693] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 30.367743] page_type: f5(slab) [ 30.367810] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 30.367907] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 30.367968] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 30.368015] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 30.368082] head: 0bfffe0000000003 ffffc1ffc3191801 00000000ffffffff 00000000ffffffff [ 30.368130] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 30.368169] page dumped because: kasan: bad access detected [ 30.368200] [ 30.368217] Memory state around the buggy address: [ 30.368248] fff00000c6465e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.368311] fff00000c6465e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.368353] >fff00000c6465f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.368524] ^ [ 30.368552] fff00000c6465f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.368634] fff00000c6466000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.368735] ==================================================================
[ 22.732692] ================================================================== [ 22.733227] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 22.733483] Write of size 1 at addr ffff8881060d1f00 by task kunit_try_catch/193 [ 22.734181] [ 22.734500] CPU: 0 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) [ 22.734569] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.734581] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.734603] Call Trace: [ 22.734615] <TASK> [ 22.734633] dump_stack_lvl+0x73/0xb0 [ 22.734664] print_report+0xd1/0x610 [ 22.734686] ? __virt_addr_valid+0x1db/0x2d0 [ 22.734710] ? kmalloc_big_oob_right+0x316/0x370 [ 22.734741] ? kasan_complete_mode_report_info+0x2a/0x200 [ 22.734766] ? kmalloc_big_oob_right+0x316/0x370 [ 22.734787] kasan_report+0x141/0x180 [ 22.734819] ? kmalloc_big_oob_right+0x316/0x370 [ 22.734844] __asan_report_store1_noabort+0x1b/0x30 [ 22.734868] kmalloc_big_oob_right+0x316/0x370 [ 22.734934] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 22.734957] ? __schedule+0x10c6/0x2b60 [ 22.734981] ? __pfx_read_tsc+0x10/0x10 [ 22.735003] ? ktime_get_ts64+0x86/0x230 [ 22.735029] kunit_try_run_case+0x1a5/0x480 [ 22.735053] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.735074] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.735096] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.735119] ? __kthread_parkme+0x82/0x180 [ 22.735139] ? preempt_count_sub+0x50/0x80 [ 22.735162] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.735185] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.735211] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.735236] kthread+0x337/0x6f0 [ 22.735255] ? trace_preempt_on+0x20/0xc0 [ 22.735290] ? __pfx_kthread+0x10/0x10 [ 22.735310] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.735330] ? calculate_sigpending+0x7b/0xa0 [ 22.735354] ? __pfx_kthread+0x10/0x10 [ 22.735374] ret_from_fork+0x116/0x1d0 [ 22.735393] ? __pfx_kthread+0x10/0x10 [ 22.735413] ret_from_fork_asm+0x1a/0x30 [ 22.735443] </TASK> [ 22.735453] [ 22.747390] Allocated by task 193: [ 22.747764] kasan_save_stack+0x45/0x70 [ 22.748184] kasan_save_track+0x18/0x40 [ 22.748687] kasan_save_alloc_info+0x3b/0x50 [ 22.748841] __kasan_kmalloc+0xb7/0xc0 [ 22.749270] __kmalloc_cache_noprof+0x189/0x420 [ 22.749714] kmalloc_big_oob_right+0xa9/0x370 [ 22.750147] kunit_try_run_case+0x1a5/0x480 [ 22.750308] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.750479] kthread+0x337/0x6f0 [ 22.750691] ret_from_fork+0x116/0x1d0 [ 22.751036] ret_from_fork_asm+0x1a/0x30 [ 22.751446] [ 22.751625] The buggy address belongs to the object at ffff8881060d0000 [ 22.751625] which belongs to the cache kmalloc-8k of size 8192 [ 22.752802] The buggy address is located 0 bytes to the right of [ 22.752802] allocated 7936-byte region [ffff8881060d0000, ffff8881060d1f00) [ 22.753841] [ 22.754005] The buggy address belongs to the physical page: [ 22.754501] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1060d0 [ 22.755068] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 22.755320] flags: 0x200000000000040(head|node=0|zone=2) [ 22.755552] page_type: f5(slab) [ 22.755721] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 22.756109] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 22.756598] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 22.756963] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 22.757312] head: 0200000000000003 ffffea0004183401 00000000ffffffff 00000000ffffffff [ 22.757643] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 22.758126] page dumped because: kasan: bad access detected [ 22.758384] [ 22.758453] Memory state around the buggy address: [ 22.758642] ffff8881060d1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.759025] ffff8881060d1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 22.759567] >ffff8881060d1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.759869] ^ [ 22.760091] ffff8881060d1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.760441] ffff8881060d2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.760782] ==================================================================