Date
July 8, 2025, 7:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.020199] ================================================================== [ 19.020260] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 19.020768] Write of size 1 at addr fff00000c7801f00 by task kunit_try_catch/144 [ 19.020837] [ 19.020871] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.021045] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.021073] Hardware name: linux,dummy-virt (DT) [ 19.021103] Call trace: [ 19.021125] show_stack+0x20/0x38 (C) [ 19.021173] dump_stack_lvl+0x8c/0xd0 [ 19.021216] print_report+0x118/0x608 [ 19.021259] kasan_report+0xdc/0x128 [ 19.021761] __asan_report_store1_noabort+0x20/0x30 [ 19.021915] kmalloc_big_oob_right+0x2a4/0x2f0 [ 19.021967] kunit_try_run_case+0x170/0x3f0 [ 19.022012] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.022063] kthread+0x328/0x630 [ 19.022402] ret_from_fork+0x10/0x20 [ 19.022471] [ 19.022655] Allocated by task 144: [ 19.022691] kasan_save_stack+0x3c/0x68 [ 19.022748] kasan_save_track+0x20/0x40 [ 19.022784] kasan_save_alloc_info+0x40/0x58 [ 19.022821] __kasan_kmalloc+0xd4/0xd8 [ 19.022856] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.022893] kmalloc_big_oob_right+0xb8/0x2f0 [ 19.022928] kunit_try_run_case+0x170/0x3f0 [ 19.022965] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.023007] kthread+0x328/0x630 [ 19.023455] ret_from_fork+0x10/0x20 [ 19.023684] [ 19.023850] The buggy address belongs to the object at fff00000c7800000 [ 19.023850] which belongs to the cache kmalloc-8k of size 8192 [ 19.023941] The buggy address is located 0 bytes to the right of [ 19.023941] allocated 7936-byte region [fff00000c7800000, fff00000c7801f00) [ 19.024152] [ 19.024183] The buggy address belongs to the physical page: [ 19.024299] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107800 [ 19.024481] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.024896] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 19.025026] page_type: f5(slab) [ 19.025137] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 19.025527] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 19.025687] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 19.025813] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 19.025929] head: 0bfffe0000000003 ffffc1ffc31e0001 00000000ffffffff 00000000ffffffff [ 19.026026] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 19.026170] page dumped because: kasan: bad access detected [ 19.026237] [ 19.026255] Memory state around the buggy address: [ 19.026294] fff00000c7801e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.026664] fff00000c7801e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.026771] >fff00000c7801f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.026831] ^ [ 19.026859] fff00000c7801f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.026917] fff00000c7802000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.026959] ==================================================================
[ 12.267703] ================================================================== [ 12.269153] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.269831] Write of size 1 at addr ffff8881039d1f00 by task kunit_try_catch/161 [ 12.270462] [ 12.270644] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.270691] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.270703] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.270724] Call Trace: [ 12.270737] <TASK> [ 12.270755] dump_stack_lvl+0x73/0xb0 [ 12.270785] print_report+0xd1/0x650 [ 12.270807] ? __virt_addr_valid+0x1db/0x2d0 [ 12.270829] ? kmalloc_big_oob_right+0x316/0x370 [ 12.270850] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.270874] ? kmalloc_big_oob_right+0x316/0x370 [ 12.270895] kasan_report+0x141/0x180 [ 12.270916] ? kmalloc_big_oob_right+0x316/0x370 [ 12.270942] __asan_report_store1_noabort+0x1b/0x30 [ 12.270964] kmalloc_big_oob_right+0x316/0x370 [ 12.270985] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.271006] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.271029] ? trace_hardirqs_on+0x37/0xe0 [ 12.271063] ? __pfx_read_tsc+0x10/0x10 [ 12.271084] ? ktime_get_ts64+0x86/0x230 [ 12.271108] kunit_try_run_case+0x1a5/0x480 [ 12.271133] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.271155] ? queued_spin_lock_slowpath+0x116/0xb40 [ 12.271180] ? __kthread_parkme+0x82/0x180 [ 12.271200] ? preempt_count_sub+0x50/0x80 [ 12.271223] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.271245] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.271267] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.271288] kthread+0x337/0x6f0 [ 12.271306] ? trace_preempt_on+0x20/0xc0 [ 12.271326] ? __pfx_kthread+0x10/0x10 [ 12.271346] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.271365] ? calculate_sigpending+0x7b/0xa0 [ 12.271389] ? __pfx_kthread+0x10/0x10 [ 12.271409] ret_from_fork+0x116/0x1d0 [ 12.271426] ? __pfx_kthread+0x10/0x10 [ 12.271445] ret_from_fork_asm+0x1a/0x30 [ 12.271476] </TASK> [ 12.271487] [ 12.282594] Allocated by task 161: [ 12.282846] kasan_save_stack+0x45/0x70 [ 12.282993] kasan_save_track+0x18/0x40 [ 12.283140] kasan_save_alloc_info+0x3b/0x50 [ 12.283289] __kasan_kmalloc+0xb7/0xc0 [ 12.283421] __kmalloc_cache_noprof+0x189/0x420 [ 12.283641] kmalloc_big_oob_right+0xa9/0x370 [ 12.284016] kunit_try_run_case+0x1a5/0x480 [ 12.284388] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.284969] kthread+0x337/0x6f0 [ 12.285300] ret_from_fork+0x116/0x1d0 [ 12.285680] ret_from_fork_asm+0x1a/0x30 [ 12.286034] [ 12.286204] The buggy address belongs to the object at ffff8881039d0000 [ 12.286204] which belongs to the cache kmalloc-8k of size 8192 [ 12.287377] The buggy address is located 0 bytes to the right of [ 12.287377] allocated 7936-byte region [ffff8881039d0000, ffff8881039d1f00) [ 12.288094] [ 12.288171] The buggy address belongs to the physical page: [ 12.288346] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039d0 [ 12.288619] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.289245] flags: 0x200000000000040(head|node=0|zone=2) [ 12.289832] page_type: f5(slab) [ 12.290146] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.290838] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.291488] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.292180] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.292669] head: 0200000000000003 ffffea00040e7401 00000000ffffffff 00000000ffffffff [ 12.292904] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.293140] page dumped because: kasan: bad access detected [ 12.293311] [ 12.293380] Memory state around the buggy address: [ 12.293575] ffff8881039d1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.294163] ffff8881039d1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.294872] >ffff8881039d1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.295462] ^ [ 12.295761] ffff8881039d1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.296356] ffff8881039d2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.297052] ==================================================================