Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.057939] ================================================================== [ 24.058103] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 24.058251] Write of size 1 at addr fff00000c7709f00 by task kunit_try_catch/146 [ 24.058376] [ 24.058548] CPU: 0 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 24.058870] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.058935] Hardware name: linux,dummy-virt (DT) [ 24.059091] Call trace: [ 24.059152] show_stack+0x20/0x38 (C) [ 24.059293] dump_stack_lvl+0x8c/0xd0 [ 24.059562] print_report+0x118/0x608 [ 24.059808] kasan_report+0xdc/0x128 [ 24.059926] __asan_report_store1_noabort+0x20/0x30 [ 24.060108] kmalloc_big_oob_right+0x2a4/0x2f0 [ 24.060252] kunit_try_run_case+0x170/0x3f0 [ 24.060382] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.062498] kthread+0x328/0x630 [ 24.062641] ret_from_fork+0x10/0x20 [ 24.062787] [ 24.062832] Allocated by task 146: [ 24.062907] kasan_save_stack+0x3c/0x68 [ 24.063008] kasan_save_track+0x20/0x40 [ 24.063097] kasan_save_alloc_info+0x40/0x58 [ 24.063207] __kasan_kmalloc+0xd4/0xd8 [ 24.063308] __kmalloc_cache_noprof+0x16c/0x3c0 [ 24.063463] kmalloc_big_oob_right+0xb8/0x2f0 [ 24.063777] kunit_try_run_case+0x170/0x3f0 [ 24.066422] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.066558] kthread+0x328/0x630 [ 24.066655] ret_from_fork+0x10/0x20 [ 24.066745] [ 24.066823] The buggy address belongs to the object at fff00000c7708000 [ 24.066823] which belongs to the cache kmalloc-8k of size 8192 [ 24.066952] The buggy address is located 0 bytes to the right of [ 24.066952] allocated 7936-byte region [fff00000c7708000, fff00000c7709f00) [ 24.067513] [ 24.067745] The buggy address belongs to the physical page: [ 24.067823] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107708 [ 24.068225] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.068573] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 24.068857] page_type: f5(slab) [ 24.070208] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 24.070480] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.070844] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 24.070996] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.071127] head: 0bfffe0000000003 ffffc1ffc31dc201 00000000ffffffff 00000000ffffffff [ 24.071552] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 24.071648] page dumped because: kasan: bad access detected [ 24.071719] [ 24.071773] Memory state around the buggy address: [ 24.071847] fff00000c7709e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.071949] fff00000c7709e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.072099] >fff00000c7709f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.072190] ^ [ 24.072272] fff00000c7709f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.072406] fff00000c770a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.072500] ==================================================================
[ 16.131176] ================================================================== [ 16.132235] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 16.133002] Write of size 1 at addr ffff888102c49f00 by task kunit_try_catch/165 [ 16.134566] [ 16.135000] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 16.135277] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.135318] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.135376] Call Trace: [ 16.135412] <TASK> [ 16.135459] dump_stack_lvl+0x73/0xb0 [ 16.135555] print_report+0xd1/0x650 [ 16.135673] ? __virt_addr_valid+0x1db/0x2d0 [ 16.135756] ? kmalloc_big_oob_right+0x316/0x370 [ 16.135826] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.135864] ? kmalloc_big_oob_right+0x316/0x370 [ 16.135901] kasan_report+0x141/0x180 [ 16.135935] ? kmalloc_big_oob_right+0x316/0x370 [ 16.135973] __asan_report_store1_noabort+0x1b/0x30 [ 16.136003] kmalloc_big_oob_right+0x316/0x370 [ 16.136036] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 16.136071] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 16.136109] kunit_try_run_case+0x1a5/0x480 [ 16.136145] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.136177] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.136213] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.136274] ? __kthread_parkme+0x82/0x180 [ 16.136308] ? preempt_count_sub+0x50/0x80 [ 16.136343] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.136376] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.136407] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.136438] kthread+0x337/0x6f0 [ 16.136460] ? trace_preempt_on+0x20/0xc0 [ 16.136492] ? __pfx_kthread+0x10/0x10 [ 16.136515] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.136544] ? calculate_sigpending+0x7b/0xa0 [ 16.136575] ? __pfx_kthread+0x10/0x10 [ 16.136618] ret_from_fork+0x41/0x80 [ 16.136691] ? __pfx_kthread+0x10/0x10 [ 16.136747] ret_from_fork_asm+0x1a/0x30 [ 16.136792] </TASK> [ 16.136806] [ 16.153504] Allocated by task 165: [ 16.153941] kasan_save_stack+0x45/0x70 [ 16.154801] kasan_save_track+0x18/0x40 [ 16.155257] kasan_save_alloc_info+0x3b/0x50 [ 16.156016] __kasan_kmalloc+0xb7/0xc0 [ 16.156518] __kmalloc_cache_noprof+0x189/0x420 [ 16.157185] kmalloc_big_oob_right+0xa9/0x370 [ 16.157863] kunit_try_run_case+0x1a5/0x480 [ 16.158284] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.158996] kthread+0x337/0x6f0 [ 16.159477] ret_from_fork+0x41/0x80 [ 16.160179] ret_from_fork_asm+0x1a/0x30 [ 16.160685] [ 16.160919] The buggy address belongs to the object at ffff888102c48000 [ 16.160919] which belongs to the cache kmalloc-8k of size 8192 [ 16.162109] The buggy address is located 0 bytes to the right of [ 16.162109] allocated 7936-byte region [ffff888102c48000, ffff888102c49f00) [ 16.163300] [ 16.163545] The buggy address belongs to the physical page: [ 16.164276] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102c48 [ 16.165166] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.165999] flags: 0x200000000000040(head|node=0|zone=2) [ 16.166508] page_type: f5(slab) [ 16.167152] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 16.168004] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.168754] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 16.169644] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.170619] head: 0200000000000003 ffffea00040b1201 00000000ffffffff 00000000ffffffff [ 16.171297] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.171867] page dumped because: kasan: bad access detected [ 16.172303] [ 16.172495] Memory state around the buggy address: [ 16.173092] ffff888102c49e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.173855] ffff888102c49e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.174426] >ffff888102c49f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.175142] ^ [ 16.175486] ffff888102c49f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.176197] ffff888102c4a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.176967] ==================================================================