Date
July 3, 2025, 3:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.529745] ================================================================== [ 15.529849] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 15.530129] Write of size 16 at addr fff00000c55f08a0 by task kunit_try_catch/169 [ 15.530215] [ 15.530335] CPU: 1 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT [ 15.530417] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.530718] Hardware name: linux,dummy-virt (DT) [ 15.530777] Call trace: [ 15.531012] show_stack+0x20/0x38 (C) [ 15.531144] dump_stack_lvl+0x8c/0xd0 [ 15.531276] print_report+0x118/0x608 [ 15.531418] kasan_report+0xdc/0x128 [ 15.531466] __asan_report_store16_noabort+0x20/0x30 [ 15.531913] kmalloc_oob_16+0x3a0/0x3f8 [ 15.531996] kunit_try_run_case+0x170/0x3f0 [ 15.532132] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.532238] kthread+0x328/0x630 [ 15.532381] ret_from_fork+0x10/0x20 [ 15.532441] [ 15.532458] Allocated by task 169: [ 15.532791] kasan_save_stack+0x3c/0x68 [ 15.532914] kasan_save_track+0x20/0x40 [ 15.532964] kasan_save_alloc_info+0x40/0x58 [ 15.533376] __kasan_kmalloc+0xd4/0xd8 [ 15.533605] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.533703] kmalloc_oob_16+0xb4/0x3f8 [ 15.533832] kunit_try_run_case+0x170/0x3f0 [ 15.533882] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.534234] kthread+0x328/0x630 [ 15.534488] ret_from_fork+0x10/0x20 [ 15.534610] [ 15.534663] The buggy address belongs to the object at fff00000c55f08a0 [ 15.534663] which belongs to the cache kmalloc-16 of size 16 [ 15.534760] The buggy address is located 0 bytes inside of [ 15.534760] allocated 13-byte region [fff00000c55f08a0, fff00000c55f08ad) [ 15.535016] [ 15.535166] The buggy address belongs to the physical page: [ 15.535228] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1055f0 [ 15.535367] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.535559] page_type: f5(slab) [ 15.535647] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 15.535838] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 15.535906] page dumped because: kasan: bad access detected [ 15.536113] [ 15.536298] Memory state around the buggy address: [ 15.536808] fff00000c55f0780: 00 00 fc fc 00 00 fc fc 00 00 fc fc 00 02 fc fc [ 15.537119] fff00000c55f0800: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 15.537217] >fff00000c55f0880: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 15.537313] ^ [ 15.537361] fff00000c55f0900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.537403] fff00000c55f0980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.537618] ==================================================================
[ 11.194048] ================================================================== [ 11.194651] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.194955] Write of size 16 at addr ffff888102307da0 by task kunit_try_catch/185 [ 11.195282] [ 11.195422] CPU: 1 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT(voluntary) [ 11.195470] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.195482] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.195503] Call Trace: [ 11.195516] <TASK> [ 11.195534] dump_stack_lvl+0x73/0xb0 [ 11.195560] print_report+0xd1/0x650 [ 11.195583] ? __virt_addr_valid+0x1db/0x2d0 [ 11.195616] ? kmalloc_oob_16+0x452/0x4a0 [ 11.195637] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.195660] ? kmalloc_oob_16+0x452/0x4a0 [ 11.195692] kasan_report+0x141/0x180 [ 11.195715] ? kmalloc_oob_16+0x452/0x4a0 [ 11.195752] __asan_report_store16_noabort+0x1b/0x30 [ 11.195774] kmalloc_oob_16+0x452/0x4a0 [ 11.195796] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.195818] ? __schedule+0x10cc/0x2b60 [ 11.195841] ? __pfx_read_tsc+0x10/0x10 [ 11.195861] ? ktime_get_ts64+0x86/0x230 [ 11.195896] kunit_try_run_case+0x1a5/0x480 [ 11.195921] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.195953] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.195986] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.196009] ? __kthread_parkme+0x82/0x180 [ 11.196041] ? preempt_count_sub+0x50/0x80 [ 11.196067] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.196090] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.196112] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.196135] kthread+0x337/0x6f0 [ 11.196152] ? trace_preempt_on+0x20/0xc0 [ 11.196175] ? __pfx_kthread+0x10/0x10 [ 11.196193] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.196215] ? calculate_sigpending+0x7b/0xa0 [ 11.196247] ? __pfx_kthread+0x10/0x10 [ 11.196265] ret_from_fork+0x41/0x80 [ 11.196286] ? __pfx_kthread+0x10/0x10 [ 11.196303] ret_from_fork_asm+0x1a/0x30 [ 11.196335] </TASK> [ 11.196346] [ 11.203218] Allocated by task 185: [ 11.203370] kasan_save_stack+0x45/0x70 [ 11.203516] kasan_save_track+0x18/0x40 [ 11.203651] kasan_save_alloc_info+0x3b/0x50 [ 11.204103] __kasan_kmalloc+0xb7/0xc0 [ 11.204301] __kmalloc_cache_noprof+0x189/0x420 [ 11.204520] kmalloc_oob_16+0xa8/0x4a0 [ 11.204678] kunit_try_run_case+0x1a5/0x480 [ 11.204885] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.205125] kthread+0x337/0x6f0 [ 11.205252] ret_from_fork+0x41/0x80 [ 11.205383] ret_from_fork_asm+0x1a/0x30 [ 11.205539] [ 11.205636] The buggy address belongs to the object at ffff888102307da0 [ 11.205636] which belongs to the cache kmalloc-16 of size 16 [ 11.206222] The buggy address is located 0 bytes inside of [ 11.206222] allocated 13-byte region [ffff888102307da0, ffff888102307dad) [ 11.206710] [ 11.206822] The buggy address belongs to the physical page: [ 11.207053] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102307 [ 11.207395] flags: 0x200000000000000(node=0|zone=2) [ 11.207616] page_type: f5(slab) [ 11.207814] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.208154] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.208429] page dumped because: kasan: bad access detected [ 11.208601] [ 11.208670] Memory state around the buggy address: [ 11.208825] ffff888102307c80: 00 02 fc fc 00 06 fc fc 00 06 fc fc 00 04 fc fc [ 11.209244] ffff888102307d00: 00 04 fc fc 00 01 fc fc 00 01 fc fc 00 04 fc fc [ 11.209586] >ffff888102307d80: 00 04 fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 11.210245] ^ [ 11.210421] ffff888102307e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.210636] ffff888102307e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.210848] ==================================================================