Date
July 16, 2025, 12:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.566490] ================================================================== [ 30.566603] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 30.566791] Write of size 16 at addr fff00000c6360260 by task kunit_try_catch/197 [ 30.566843] [ 30.567082] CPU: 0 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT [ 30.567243] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.567281] Hardware name: linux,dummy-virt (DT) [ 30.567472] Call trace: [ 30.567499] show_stack+0x20/0x38 (C) [ 30.567756] dump_stack_lvl+0x8c/0xd0 [ 30.568048] print_report+0x118/0x5d0 [ 30.568176] kasan_report+0xdc/0x128 [ 30.568247] __asan_report_store16_noabort+0x20/0x30 [ 30.568299] kmalloc_oob_16+0x3a0/0x3f8 [ 30.568648] kunit_try_run_case+0x170/0x3f0 [ 30.568728] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.568854] kthread+0x328/0x630 [ 30.568927] ret_from_fork+0x10/0x20 [ 30.569322] [ 30.569367] Allocated by task 197: [ 30.569527] kasan_save_stack+0x3c/0x68 [ 30.569573] kasan_save_track+0x20/0x40 [ 30.569731] kasan_save_alloc_info+0x40/0x58 [ 30.570079] __kasan_kmalloc+0xd4/0xd8 [ 30.570348] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.570673] kmalloc_oob_16+0xb4/0x3f8 [ 30.570877] kunit_try_run_case+0x170/0x3f0 [ 30.571114] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.571472] kthread+0x328/0x630 [ 30.571709] ret_from_fork+0x10/0x20 [ 30.571979] [ 30.572189] The buggy address belongs to the object at fff00000c6360260 [ 30.572189] which belongs to the cache kmalloc-16 of size 16 [ 30.572375] The buggy address is located 0 bytes inside of [ 30.572375] allocated 13-byte region [fff00000c6360260, fff00000c636026d) [ 30.572604] [ 30.572660] The buggy address belongs to the physical page: [ 30.572842] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106360 [ 30.573059] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.573208] page_type: f5(slab) [ 30.573413] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 30.573576] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 30.573727] page dumped because: kasan: bad access detected [ 30.573935] [ 30.574160] Memory state around the buggy address: [ 30.574258] fff00000c6360100: fa fb fc fc 00 04 fc fc fa fb fc fc fa fb fc fc [ 30.574497] fff00000c6360180: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 30.574682] >fff00000c6360200: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 30.574878] ^ [ 30.574935] fff00000c6360280: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.575093] fff00000c6360300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.575408] ==================================================================
[ 23.273254] ================================================================== [ 23.273914] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 23.274192] Write of size 16 at addr ffff8881016839a0 by task kunit_try_catch/215 [ 23.274880] [ 23.274990] CPU: 1 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) [ 23.275185] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.275202] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.275223] Call Trace: [ 23.275237] <TASK> [ 23.275257] dump_stack_lvl+0x73/0xb0 [ 23.275302] print_report+0xd1/0x610 [ 23.275324] ? __virt_addr_valid+0x1db/0x2d0 [ 23.275346] ? kmalloc_oob_16+0x452/0x4a0 [ 23.275365] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.275392] ? kmalloc_oob_16+0x452/0x4a0 [ 23.275412] kasan_report+0x141/0x180 [ 23.275433] ? kmalloc_oob_16+0x452/0x4a0 [ 23.275458] __asan_report_store16_noabort+0x1b/0x30 [ 23.275481] kmalloc_oob_16+0x452/0x4a0 [ 23.275502] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 23.275523] ? __schedule+0x10c6/0x2b60 [ 23.275568] ? __pfx_read_tsc+0x10/0x10 [ 23.275591] ? ktime_get_ts64+0x86/0x230 [ 23.275617] kunit_try_run_case+0x1a5/0x480 [ 23.275641] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.275663] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.275685] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.275707] ? __kthread_parkme+0x82/0x180 [ 23.275727] ? preempt_count_sub+0x50/0x80 [ 23.275750] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.275772] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.275798] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.275823] kthread+0x337/0x6f0 [ 23.275842] ? trace_preempt_on+0x20/0xc0 [ 23.275865] ? __pfx_kthread+0x10/0x10 [ 23.275885] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.275904] ? calculate_sigpending+0x7b/0xa0 [ 23.275928] ? __pfx_kthread+0x10/0x10 [ 23.275949] ret_from_fork+0x116/0x1d0 [ 23.275967] ? __pfx_kthread+0x10/0x10 [ 23.275987] ret_from_fork_asm+0x1a/0x30 [ 23.276018] </TASK> [ 23.276029] [ 23.284892] Allocated by task 215: [ 23.285041] kasan_save_stack+0x45/0x70 [ 23.285328] kasan_save_track+0x18/0x40 [ 23.285652] kasan_save_alloc_info+0x3b/0x50 [ 23.285812] __kasan_kmalloc+0xb7/0xc0 [ 23.286184] __kmalloc_cache_noprof+0x189/0x420 [ 23.286472] kmalloc_oob_16+0xa8/0x4a0 [ 23.286695] kunit_try_run_case+0x1a5/0x480 [ 23.286886] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.287124] kthread+0x337/0x6f0 [ 23.287284] ret_from_fork+0x116/0x1d0 [ 23.287455] ret_from_fork_asm+0x1a/0x30 [ 23.287948] [ 23.288046] The buggy address belongs to the object at ffff8881016839a0 [ 23.288046] which belongs to the cache kmalloc-16 of size 16 [ 23.288722] The buggy address is located 0 bytes inside of [ 23.288722] allocated 13-byte region [ffff8881016839a0, ffff8881016839ad) [ 23.289318] [ 23.289403] The buggy address belongs to the physical page: [ 23.289810] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101683 [ 23.290222] flags: 0x200000000000000(node=0|zone=2) [ 23.290468] page_type: f5(slab) [ 23.290765] raw: 0200000000000000 ffff888100041640 dead000000000100 dead000000000122 [ 23.291169] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 23.291605] page dumped because: kasan: bad access detected [ 23.291844] [ 23.291957] Memory state around the buggy address: [ 23.292266] ffff888101683880: 00 06 fc fc 00 06 fc fc 00 00 fc fc fa fb fc fc [ 23.292791] ffff888101683900: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 23.293014] >ffff888101683980: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 23.293220] ^ [ 23.293378] ffff888101683a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.293613] ffff888101683a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.293820] ==================================================================