Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.652738] ================================================================== [ 16.653084] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.653184] Write of size 16 at addr fff00000c3eef500 by task kunit_try_catch/166 [ 16.653247] [ 16.653285] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.653386] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.653441] Hardware name: linux,dummy-virt (DT) [ 16.653503] Call trace: [ 16.653541] show_stack+0x20/0x38 (C) [ 16.653606] dump_stack_lvl+0x8c/0xd0 [ 16.653689] print_report+0x118/0x5d0 [ 16.653789] kasan_report+0xdc/0x128 [ 16.653836] __asan_report_store16_noabort+0x20/0x30 [ 16.653888] kmalloc_oob_16+0x3a0/0x3f8 [ 16.653931] kunit_try_run_case+0x170/0x3f0 [ 16.654105] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.654348] kthread+0x328/0x630 [ 16.654437] ret_from_fork+0x10/0x20 [ 16.654513] [ 16.654531] Allocated by task 166: [ 16.654558] kasan_save_stack+0x3c/0x68 [ 16.654614] kasan_save_track+0x20/0x40 [ 16.654704] kasan_save_alloc_info+0x40/0x58 [ 16.654810] __kasan_kmalloc+0xd4/0xd8 [ 16.654873] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.654955] kmalloc_oob_16+0xb4/0x3f8 [ 16.654990] kunit_try_run_case+0x170/0x3f0 [ 16.655027] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.655069] kthread+0x328/0x630 [ 16.655112] ret_from_fork+0x10/0x20 [ 16.655147] [ 16.655166] The buggy address belongs to the object at fff00000c3eef500 [ 16.655166] which belongs to the cache kmalloc-16 of size 16 [ 16.655239] The buggy address is located 0 bytes inside of [ 16.655239] allocated 13-byte region [fff00000c3eef500, fff00000c3eef50d) [ 16.655348] [ 16.655382] The buggy address belongs to the physical page: [ 16.655599] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103eef [ 16.655695] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.655831] page_type: f5(slab) [ 16.655981] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.656076] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.656191] page dumped because: kasan: bad access detected [ 16.656270] [ 16.656319] Memory state around the buggy address: [ 16.656383] fff00000c3eef400: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 16.656434] fff00000c3eef480: fa fb fc fc fa fb fc fc 00 04 fc fc fa fb fc fc [ 16.656626] >fff00000c3eef500: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 16.656665] ^ [ 16.656692] fff00000c3eef580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.656952] fff00000c3eef600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.657049] ==================================================================
[ 12.527460] ================================================================== [ 12.528659] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.529771] Write of size 16 at addr ffff8881009b2f40 by task kunit_try_catch/183 [ 12.530502] [ 12.530610] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.530656] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.530668] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.530687] Call Trace: [ 12.530698] <TASK> [ 12.530713] dump_stack_lvl+0x73/0xb0 [ 12.530743] print_report+0xd1/0x610 [ 12.530779] ? __virt_addr_valid+0x1db/0x2d0 [ 12.530801] ? kmalloc_oob_16+0x452/0x4a0 [ 12.530822] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.530845] ? kmalloc_oob_16+0x452/0x4a0 [ 12.530866] kasan_report+0x141/0x180 [ 12.530889] ? kmalloc_oob_16+0x452/0x4a0 [ 12.530914] __asan_report_store16_noabort+0x1b/0x30 [ 12.530940] kmalloc_oob_16+0x452/0x4a0 [ 12.530961] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.530984] ? __schedule+0x10cc/0x2b60 [ 12.531005] ? __pfx_read_tsc+0x10/0x10 [ 12.531026] ? ktime_get_ts64+0x86/0x230 [ 12.531051] kunit_try_run_case+0x1a5/0x480 [ 12.531076] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.531100] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.531125] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.531149] ? __kthread_parkme+0x82/0x180 [ 12.531170] ? preempt_count_sub+0x50/0x80 [ 12.531201] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.531226] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.531250] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.531276] kthread+0x337/0x6f0 [ 12.531295] ? trace_preempt_on+0x20/0xc0 [ 12.531320] ? __pfx_kthread+0x10/0x10 [ 12.531340] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.531362] ? calculate_sigpending+0x7b/0xa0 [ 12.531539] ? __pfx_kthread+0x10/0x10 [ 12.531565] ret_from_fork+0x116/0x1d0 [ 12.531585] ? __pfx_kthread+0x10/0x10 [ 12.531607] ret_from_fork_asm+0x1a/0x30 [ 12.531772] </TASK> [ 12.531787] [ 12.545136] Allocated by task 183: [ 12.545471] kasan_save_stack+0x45/0x70 [ 12.545649] kasan_save_track+0x18/0x40 [ 12.545823] kasan_save_alloc_info+0x3b/0x50 [ 12.546818] __kasan_kmalloc+0xb7/0xc0 [ 12.547153] __kmalloc_cache_noprof+0x189/0x420 [ 12.547352] kmalloc_oob_16+0xa8/0x4a0 [ 12.547524] kunit_try_run_case+0x1a5/0x480 [ 12.547690] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.547950] kthread+0x337/0x6f0 [ 12.548204] ret_from_fork+0x116/0x1d0 [ 12.548404] ret_from_fork_asm+0x1a/0x30 [ 12.548623] [ 12.548721] The buggy address belongs to the object at ffff8881009b2f40 [ 12.548721] which belongs to the cache kmalloc-16 of size 16 [ 12.549251] The buggy address is located 0 bytes inside of [ 12.549251] allocated 13-byte region [ffff8881009b2f40, ffff8881009b2f4d) [ 12.549680] [ 12.549890] The buggy address belongs to the physical page: [ 12.551646] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1009b2 [ 12.552542] flags: 0x200000000000000(node=0|zone=2) [ 12.552715] page_type: f5(slab) [ 12.552852] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.554267] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.555251] page dumped because: kasan: bad access detected [ 12.555504] [ 12.555586] Memory state around the buggy address: [ 12.555904] ffff8881009b2e00: 00 00 fc fc fa fb fc fc 00 05 fc fc 00 05 fc fc [ 12.556278] ffff8881009b2e80: 00 00 fc fc 00 06 fc fc 00 06 fc fc 00 00 fc fc [ 12.556588] >ffff8881009b2f00: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 12.556904] ^ [ 12.557232] ffff8881009b2f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.557538] ffff8881009b3000: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 12.557854] ==================================================================