Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.126252] ================================================================== [ 18.126324] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 18.126433] Write of size 16 at addr fff00000c3f3ebe0 by task kunit_try_catch/166 [ 18.126519] [ 18.126555] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.126647] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.126754] Hardware name: linux,dummy-virt (DT) [ 18.126821] Call trace: [ 18.126860] show_stack+0x20/0x38 (C) [ 18.126926] dump_stack_lvl+0x8c/0xd0 [ 18.126983] print_report+0x118/0x608 [ 18.127057] kasan_report+0xdc/0x128 [ 18.127137] __asan_report_store16_noabort+0x20/0x30 [ 18.127256] kmalloc_oob_16+0x3a0/0x3f8 [ 18.127301] kunit_try_run_case+0x170/0x3f0 [ 18.127346] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.127397] kthread+0x328/0x630 [ 18.127438] ret_from_fork+0x10/0x20 [ 18.127484] [ 18.127510] Allocated by task 166: [ 18.127538] kasan_save_stack+0x3c/0x68 [ 18.127585] kasan_save_track+0x20/0x40 [ 18.127621] kasan_save_alloc_info+0x40/0x58 [ 18.127659] __kasan_kmalloc+0xd4/0xd8 [ 18.127694] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.127732] kmalloc_oob_16+0xb4/0x3f8 [ 18.127765] kunit_try_run_case+0x170/0x3f0 [ 18.127801] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.127842] kthread+0x328/0x630 [ 18.127873] ret_from_fork+0x10/0x20 [ 18.127906] [ 18.127924] The buggy address belongs to the object at fff00000c3f3ebe0 [ 18.127924] which belongs to the cache kmalloc-16 of size 16 [ 18.127992] The buggy address is located 0 bytes inside of [ 18.127992] allocated 13-byte region [fff00000c3f3ebe0, fff00000c3f3ebed) [ 18.128060] [ 18.128080] The buggy address belongs to the physical page: [ 18.128117] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f3e [ 18.128168] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.128214] page_type: f5(slab) [ 18.128251] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.128308] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.128356] page dumped because: kasan: bad access detected [ 18.128385] [ 18.128402] Memory state around the buggy address: [ 18.128443] fff00000c3f3ea80: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 18.128485] fff00000c3f3eb00: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 18.128531] >fff00000c3f3eb80: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 18.128567] ^ [ 18.128613] fff00000c3f3ec00: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.128653] fff00000c3f3ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.128689] ==================================================================
[ 11.393484] ================================================================== [ 11.394773] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.395464] Write of size 16 at addr ffff888102796080 by task kunit_try_catch/185 [ 11.395721] [ 11.396135] CPU: 1 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.396186] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.396198] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.396218] Call Trace: [ 11.396231] <TASK> [ 11.396250] dump_stack_lvl+0x73/0xb0 [ 11.396283] print_report+0xd1/0x650 [ 11.396307] ? __virt_addr_valid+0x1db/0x2d0 [ 11.396331] ? kmalloc_oob_16+0x452/0x4a0 [ 11.396351] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.396372] ? kmalloc_oob_16+0x452/0x4a0 [ 11.396402] kasan_report+0x141/0x180 [ 11.396424] ? kmalloc_oob_16+0x452/0x4a0 [ 11.396451] __asan_report_store16_noabort+0x1b/0x30 [ 11.396471] kmalloc_oob_16+0x452/0x4a0 [ 11.396492] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.396514] ? __schedule+0x10cc/0x2b60 [ 11.396537] ? __pfx_read_tsc+0x10/0x10 [ 11.396559] ? ktime_get_ts64+0x86/0x230 [ 11.396587] kunit_try_run_case+0x1a5/0x480 [ 11.396612] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.396633] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.396658] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.396680] ? __kthread_parkme+0x82/0x180 [ 11.396701] ? preempt_count_sub+0x50/0x80 [ 11.396726] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.396749] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.396778] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.396800] kthread+0x337/0x6f0 [ 11.396819] ? trace_preempt_on+0x20/0xc0 [ 11.396845] ? __pfx_kthread+0x10/0x10 [ 11.396866] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.396889] ? calculate_sigpending+0x7b/0xa0 [ 11.396916] ? __pfx_kthread+0x10/0x10 [ 11.396937] ret_from_fork+0x116/0x1d0 [ 11.396955] ? __pfx_kthread+0x10/0x10 [ 11.396975] ret_from_fork_asm+0x1a/0x30 [ 11.397011] </TASK> [ 11.397022] [ 11.405213] Allocated by task 185: [ 11.405538] kasan_save_stack+0x45/0x70 [ 11.405873] kasan_save_track+0x18/0x40 [ 11.406055] kasan_save_alloc_info+0x3b/0x50 [ 11.406297] __kasan_kmalloc+0xb7/0xc0 [ 11.406522] __kmalloc_cache_noprof+0x189/0x420 [ 11.406814] kmalloc_oob_16+0xa8/0x4a0 [ 11.407060] kunit_try_run_case+0x1a5/0x480 [ 11.407336] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.407658] kthread+0x337/0x6f0 [ 11.407847] ret_from_fork+0x116/0x1d0 [ 11.408112] ret_from_fork_asm+0x1a/0x30 [ 11.408308] [ 11.408422] The buggy address belongs to the object at ffff888102796080 [ 11.408422] which belongs to the cache kmalloc-16 of size 16 [ 11.409044] The buggy address is located 0 bytes inside of [ 11.409044] allocated 13-byte region [ffff888102796080, ffff88810279608d) [ 11.409859] [ 11.409971] The buggy address belongs to the physical page: [ 11.410263] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102796 [ 11.410729] flags: 0x200000000000000(node=0|zone=2) [ 11.411019] page_type: f5(slab) [ 11.411190] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.411530] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.411969] page dumped because: kasan: bad access detected [ 11.412249] [ 11.412341] Memory state around the buggy address: [ 11.412509] ffff888102795f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.412972] ffff888102796000: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 11.413261] >ffff888102796080: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 11.413646] ^ [ 11.413932] ffff888102796100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.414221] ffff888102796180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.414611] ==================================================================