Date
June 16, 2025, 7:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.177969] ================================================================== [ 19.178114] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 19.178245] Write of size 16 at addr fff00000c6397120 by task kunit_try_catch/175 [ 19.178780] [ 19.178955] CPU: 0 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT [ 19.179211] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.179298] Hardware name: linux,dummy-virt (DT) [ 19.179379] Call trace: [ 19.179432] show_stack+0x20/0x38 (C) [ 19.179552] dump_stack_lvl+0x8c/0xd0 [ 19.179654] print_report+0x118/0x608 [ 19.179751] kasan_report+0xdc/0x128 [ 19.179866] __asan_report_store16_noabort+0x20/0x30 [ 19.179982] kmalloc_oob_16+0x3a0/0x3f8 [ 19.180085] kunit_try_run_case+0x170/0x3f0 [ 19.180193] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.180310] kthread+0x328/0x630 [ 19.180406] ret_from_fork+0x10/0x20 [ 19.180515] [ 19.180555] Allocated by task 175: [ 19.180617] kasan_save_stack+0x3c/0x68 [ 19.180704] kasan_save_track+0x20/0x40 [ 19.180827] kasan_save_alloc_info+0x40/0x58 [ 19.180912] __kasan_kmalloc+0xd4/0xd8 [ 19.181146] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.181422] kmalloc_oob_16+0xb4/0x3f8 [ 19.181633] kunit_try_run_case+0x170/0x3f0 [ 19.181796] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.181933] kthread+0x328/0x630 [ 19.182048] ret_from_fork+0x10/0x20 [ 19.182139] [ 19.182196] The buggy address belongs to the object at fff00000c6397120 [ 19.182196] which belongs to the cache kmalloc-16 of size 16 [ 19.182398] The buggy address is located 0 bytes inside of [ 19.182398] allocated 13-byte region [fff00000c6397120, fff00000c639712d) [ 19.182540] [ 19.182581] The buggy address belongs to the physical page: [ 19.182644] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106397 [ 19.182771] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.183092] page_type: f5(slab) [ 19.183229] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 19.183396] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 19.183529] page dumped because: kasan: bad access detected [ 19.183636] [ 19.183679] Memory state around the buggy address: [ 19.183755] fff00000c6397000: 00 05 fc fc fa fb fc fc 00 02 fc fc fa fb fc fc [ 19.183889] fff00000c6397080: fa fb fc fc fa fb fc fc fa fb fc fc 00 04 fc fc [ 19.184041] >fff00000c6397100: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 19.184176] ^ [ 19.184284] fff00000c6397180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.184388] fff00000c6397200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.184514] ==================================================================
[ 11.410132] ================================================================== [ 11.411494] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.412483] Write of size 16 at addr ffff888102225da0 by task kunit_try_catch/191 [ 11.413083] [ 11.413183] CPU: 0 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250616 #1 PREEMPT(voluntary) [ 11.413231] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.413243] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.413263] Call Trace: [ 11.413276] <TASK> [ 11.413296] dump_stack_lvl+0x73/0xb0 [ 11.413327] print_report+0xd1/0x650 [ 11.413348] ? __virt_addr_valid+0x1db/0x2d0 [ 11.413373] ? kmalloc_oob_16+0x452/0x4a0 [ 11.413418] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.413441] ? kmalloc_oob_16+0x452/0x4a0 [ 11.413461] kasan_report+0x141/0x180 [ 11.413482] ? kmalloc_oob_16+0x452/0x4a0 [ 11.413506] __asan_report_store16_noabort+0x1b/0x30 [ 11.413604] kmalloc_oob_16+0x452/0x4a0 [ 11.413627] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.413662] ? __schedule+0x10cc/0x2b60 [ 11.413690] ? __pfx_read_tsc+0x10/0x10 [ 11.413712] ? ktime_get_ts64+0x86/0x230 [ 11.413737] kunit_try_run_case+0x1a5/0x480 [ 11.413761] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.413782] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.413803] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.413824] ? __kthread_parkme+0x82/0x180 [ 11.413844] ? preempt_count_sub+0x50/0x80 [ 11.413867] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.413889] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.413911] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.413941] kthread+0x337/0x6f0 [ 11.413959] ? trace_preempt_on+0x20/0xc0 [ 11.413983] ? __pfx_kthread+0x10/0x10 [ 11.414003] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.414022] ? calculate_sigpending+0x7b/0xa0 [ 11.414045] ? __pfx_kthread+0x10/0x10 [ 11.414065] ret_from_fork+0x116/0x1d0 [ 11.414083] ? __pfx_kthread+0x10/0x10 [ 11.414102] ret_from_fork_asm+0x1a/0x30 [ 11.414132] </TASK> [ 11.414143] [ 11.424833] Allocated by task 191: [ 11.425030] kasan_save_stack+0x45/0x70 [ 11.425169] kasan_save_track+0x18/0x40 [ 11.425310] kasan_save_alloc_info+0x3b/0x50 [ 11.425508] __kasan_kmalloc+0xb7/0xc0 [ 11.425809] __kmalloc_cache_noprof+0x189/0x420 [ 11.426193] kmalloc_oob_16+0xa8/0x4a0 [ 11.426352] kunit_try_run_case+0x1a5/0x480 [ 11.426939] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.427174] kthread+0x337/0x6f0 [ 11.427333] ret_from_fork+0x116/0x1d0 [ 11.427944] ret_from_fork_asm+0x1a/0x30 [ 11.428247] [ 11.428581] The buggy address belongs to the object at ffff888102225da0 [ 11.428581] which belongs to the cache kmalloc-16 of size 16 [ 11.429086] The buggy address is located 0 bytes inside of [ 11.429086] allocated 13-byte region [ffff888102225da0, ffff888102225dad) [ 11.429959] [ 11.430205] The buggy address belongs to the physical page: [ 11.430650] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102225 [ 11.430989] flags: 0x200000000000000(node=0|zone=2) [ 11.431198] page_type: f5(slab) [ 11.431347] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.431958] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.432264] page dumped because: kasan: bad access detected [ 11.432594] [ 11.432961] Memory state around the buggy address: [ 11.433379] ffff888102225c80: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 11.434137] ffff888102225d00: 00 05 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 11.434580] >ffff888102225d80: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 11.434868] ^ [ 11.435068] ffff888102225e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.435337] ffff888102225e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.435806] ==================================================================