Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.398158] ================================================================== [ 17.398330] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 17.398463] Write of size 16 at addr fff00000c3eeb520 by task kunit_try_catch/166 [ 17.398574] [ 17.398652] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 17.399219] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.399368] Hardware name: linux,dummy-virt (DT) [ 17.399684] Call trace: [ 17.399740] show_stack+0x20/0x38 (C) [ 17.399847] dump_stack_lvl+0x8c/0xd0 [ 17.399973] print_report+0x118/0x608 [ 17.400291] kasan_report+0xdc/0x128 [ 17.400430] __asan_report_store16_noabort+0x20/0x30 [ 17.400586] kmalloc_oob_16+0x3a0/0x3f8 [ 17.400712] kunit_try_run_case+0x170/0x3f0 [ 17.400820] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.400926] kthread+0x328/0x630 [ 17.401287] ret_from_fork+0x10/0x20 [ 17.401455] [ 17.401507] Allocated by task 166: [ 17.401564] kasan_save_stack+0x3c/0x68 [ 17.401667] kasan_save_track+0x20/0x40 [ 17.401776] kasan_save_alloc_info+0x40/0x58 [ 17.401890] __kasan_kmalloc+0xd4/0xd8 [ 17.401987] __kmalloc_cache_noprof+0x15c/0x3c0 [ 17.402104] kmalloc_oob_16+0xb4/0x3f8 [ 17.402182] kunit_try_run_case+0x170/0x3f0 [ 17.402266] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.402361] kthread+0x328/0x630 [ 17.402420] ret_from_fork+0x10/0x20 [ 17.402490] [ 17.402951] The buggy address belongs to the object at fff00000c3eeb520 [ 17.402951] which belongs to the cache kmalloc-16 of size 16 [ 17.403127] The buggy address is located 0 bytes inside of [ 17.403127] allocated 13-byte region [fff00000c3eeb520, fff00000c3eeb52d) [ 17.403251] [ 17.403515] The buggy address belongs to the physical page: [ 17.403616] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103eeb [ 17.403766] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.403957] page_type: f5(slab) [ 17.404105] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.404221] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.404654] page dumped because: kasan: bad access detected [ 17.404753] [ 17.404794] Memory state around the buggy address: [ 17.404906] fff00000c3eeb400: 00 05 fc fc fa fb fc fc 00 02 fc fc fa fb fc fc [ 17.405073] fff00000c3eeb480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.405225] >fff00000c3eeb500: 00 04 fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 17.405309] ^ [ 17.405650] fff00000c3eeb580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.405810] fff00000c3eeb600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.406013] ==================================================================
[ 10.968870] ================================================================== [ 10.969875] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 10.970601] Write of size 16 at addr ffff888101e622a0 by task kunit_try_catch/184 [ 10.970989] [ 10.971130] CPU: 1 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 10.971176] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.971188] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.971209] Call Trace: [ 10.971222] <TASK> [ 10.971237] dump_stack_lvl+0x73/0xb0 [ 10.971264] print_report+0xd1/0x650 [ 10.971287] ? __virt_addr_valid+0x1db/0x2d0 [ 10.971309] ? kmalloc_oob_16+0x452/0x4a0 [ 10.971329] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.971351] ? kmalloc_oob_16+0x452/0x4a0 [ 10.971372] kasan_report+0x141/0x180 [ 10.971409] ? kmalloc_oob_16+0x452/0x4a0 [ 10.971435] __asan_report_store16_noabort+0x1b/0x30 [ 10.971457] kmalloc_oob_16+0x452/0x4a0 [ 10.971479] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 10.971500] ? __schedule+0x10cc/0x2b60 [ 10.971524] ? __pfx_read_tsc+0x10/0x10 [ 10.971544] ? ktime_get_ts64+0x86/0x230 [ 10.971568] kunit_try_run_case+0x1a5/0x480 [ 10.971588] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.971607] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.971631] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.971655] ? __kthread_parkme+0x82/0x180 [ 10.971675] ? preempt_count_sub+0x50/0x80 [ 10.971698] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.971728] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.971752] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.971776] kthread+0x337/0x6f0 [ 10.971794] ? trace_preempt_on+0x20/0xc0 [ 10.971817] ? __pfx_kthread+0x10/0x10 [ 10.971838] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.971860] ? calculate_sigpending+0x7b/0xa0 [ 10.971883] ? __pfx_kthread+0x10/0x10 [ 10.971904] ret_from_fork+0x116/0x1d0 [ 10.971922] ? __pfx_kthread+0x10/0x10 [ 10.971942] ret_from_fork_asm+0x1a/0x30 [ 10.971972] </TASK> [ 10.971983] [ 10.985546] Allocated by task 184: [ 10.985900] kasan_save_stack+0x45/0x70 [ 10.986327] kasan_save_track+0x18/0x40 [ 10.986694] kasan_save_alloc_info+0x3b/0x50 [ 10.987109] __kasan_kmalloc+0xb7/0xc0 [ 10.987332] __kmalloc_cache_noprof+0x189/0x420 [ 10.987500] kmalloc_oob_16+0xa8/0x4a0 [ 10.987636] kunit_try_run_case+0x1a5/0x480 [ 10.987857] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.988368] kthread+0x337/0x6f0 [ 10.988686] ret_from_fork+0x116/0x1d0 [ 10.989054] ret_from_fork_asm+0x1a/0x30 [ 10.989463] [ 10.989625] The buggy address belongs to the object at ffff888101e622a0 [ 10.989625] which belongs to the cache kmalloc-16 of size 16 [ 10.991055] The buggy address is located 0 bytes inside of [ 10.991055] allocated 13-byte region [ffff888101e622a0, ffff888101e622ad) [ 10.991810] [ 10.991890] The buggy address belongs to the physical page: [ 10.992262] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e62 [ 10.993002] flags: 0x200000000000000(node=0|zone=2) [ 10.993520] page_type: f5(slab) [ 10.993829] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 10.994628] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 10.995073] page dumped because: kasan: bad access detected [ 10.995819] [ 10.995987] Memory state around the buggy address: [ 10.996260] ffff888101e62180: 00 00 fc fc 00 02 fc fc 00 02 fc fc 00 06 fc fc [ 10.996498] ffff888101e62200: 00 06 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 10.996728] >ffff888101e62280: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 10.997372] ^ [ 10.997813] ffff888101e62300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.998589] ffff888101e62380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.999297] ==================================================================