Date
July 9, 2025, 11:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.358654] ================================================================== [ 16.358720] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 16.358776] Read of size 1 at addr fff00000c624d000 by task kunit_try_catch/140 [ 16.358823] [ 16.358856] CPU: 1 UID: 0 PID: 140 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.358944] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.358992] Hardware name: linux,dummy-virt (DT) [ 16.359028] Call trace: [ 16.359050] show_stack+0x20/0x38 (C) [ 16.359100] dump_stack_lvl+0x8c/0xd0 [ 16.359959] print_report+0x118/0x608 [ 16.360195] kasan_report+0xdc/0x128 [ 16.360284] __asan_report_load1_noabort+0x20/0x30 [ 16.360392] kmalloc_node_oob_right+0x2f4/0x330 [ 16.360552] kunit_try_run_case+0x170/0x3f0 [ 16.360602] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.360660] kthread+0x328/0x630 [ 16.360703] ret_from_fork+0x10/0x20 [ 16.361162] [ 16.361304] Allocated by task 140: [ 16.361492] kasan_save_stack+0x3c/0x68 [ 16.361595] kasan_save_track+0x20/0x40 [ 16.362141] kasan_save_alloc_info+0x40/0x58 [ 16.362221] __kasan_kmalloc+0xd4/0xd8 [ 16.362403] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 16.362587] kmalloc_node_oob_right+0xbc/0x330 [ 16.362629] kunit_try_run_case+0x170/0x3f0 [ 16.362720] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.363170] kthread+0x328/0x630 [ 16.363317] ret_from_fork+0x10/0x20 [ 16.363407] [ 16.363553] The buggy address belongs to the object at fff00000c624c000 [ 16.363553] which belongs to the cache kmalloc-4k of size 4096 [ 16.363781] The buggy address is located 0 bytes to the right of [ 16.363781] allocated 4096-byte region [fff00000c624c000, fff00000c624d000) [ 16.364186] [ 16.364285] The buggy address belongs to the physical page: [ 16.364417] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106248 [ 16.365066] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.365229] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.365684] page_type: f5(slab) [ 16.365751] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.365912] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.366050] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 16.366703] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 16.366930] head: 0bfffe0000000003 ffffc1ffc3189201 00000000ffffffff 00000000ffffffff [ 16.367293] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.367408] page dumped because: kasan: bad access detected [ 16.367558] [ 16.367736] Memory state around the buggy address: [ 16.367936] fff00000c624cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.368109] fff00000c624cf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.368246] >fff00000c624d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.368459] ^ [ 16.368646] fff00000c624d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.368729] fff00000c624d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.368836] ==================================================================
[ 11.940424] ================================================================== [ 11.941466] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 11.941766] Read of size 1 at addr ffff888103859000 by task kunit_try_catch/157 [ 11.942685] [ 11.943238] CPU: 1 UID: 0 PID: 157 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 11.943306] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.943320] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.943342] Call Trace: [ 11.943355] <TASK> [ 11.943372] dump_stack_lvl+0x73/0xb0 [ 11.943407] print_report+0xd1/0x650 [ 11.943429] ? __virt_addr_valid+0x1db/0x2d0 [ 11.943453] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.943476] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.943499] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.943522] kasan_report+0x141/0x180 [ 11.943543] ? kmalloc_node_oob_right+0x369/0x3c0 [ 11.943571] __asan_report_load1_noabort+0x18/0x20 [ 11.943596] kmalloc_node_oob_right+0x369/0x3c0 [ 11.943620] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 11.943645] ? __schedule+0x10cc/0x2b60 [ 11.943666] ? __pfx_read_tsc+0x10/0x10 [ 11.943688] ? ktime_get_ts64+0x86/0x230 [ 11.943755] kunit_try_run_case+0x1a5/0x480 [ 11.943781] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.943804] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.943828] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.943851] ? __kthread_parkme+0x82/0x180 [ 11.943873] ? preempt_count_sub+0x50/0x80 [ 11.943898] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.943922] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.943946] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.943970] kthread+0x337/0x6f0 [ 11.943989] ? trace_preempt_on+0x20/0xc0 [ 11.944042] ? __pfx_kthread+0x10/0x10 [ 11.944080] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.944101] ? calculate_sigpending+0x7b/0xa0 [ 11.944125] ? __pfx_kthread+0x10/0x10 [ 11.944146] ret_from_fork+0x116/0x1d0 [ 11.944164] ? __pfx_kthread+0x10/0x10 [ 11.944184] ret_from_fork_asm+0x1a/0x30 [ 11.944215] </TASK> [ 11.944225] [ 11.955975] Allocated by task 157: [ 11.956823] kasan_save_stack+0x45/0x70 [ 11.956988] kasan_save_track+0x18/0x40 [ 11.957611] kasan_save_alloc_info+0x3b/0x50 [ 11.958308] __kasan_kmalloc+0xb7/0xc0 [ 11.958793] __kmalloc_cache_node_noprof+0x188/0x420 [ 11.959363] kmalloc_node_oob_right+0xab/0x3c0 [ 11.960043] kunit_try_run_case+0x1a5/0x480 [ 11.960295] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.960929] kthread+0x337/0x6f0 [ 11.961391] ret_from_fork+0x116/0x1d0 [ 11.961770] ret_from_fork_asm+0x1a/0x30 [ 11.961916] [ 11.961989] The buggy address belongs to the object at ffff888103858000 [ 11.961989] which belongs to the cache kmalloc-4k of size 4096 [ 11.962353] The buggy address is located 0 bytes to the right of [ 11.962353] allocated 4096-byte region [ffff888103858000, ffff888103859000) [ 11.963078] [ 11.963553] The buggy address belongs to the physical page: [ 11.964344] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103858 [ 11.965323] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.966173] flags: 0x200000000000040(head|node=0|zone=2) [ 11.966747] page_type: f5(slab) [ 11.967095] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.967831] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.968567] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 11.969175] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 11.969902] head: 0200000000000003 ffffea00040e1601 00000000ffffffff 00000000ffffffff [ 11.970463] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.971141] page dumped because: kasan: bad access detected [ 11.971386] [ 11.971568] Memory state around the buggy address: [ 11.972058] ffff888103858f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.972748] ffff888103858f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.973038] >ffff888103859000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.973311] ^ [ 11.973434] ffff888103859080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.973996] ffff888103859100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.974742] ==================================================================