Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.034410] ================================================================== [ 18.034861] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 18.034941] Write of size 16 at addr fff00000c6173780 by task kunit_try_catch/166 [ 18.035123] [ 18.035361] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.035637] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.035712] Hardware name: linux,dummy-virt (DT) [ 18.035800] Call trace: [ 18.035958] show_stack+0x20/0x38 (C) [ 18.036112] dump_stack_lvl+0x8c/0xd0 [ 18.036244] print_report+0x118/0x608 [ 18.036589] kasan_report+0xdc/0x128 [ 18.036727] __asan_report_store16_noabort+0x20/0x30 [ 18.036932] kmalloc_oob_16+0x3a0/0x3f8 [ 18.037093] kunit_try_run_case+0x170/0x3f0 [ 18.037223] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.037355] kthread+0x328/0x630 [ 18.037716] ret_from_fork+0x10/0x20 [ 18.037999] [ 18.038136] Allocated by task 166: [ 18.038315] kasan_save_stack+0x3c/0x68 [ 18.038372] kasan_save_track+0x20/0x40 [ 18.038434] kasan_save_alloc_info+0x40/0x58 [ 18.038788] __kasan_kmalloc+0xd4/0xd8 [ 18.038846] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.039218] kmalloc_oob_16+0xb4/0x3f8 [ 18.039327] kunit_try_run_case+0x170/0x3f0 [ 18.039418] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.039586] kthread+0x328/0x630 [ 18.039772] ret_from_fork+0x10/0x20 [ 18.039823] [ 18.039843] The buggy address belongs to the object at fff00000c6173780 [ 18.039843] which belongs to the cache kmalloc-16 of size 16 [ 18.039919] The buggy address is located 0 bytes inside of [ 18.039919] allocated 13-byte region [fff00000c6173780, fff00000c617378d) [ 18.040334] [ 18.040571] The buggy address belongs to the physical page: [ 18.040648] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106173 [ 18.040772] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.041227] page_type: f5(slab) [ 18.041388] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.041558] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.041627] page dumped because: kasan: bad access detected [ 18.041789] [ 18.041867] Memory state around the buggy address: [ 18.041907] fff00000c6173680: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 18.042277] fff00000c6173700: fa fb fc fc fa fb fc fc 00 04 fc fc fa fb fc fc [ 18.042353] >fff00000c6173780: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 18.043083] ^ [ 18.043157] fff00000c6173800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.043225] fff00000c6173880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.043332] ==================================================================
[ 11.865775] ================================================================== [ 11.866550] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.867330] Write of size 16 at addr ffff88810298e0a0 by task kunit_try_catch/183 [ 11.868099] [ 11.868240] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.868338] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.868350] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.868384] Call Trace: [ 11.868400] <TASK> [ 11.868421] dump_stack_lvl+0x73/0xb0 [ 11.868459] print_report+0xd1/0x650 [ 11.868482] ? __virt_addr_valid+0x1db/0x2d0 [ 11.868504] ? kmalloc_oob_16+0x452/0x4a0 [ 11.868524] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.868544] ? kmalloc_oob_16+0x452/0x4a0 [ 11.868565] kasan_report+0x141/0x180 [ 11.868585] ? kmalloc_oob_16+0x452/0x4a0 [ 11.868609] __asan_report_store16_noabort+0x1b/0x30 [ 11.868629] kmalloc_oob_16+0x452/0x4a0 [ 11.868648] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.868669] ? __schedule+0x10cc/0x2b60 [ 11.868690] ? __pfx_read_tsc+0x10/0x10 [ 11.868709] ? ktime_get_ts64+0x86/0x230 [ 11.868733] kunit_try_run_case+0x1a5/0x480 [ 11.868757] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.868777] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.868808] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.868830] ? __kthread_parkme+0x82/0x180 [ 11.868849] ? preempt_count_sub+0x50/0x80 [ 11.868871] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.868893] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.868914] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.868936] kthread+0x337/0x6f0 [ 11.868954] ? trace_preempt_on+0x20/0xc0 [ 11.868976] ? __pfx_kthread+0x10/0x10 [ 11.868994] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.869013] ? calculate_sigpending+0x7b/0xa0 [ 11.869036] ? __pfx_kthread+0x10/0x10 [ 11.869055] ret_from_fork+0x116/0x1d0 [ 11.869072] ? __pfx_kthread+0x10/0x10 [ 11.869091] ret_from_fork_asm+0x1a/0x30 [ 11.869120] </TASK> [ 11.869130] [ 11.876975] Allocated by task 183: [ 11.877182] kasan_save_stack+0x45/0x70 [ 11.877427] kasan_save_track+0x18/0x40 [ 11.877621] kasan_save_alloc_info+0x3b/0x50 [ 11.877831] __kasan_kmalloc+0xb7/0xc0 [ 11.878017] __kmalloc_cache_noprof+0x189/0x420 [ 11.878233] kmalloc_oob_16+0xa8/0x4a0 [ 11.878421] kunit_try_run_case+0x1a5/0x480 [ 11.878564] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.878803] kthread+0x337/0x6f0 [ 11.878961] ret_from_fork+0x116/0x1d0 [ 11.879107] ret_from_fork_asm+0x1a/0x30 [ 11.879251] [ 11.879322] The buggy address belongs to the object at ffff88810298e0a0 [ 11.879322] which belongs to the cache kmalloc-16 of size 16 [ 11.879724] The buggy address is located 0 bytes inside of [ 11.879724] allocated 13-byte region [ffff88810298e0a0, ffff88810298e0ad) [ 11.880295] [ 11.880392] The buggy address belongs to the physical page: [ 11.880669] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10298e [ 11.880915] flags: 0x200000000000000(node=0|zone=2) [ 11.881075] page_type: f5(slab) [ 11.881351] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.881698] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.882032] page dumped because: kasan: bad access detected [ 11.882299] [ 11.882374] Memory state around the buggy address: [ 11.882582] ffff88810298df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.882832] ffff88810298e000: 00 01 fc fc 00 01 fc fc 00 04 fc fc 00 04 fc fc [ 11.883050] >ffff88810298e080: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 11.883511] ^ [ 11.883721] ffff88810298e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.883996] ffff88810298e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.884200] ==================================================================