Date
July 17, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.082275] ================================================================== [ 15.082372] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.082505] Write of size 1 at addr fff00000c12ddf00 by task kunit_try_catch/145 [ 15.082570] [ 15.082629] CPU: 0 UID: 0 PID: 145 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.082836] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.082866] Hardware name: linux,dummy-virt (DT) [ 15.082895] Call trace: [ 15.082945] show_stack+0x20/0x38 (C) [ 15.083146] dump_stack_lvl+0x8c/0xd0 [ 15.083343] print_report+0x118/0x5d0 [ 15.083412] kasan_report+0xdc/0x128 [ 15.083462] __asan_report_store1_noabort+0x20/0x30 [ 15.083766] kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.083846] kunit_try_run_case+0x170/0x3f0 [ 15.083996] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.084054] kthread+0x328/0x630 [ 15.084095] ret_from_fork+0x10/0x20 [ 15.084202] [ 15.084221] Allocated by task 145: [ 15.084249] kasan_save_stack+0x3c/0x68 [ 15.084298] kasan_save_track+0x20/0x40 [ 15.084335] kasan_save_alloc_info+0x40/0x58 [ 15.084374] __kasan_kmalloc+0xd4/0xd8 [ 15.084409] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.084447] kmalloc_big_oob_right+0xb8/0x2f0 [ 15.084483] kunit_try_run_case+0x170/0x3f0 [ 15.084520] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.084562] kthread+0x328/0x630 [ 15.084593] ret_from_fork+0x10/0x20 [ 15.084629] [ 15.084647] The buggy address belongs to the object at fff00000c12dc000 [ 15.084647] which belongs to the cache kmalloc-8k of size 8192 [ 15.084703] The buggy address is located 0 bytes to the right of [ 15.084703] allocated 7936-byte region [fff00000c12dc000, fff00000c12ddf00) [ 15.084765] [ 15.084783] The buggy address belongs to the physical page: [ 15.084817] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1012d8 [ 15.085293] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.085433] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.085605] page_type: f5(slab) [ 15.085699] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.086608] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.086679] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.086757] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.086910] head: 0bfffe0000000003 ffffc1ffc304b601 00000000ffffffff 00000000ffffffff [ 15.086996] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.087083] page dumped because: kasan: bad access detected [ 15.087115] [ 15.087245] Memory state around the buggy address: [ 15.087438] fff00000c12dde00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.087524] fff00000c12dde80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.087632] >fff00000c12ddf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.087994] ^ [ 15.088031] fff00000c12ddf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.088232] fff00000c12de000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.088514] ==================================================================
[ 12.482867] ================================================================== [ 12.483413] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.483751] Write of size 1 at addr ffff888102b11f00 by task kunit_try_catch/161 [ 12.484068] [ 12.484165] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.484208] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.484219] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.484239] Call Trace: [ 12.484250] <TASK> [ 12.484265] dump_stack_lvl+0x73/0xb0 [ 12.484292] print_report+0xd1/0x610 [ 12.484313] ? __virt_addr_valid+0x1db/0x2d0 [ 12.484334] ? kmalloc_big_oob_right+0x316/0x370 [ 12.484355] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.484376] ? kmalloc_big_oob_right+0x316/0x370 [ 12.484398] kasan_report+0x141/0x180 [ 12.484418] ? kmalloc_big_oob_right+0x316/0x370 [ 12.484444] __asan_report_store1_noabort+0x1b/0x30 [ 12.484467] kmalloc_big_oob_right+0x316/0x370 [ 12.484536] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.484960] ? __schedule+0x10cc/0x2b60 [ 12.484988] ? __pfx_read_tsc+0x10/0x10 [ 12.485010] ? ktime_get_ts64+0x86/0x230 [ 12.485035] kunit_try_run_case+0x1a5/0x480 [ 12.485059] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.485082] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.485105] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.485129] ? __kthread_parkme+0x82/0x180 [ 12.485149] ? preempt_count_sub+0x50/0x80 [ 12.485172] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.485197] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.485221] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.485270] kthread+0x337/0x6f0 [ 12.485289] ? trace_preempt_on+0x20/0xc0 [ 12.485312] ? __pfx_kthread+0x10/0x10 [ 12.485333] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.485354] ? calculate_sigpending+0x7b/0xa0 [ 12.485378] ? __pfx_kthread+0x10/0x10 [ 12.485400] ret_from_fork+0x116/0x1d0 [ 12.485425] ? __pfx_kthread+0x10/0x10 [ 12.485445] ret_from_fork_asm+0x1a/0x30 [ 12.485476] </TASK> [ 12.485487] [ 12.496405] Allocated by task 161: [ 12.496784] kasan_save_stack+0x45/0x70 [ 12.497208] kasan_save_track+0x18/0x40 [ 12.497416] kasan_save_alloc_info+0x3b/0x50 [ 12.497762] __kasan_kmalloc+0xb7/0xc0 [ 12.497944] __kmalloc_cache_noprof+0x189/0x420 [ 12.498141] kmalloc_big_oob_right+0xa9/0x370 [ 12.498468] kunit_try_run_case+0x1a5/0x480 [ 12.498882] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.499208] kthread+0x337/0x6f0 [ 12.499541] ret_from_fork+0x116/0x1d0 [ 12.499850] ret_from_fork_asm+0x1a/0x30 [ 12.499987] [ 12.500182] The buggy address belongs to the object at ffff888102b10000 [ 12.500182] which belongs to the cache kmalloc-8k of size 8192 [ 12.500890] The buggy address is located 0 bytes to the right of [ 12.500890] allocated 7936-byte region [ffff888102b10000, ffff888102b11f00) [ 12.501859] [ 12.501966] The buggy address belongs to the physical page: [ 12.502301] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b10 [ 12.502848] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.503373] flags: 0x200000000000040(head|node=0|zone=2) [ 12.503748] page_type: f5(slab) [ 12.503970] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.504250] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.504847] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.505115] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.505660] head: 0200000000000003 ffffea00040ac401 00000000ffffffff 00000000ffffffff [ 12.506007] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.506436] page dumped because: kasan: bad access detected [ 12.506689] [ 12.506909] Memory state around the buggy address: [ 12.507113] ffff888102b11e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.507435] ffff888102b11e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.507991] >ffff888102b11f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.508407] ^ [ 12.508696] ffff888102b11f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.509048] ffff888102b12000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.509342] ==================================================================