Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.044578] ================================================================== [ 21.044694] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x2f4/0x330 [ 21.044899] Read of size 1 at addr fff00000c5e93000 by task kunit_try_catch/142 [ 21.045096] [ 21.045339] CPU: 0 UID: 0 PID: 142 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.045849] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.046347] Hardware name: linux,dummy-virt (DT) [ 21.046565] Call trace: [ 21.046652] show_stack+0x20/0x38 (C) [ 21.046858] dump_stack_lvl+0x8c/0xd0 [ 21.047047] print_report+0x118/0x608 [ 21.047223] kasan_report+0xdc/0x128 [ 21.047559] __asan_report_load1_noabort+0x20/0x30 [ 21.047677] kmalloc_node_oob_right+0x2f4/0x330 [ 21.047800] kunit_try_run_case+0x170/0x3f0 [ 21.047896] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.048084] kthread+0x328/0x630 [ 21.048291] ret_from_fork+0x10/0x20 [ 21.048683] [ 21.048800] Allocated by task 142: [ 21.048876] kasan_save_stack+0x3c/0x68 [ 21.049034] kasan_save_track+0x20/0x40 [ 21.049269] kasan_save_alloc_info+0x40/0x58 [ 21.049413] __kasan_kmalloc+0xd4/0xd8 [ 21.049744] __kmalloc_cache_node_noprof+0x178/0x3d0 [ 21.049858] kmalloc_node_oob_right+0xbc/0x330 [ 21.049951] kunit_try_run_case+0x170/0x3f0 [ 21.050037] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.050268] kthread+0x328/0x630 [ 21.050501] ret_from_fork+0x10/0x20 [ 21.050605] [ 21.050810] The buggy address belongs to the object at fff00000c5e92000 [ 21.050810] which belongs to the cache kmalloc-4k of size 4096 [ 21.051134] The buggy address is located 0 bytes to the right of [ 21.051134] allocated 4096-byte region [fff00000c5e92000, fff00000c5e93000) [ 21.051321] [ 21.051374] The buggy address belongs to the physical page: [ 21.051563] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105e90 [ 21.052296] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.052545] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.052828] page_type: f5(slab) [ 21.053137] raw: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 21.053270] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 21.053510] head: 0bfffe0000000040 fff00000c0002140 dead000000000122 0000000000000000 [ 21.053666] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 21.053865] head: 0bfffe0000000003 ffffc1ffc317a401 00000000ffffffff 00000000ffffffff [ 21.053998] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 21.054210] page dumped because: kasan: bad access detected [ 21.054374] [ 21.054423] Memory state around the buggy address: [ 21.054505] fff00000c5e92f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.054593] fff00000c5e92f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.054672] >fff00000c5e93000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.054783] ^ [ 21.054845] fff00000c5e93080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.054940] fff00000c5e93100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.055425] ==================================================================
[ 17.811570] ================================================================== [ 17.812382] BUG: KASAN: slab-out-of-bounds in kmalloc_node_oob_right+0x369/0x3c0 [ 17.813823] Read of size 1 at addr ffff888103841000 by task kunit_try_catch/160 [ 17.814634] [ 17.814932] CPU: 1 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 17.815389] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.815415] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.815449] Call Trace: [ 17.815476] <TASK> [ 17.815527] dump_stack_lvl+0x73/0xb0 [ 17.815580] print_report+0xd1/0x650 [ 17.815619] ? __virt_addr_valid+0x1db/0x2d0 [ 17.815655] ? kmalloc_node_oob_right+0x369/0x3c0 [ 17.815685] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.815719] ? kmalloc_node_oob_right+0x369/0x3c0 [ 17.815749] kasan_report+0x141/0x180 [ 17.815783] ? kmalloc_node_oob_right+0x369/0x3c0 [ 17.815820] __asan_report_load1_noabort+0x18/0x20 [ 17.815851] kmalloc_node_oob_right+0x369/0x3c0 [ 17.815893] ? __pfx_kmalloc_node_oob_right+0x10/0x10 [ 17.815926] ? __schedule+0x10cc/0x2b60 [ 17.816363] ? __pfx_read_tsc+0x10/0x10 [ 17.816411] ? ktime_get_ts64+0x86/0x230 [ 17.816454] kunit_try_run_case+0x1a5/0x480 [ 17.816495] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.816529] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.816566] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.816601] ? __kthread_parkme+0x82/0x180 [ 17.816636] ? preempt_count_sub+0x50/0x80 [ 17.816675] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.816712] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.816748] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.816783] kthread+0x337/0x6f0 [ 17.816809] ? trace_preempt_on+0x20/0xc0 [ 17.816846] ? __pfx_kthread+0x10/0x10 [ 17.816872] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.816903] ? calculate_sigpending+0x7b/0xa0 [ 17.816936] ? __pfx_kthread+0x10/0x10 [ 17.816988] ret_from_fork+0x41/0x80 [ 17.817065] ? __pfx_kthread+0x10/0x10 [ 17.817151] ret_from_fork_asm+0x1a/0x30 [ 17.817202] </TASK> [ 17.817218] [ 17.837962] Allocated by task 160: [ 17.838791] kasan_save_stack+0x45/0x70 [ 17.839764] kasan_save_track+0x18/0x40 [ 17.840487] kasan_save_alloc_info+0x3b/0x50 [ 17.840962] __kasan_kmalloc+0xb7/0xc0 [ 17.841654] __kmalloc_cache_node_noprof+0x188/0x420 [ 17.842586] kmalloc_node_oob_right+0xab/0x3c0 [ 17.843187] kunit_try_run_case+0x1a5/0x480 [ 17.843604] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.844608] kthread+0x337/0x6f0 [ 17.844906] ret_from_fork+0x41/0x80 [ 17.845562] ret_from_fork_asm+0x1a/0x30 [ 17.846188] [ 17.846545] The buggy address belongs to the object at ffff888103840000 [ 17.846545] which belongs to the cache kmalloc-4k of size 4096 [ 17.847759] The buggy address is located 0 bytes to the right of [ 17.847759] allocated 4096-byte region [ffff888103840000, ffff888103841000) [ 17.849580] [ 17.849772] The buggy address belongs to the physical page: [ 17.851217] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103840 [ 17.852352] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.852866] flags: 0x200000000000040(head|node=0|zone=2) [ 17.853788] page_type: f5(slab) [ 17.854279] raw: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 17.855255] raw: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.855904] head: 0200000000000040 ffff888100042140 dead000000000122 0000000000000000 [ 17.856844] head: 0000000000000000 0000000080040004 00000000f5000000 0000000000000000 [ 17.857799] head: 0200000000000003 ffffea00040e1001 00000000ffffffff 00000000ffffffff [ 17.858900] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 17.859800] page dumped because: kasan: bad access detected [ 17.860731] [ 17.860906] Memory state around the buggy address: [ 17.861233] ffff888103840f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.862550] ffff888103840f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.863266] >ffff888103841000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.863899] ^ [ 17.864450] ffff888103841080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.865238] ffff888103841100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.865504] ==================================================================