Date
July 5, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.565183] ================================================================== [ 18.565328] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 18.565449] Write of size 1 at addr fff00000c78b9f00 by task kunit_try_catch/145 [ 18.565556] [ 18.565626] CPU: 0 UID: 0 PID: 145 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.565804] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.566147] Hardware name: linux,dummy-virt (DT) [ 18.566227] Call trace: [ 18.566277] show_stack+0x20/0x38 (C) [ 18.566627] dump_stack_lvl+0x8c/0xd0 [ 18.566778] print_report+0x118/0x608 [ 18.566898] kasan_report+0xdc/0x128 [ 18.567077] __asan_report_store1_noabort+0x20/0x30 [ 18.567242] kmalloc_big_oob_right+0x2a4/0x2f0 [ 18.567418] kunit_try_run_case+0x170/0x3f0 [ 18.567526] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.568029] kthread+0x328/0x630 [ 18.568477] ret_from_fork+0x10/0x20 [ 18.568779] [ 18.568988] Allocated by task 145: [ 18.569059] kasan_save_stack+0x3c/0x68 [ 18.569652] kasan_save_track+0x20/0x40 [ 18.569812] kasan_save_alloc_info+0x40/0x58 [ 18.569907] __kasan_kmalloc+0xd4/0xd8 [ 18.569994] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.570989] kmalloc_big_oob_right+0xb8/0x2f0 [ 18.571177] kunit_try_run_case+0x170/0x3f0 [ 18.571271] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.571390] kthread+0x328/0x630 [ 18.571708] ret_from_fork+0x10/0x20 [ 18.571977] [ 18.572196] The buggy address belongs to the object at fff00000c78b8000 [ 18.572196] which belongs to the cache kmalloc-8k of size 8192 [ 18.572475] The buggy address is located 0 bytes to the right of [ 18.572475] allocated 7936-byte region [fff00000c78b8000, fff00000c78b9f00) [ 18.572624] [ 18.572673] The buggy address belongs to the physical page: [ 18.573247] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078b8 [ 18.574216] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.574413] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.574612] page_type: f5(slab) [ 18.575311] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 18.575951] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 18.576324] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 18.576496] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 18.576889] head: 0bfffe0000000003 ffffc1ffc31e2e01 00000000ffffffff 00000000ffffffff [ 18.577081] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.577386] page dumped because: kasan: bad access detected [ 18.577574] [ 18.577631] Memory state around the buggy address: [ 18.577893] fff00000c78b9e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.577993] fff00000c78b9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.578511] >fff00000c78b9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.578651] ^ [ 18.578732] fff00000c78b9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.579107] fff00000c78ba000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.579202] ==================================================================
[ 12.929714] ================================================================== [ 12.930341] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.930786] Write of size 1 at addr ffff888102a0df00 by task kunit_try_catch/161 [ 12.931550] [ 12.931963] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.932025] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.932040] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.932157] Call Trace: [ 12.932175] <TASK> [ 12.932197] dump_stack_lvl+0x73/0xb0 [ 12.932235] print_report+0xd1/0x650 [ 12.932260] ? __virt_addr_valid+0x1db/0x2d0 [ 12.932288] ? kmalloc_big_oob_right+0x316/0x370 [ 12.932314] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.932340] ? kmalloc_big_oob_right+0x316/0x370 [ 12.932366] kasan_report+0x141/0x180 [ 12.932391] ? kmalloc_big_oob_right+0x316/0x370 [ 12.932423] __asan_report_store1_noabort+0x1b/0x30 [ 12.932446] kmalloc_big_oob_right+0x316/0x370 [ 12.932472] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.932498] ? __schedule+0x10cc/0x2b60 [ 12.932524] ? __pfx_read_tsc+0x10/0x10 [ 12.932549] ? ktime_get_ts64+0x86/0x230 [ 12.932577] kunit_try_run_case+0x1a5/0x480 [ 12.932607] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.932632] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.932675] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.932701] ? __kthread_parkme+0x82/0x180 [ 12.932725] ? preempt_count_sub+0x50/0x80 [ 12.932752] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.932844] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.932875] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.932901] kthread+0x337/0x6f0 [ 12.932925] ? trace_preempt_on+0x20/0xc0 [ 12.932953] ? __pfx_kthread+0x10/0x10 [ 12.932977] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.933001] ? calculate_sigpending+0x7b/0xa0 [ 12.933030] ? __pfx_kthread+0x10/0x10 [ 12.933055] ret_from_fork+0x116/0x1d0 [ 12.933076] ? __pfx_kthread+0x10/0x10 [ 12.933099] ret_from_fork_asm+0x1a/0x30 [ 12.933136] </TASK> [ 12.933150] [ 12.948158] Allocated by task 161: [ 12.948751] kasan_save_stack+0x45/0x70 [ 12.949405] kasan_save_track+0x18/0x40 [ 12.950059] kasan_save_alloc_info+0x3b/0x50 [ 12.950628] __kasan_kmalloc+0xb7/0xc0 [ 12.951239] __kmalloc_cache_noprof+0x189/0x420 [ 12.951938] kmalloc_big_oob_right+0xa9/0x370 [ 12.952668] kunit_try_run_case+0x1a5/0x480 [ 12.953269] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.953889] kthread+0x337/0x6f0 [ 12.954153] ret_from_fork+0x116/0x1d0 [ 12.954675] ret_from_fork_asm+0x1a/0x30 [ 12.955123] [ 12.955338] The buggy address belongs to the object at ffff888102a0c000 [ 12.955338] which belongs to the cache kmalloc-8k of size 8192 [ 12.956734] The buggy address is located 0 bytes to the right of [ 12.956734] allocated 7936-byte region [ffff888102a0c000, ffff888102a0df00) [ 12.957505] [ 12.957602] The buggy address belongs to the physical page: [ 12.957948] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a08 [ 12.958632] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.959025] flags: 0x200000000000040(head|node=0|zone=2) [ 12.959303] page_type: f5(slab) [ 12.959487] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.959855] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.960213] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.960570] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.962322] head: 0200000000000003 ffffea00040a8201 00000000ffffffff 00000000ffffffff [ 12.963603] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.964970] page dumped because: kasan: bad access detected [ 12.966011] [ 12.966546] Memory state around the buggy address: [ 12.968009] ffff888102a0de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.969160] ffff888102a0de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.970312] >ffff888102a0df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.971381] ^ [ 12.971539] ffff888102a0df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.971811] ffff888102a0e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.972678] ==================================================================