Date
July 10, 2025, 6:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.849774] ================================================================== [ 16.849851] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.849951] Write of size 16 at addr fff00000c4498de0 by task kunit_try_catch/166 [ 16.850003] [ 16.850037] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.850116] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.850143] Hardware name: linux,dummy-virt (DT) [ 16.850172] Call trace: [ 16.850194] show_stack+0x20/0x38 (C) [ 16.850757] dump_stack_lvl+0x8c/0xd0 [ 16.850822] print_report+0x118/0x608 [ 16.850869] kasan_report+0xdc/0x128 [ 16.850915] __asan_report_store16_noabort+0x20/0x30 [ 16.850964] kmalloc_oob_16+0x3a0/0x3f8 [ 16.851008] kunit_try_run_case+0x170/0x3f0 [ 16.851056] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.851109] kthread+0x328/0x630 [ 16.851151] ret_from_fork+0x10/0x20 [ 16.851198] [ 16.851216] Allocated by task 166: [ 16.851243] kasan_save_stack+0x3c/0x68 [ 16.851283] kasan_save_track+0x20/0x40 [ 16.851320] kasan_save_alloc_info+0x40/0x58 [ 16.851413] __kasan_kmalloc+0xd4/0xd8 [ 16.851503] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.851635] kmalloc_oob_16+0xb4/0x3f8 [ 16.851742] kunit_try_run_case+0x170/0x3f0 [ 16.851780] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.852239] kthread+0x328/0x630 [ 16.852322] ret_from_fork+0x10/0x20 [ 16.852400] [ 16.852419] The buggy address belongs to the object at fff00000c4498de0 [ 16.852419] which belongs to the cache kmalloc-16 of size 16 [ 16.852673] The buggy address is located 0 bytes inside of [ 16.852673] allocated 13-byte region [fff00000c4498de0, fff00000c4498ded) [ 16.852868] [ 16.852947] The buggy address belongs to the physical page: [ 16.853010] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104498 [ 16.853089] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.853137] page_type: f5(slab) [ 16.853237] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.853445] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.853484] page dumped because: kasan: bad access detected [ 16.853526] [ 16.853544] Memory state around the buggy address: [ 16.853573] fff00000c4498c80: 00 06 fc fc fa fb fc fc 00 00 fc fc fa fb fc fc [ 16.853713] fff00000c4498d00: fa fb fc fc 00 00 fc fc 00 00 fc fc 00 00 fc fc [ 16.853795] >fff00000c4498d80: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 16.853844] ^ [ 16.853882] fff00000c4498e00: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.853922] fff00000c4498e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.853958] ==================================================================
[ 12.520542] ================================================================== [ 12.521508] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.521805] Write of size 16 at addr ffff888101debe20 by task kunit_try_catch/183 [ 12.522202] [ 12.522320] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.522364] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.522375] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.522394] Call Trace: [ 12.522406] <TASK> [ 12.522420] dump_stack_lvl+0x73/0xb0 [ 12.522451] print_report+0xd1/0x650 [ 12.522473] ? __virt_addr_valid+0x1db/0x2d0 [ 12.522496] ? kmalloc_oob_16+0x452/0x4a0 [ 12.522516] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.522541] ? kmalloc_oob_16+0x452/0x4a0 [ 12.522561] kasan_report+0x141/0x180 [ 12.522582] ? kmalloc_oob_16+0x452/0x4a0 [ 12.522607] __asan_report_store16_noabort+0x1b/0x30 [ 12.522632] kmalloc_oob_16+0x452/0x4a0 [ 12.522652] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.522674] ? __schedule+0x10cc/0x2b60 [ 12.522696] ? __pfx_read_tsc+0x10/0x10 [ 12.522718] ? ktime_get_ts64+0x86/0x230 [ 12.522743] kunit_try_run_case+0x1a5/0x480 [ 12.522768] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.522791] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.522861] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.522886] ? __kthread_parkme+0x82/0x180 [ 12.522907] ? preempt_count_sub+0x50/0x80 [ 12.522931] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.522954] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.522979] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.523003] kthread+0x337/0x6f0 [ 12.523022] ? trace_preempt_on+0x20/0xc0 [ 12.523058] ? __pfx_kthread+0x10/0x10 [ 12.523078] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.523099] ? calculate_sigpending+0x7b/0xa0 [ 12.523123] ? __pfx_kthread+0x10/0x10 [ 12.523144] ret_from_fork+0x116/0x1d0 [ 12.523162] ? __pfx_kthread+0x10/0x10 [ 12.523182] ret_from_fork_asm+0x1a/0x30 [ 12.523212] </TASK> [ 12.523222] [ 12.530379] Allocated by task 183: [ 12.530627] kasan_save_stack+0x45/0x70 [ 12.530813] kasan_save_track+0x18/0x40 [ 12.530954] kasan_save_alloc_info+0x3b/0x50 [ 12.531118] __kasan_kmalloc+0xb7/0xc0 [ 12.531413] __kmalloc_cache_noprof+0x189/0x420 [ 12.531656] kmalloc_oob_16+0xa8/0x4a0 [ 12.531849] kunit_try_run_case+0x1a5/0x480 [ 12.532098] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.532480] kthread+0x337/0x6f0 [ 12.532689] ret_from_fork+0x116/0x1d0 [ 12.532899] ret_from_fork_asm+0x1a/0x30 [ 12.533133] [ 12.533205] The buggy address belongs to the object at ffff888101debe20 [ 12.533205] which belongs to the cache kmalloc-16 of size 16 [ 12.533592] The buggy address is located 0 bytes inside of [ 12.533592] allocated 13-byte region [ffff888101debe20, ffff888101debe2d) [ 12.534117] [ 12.534277] The buggy address belongs to the physical page: [ 12.534534] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101deb [ 12.534785] flags: 0x200000000000000(node=0|zone=2) [ 12.535122] page_type: f5(slab) [ 12.535387] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.535645] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.535870] page dumped because: kasan: bad access detected [ 12.536115] [ 12.536208] Memory state around the buggy address: [ 12.536429] ffff888101debd00: 00 05 fc fc 00 02 fc fc 00 02 fc fc 00 02 fc fc [ 12.536952] ffff888101debd80: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 12.537192] >ffff888101debe00: 00 05 fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 12.537405] ^ [ 12.537847] ffff888101debe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.538525] ffff888101debf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.538747] ==================================================================