Date
July 1, 2025, 3:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.994246] ================================================================== [ 16.994312] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 16.994371] Write of size 128 at addr fff00000c5733600 by task kunit_try_catch/171 [ 16.994421] [ 16.994456] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.994557] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.994678] Hardware name: linux,dummy-virt (DT) [ 16.994761] Call trace: [ 16.994784] show_stack+0x20/0x38 (C) [ 16.994834] dump_stack_lvl+0x8c/0xd0 [ 16.994882] print_report+0x118/0x608 [ 16.994927] kasan_report+0xdc/0x128 [ 16.994971] kasan_check_range+0x100/0x1a8 [ 16.995017] __asan_memset+0x34/0x78 [ 16.995058] kmalloc_oob_in_memset+0x144/0x2d0 [ 16.995103] kunit_try_run_case+0x170/0x3f0 [ 16.995149] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.995210] kthread+0x328/0x630 [ 16.995252] ret_from_fork+0x10/0x20 [ 16.995299] [ 16.995317] Allocated by task 171: [ 16.995344] kasan_save_stack+0x3c/0x68 [ 16.995384] kasan_save_track+0x20/0x40 [ 16.995420] kasan_save_alloc_info+0x40/0x58 [ 16.995459] __kasan_kmalloc+0xd4/0xd8 [ 16.995495] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.995533] kmalloc_oob_in_memset+0xb0/0x2d0 [ 16.995579] kunit_try_run_case+0x170/0x3f0 [ 16.995638] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.995781] kthread+0x328/0x630 [ 16.995841] ret_from_fork+0x10/0x20 [ 16.995942] [ 16.995960] The buggy address belongs to the object at fff00000c5733600 [ 16.995960] which belongs to the cache kmalloc-128 of size 128 [ 16.996018] The buggy address is located 0 bytes inside of [ 16.996018] allocated 120-byte region [fff00000c5733600, fff00000c5733678) [ 16.996080] [ 16.996100] The buggy address belongs to the physical page: [ 16.996132] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105733 [ 16.996186] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.996236] page_type: f5(slab) [ 16.996337] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.996392] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.996438] page dumped because: kasan: bad access detected [ 16.996495] [ 16.996524] Memory state around the buggy address: [ 16.996701] fff00000c5733500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.996769] fff00000c5733580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.996812] >fff00000c5733600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.996850] ^ [ 16.996898] fff00000c5733680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.996993] fff00000c5733700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.997031] ==================================================================
[ 11.625573] ================================================================== [ 11.626219] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 11.626469] Write of size 128 at addr ffff8881033ae000 by task kunit_try_catch/187 [ 11.626876] [ 11.627088] CPU: 0 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.627166] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.627178] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.627200] Call Trace: [ 11.627212] <TASK> [ 11.627234] dump_stack_lvl+0x73/0xb0 [ 11.627265] print_report+0xd1/0x650 [ 11.627288] ? __virt_addr_valid+0x1db/0x2d0 [ 11.627312] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.627333] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.627353] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.627374] kasan_report+0x141/0x180 [ 11.627395] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.627420] kasan_check_range+0x10c/0x1c0 [ 11.627443] __asan_memset+0x27/0x50 [ 11.627461] kmalloc_oob_in_memset+0x15f/0x320 [ 11.627482] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 11.627503] ? __schedule+0x10cc/0x2b60 [ 11.627524] ? __pfx_read_tsc+0x10/0x10 [ 11.627545] ? ktime_get_ts64+0x86/0x230 [ 11.627569] kunit_try_run_case+0x1a5/0x480 [ 11.627592] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.627612] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.627663] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.627685] ? __kthread_parkme+0x82/0x180 [ 11.627716] ? preempt_count_sub+0x50/0x80 [ 11.627752] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.627774] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.627796] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.627819] kthread+0x337/0x6f0 [ 11.627837] ? trace_preempt_on+0x20/0xc0 [ 11.627859] ? __pfx_kthread+0x10/0x10 [ 11.627878] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.627898] ? calculate_sigpending+0x7b/0xa0 [ 11.627920] ? __pfx_kthread+0x10/0x10 [ 11.627940] ret_from_fork+0x116/0x1d0 [ 11.627958] ? __pfx_kthread+0x10/0x10 [ 11.627976] ret_from_fork_asm+0x1a/0x30 [ 11.628006] </TASK> [ 11.628018] [ 11.639846] Allocated by task 187: [ 11.640233] kasan_save_stack+0x45/0x70 [ 11.640726] kasan_save_track+0x18/0x40 [ 11.641106] kasan_save_alloc_info+0x3b/0x50 [ 11.641524] __kasan_kmalloc+0xb7/0xc0 [ 11.641955] __kmalloc_cache_noprof+0x189/0x420 [ 11.642516] kmalloc_oob_in_memset+0xac/0x320 [ 11.642965] kunit_try_run_case+0x1a5/0x480 [ 11.643371] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.643984] kthread+0x337/0x6f0 [ 11.644368] ret_from_fork+0x116/0x1d0 [ 11.644764] ret_from_fork_asm+0x1a/0x30 [ 11.645220] [ 11.645411] The buggy address belongs to the object at ffff8881033ae000 [ 11.645411] which belongs to the cache kmalloc-128 of size 128 [ 11.646597] The buggy address is located 0 bytes inside of [ 11.646597] allocated 120-byte region [ffff8881033ae000, ffff8881033ae078) [ 11.647927] [ 11.648111] The buggy address belongs to the physical page: [ 11.648689] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1033ae [ 11.649430] flags: 0x200000000000000(node=0|zone=2) [ 11.649983] page_type: f5(slab) [ 11.650146] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.650864] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.651624] page dumped because: kasan: bad access detected [ 11.651916] [ 11.652099] Memory state around the buggy address: [ 11.652571] ffff8881033adf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.653233] ffff8881033adf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.653855] >ffff8881033ae000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.654138] ^ [ 11.654807] ffff8881033ae080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.655423] ffff8881033ae100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.655650] ==================================================================