Date
July 4, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.103979] ================================================================== [ 18.104047] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 18.104109] Write of size 4 at addr fff00000c638ec75 by task kunit_try_catch/174 [ 18.104159] [ 18.104196] CPU: 0 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.104286] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.104330] Hardware name: linux,dummy-virt (DT) [ 18.104363] Call trace: [ 18.104386] show_stack+0x20/0x38 (C) [ 18.104434] dump_stack_lvl+0x8c/0xd0 [ 18.104482] print_report+0x118/0x608 [ 18.104526] kasan_report+0xdc/0x128 [ 18.104569] kasan_check_range+0x100/0x1a8 [ 18.104615] __asan_memset+0x34/0x78 [ 18.104656] kmalloc_oob_memset_4+0x150/0x300 [ 18.104710] kunit_try_run_case+0x170/0x3f0 [ 18.104760] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.104823] kthread+0x328/0x630 [ 18.104872] ret_from_fork+0x10/0x20 [ 18.104920] [ 18.104945] Allocated by task 174: [ 18.104973] kasan_save_stack+0x3c/0x68 [ 18.105013] kasan_save_track+0x20/0x40 [ 18.105050] kasan_save_alloc_info+0x40/0x58 [ 18.105088] __kasan_kmalloc+0xd4/0xd8 [ 18.105124] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.105164] kmalloc_oob_memset_4+0xb0/0x300 [ 18.105200] kunit_try_run_case+0x170/0x3f0 [ 18.105237] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.105288] kthread+0x328/0x630 [ 18.105320] ret_from_fork+0x10/0x20 [ 18.105363] [ 18.105383] The buggy address belongs to the object at fff00000c638ec00 [ 18.105383] which belongs to the cache kmalloc-128 of size 128 [ 18.105438] The buggy address is located 117 bytes inside of [ 18.105438] allocated 120-byte region [fff00000c638ec00, fff00000c638ec78) [ 18.105506] [ 18.105532] The buggy address belongs to the physical page: [ 18.105563] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638e [ 18.105615] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.105663] page_type: f5(slab) [ 18.105701] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.105748] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.105793] page dumped because: kasan: bad access detected [ 18.106135] [ 18.106157] Memory state around the buggy address: [ 18.106191] fff00000c638eb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.106535] fff00000c638eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.106588] >fff00000c638ec00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.106625] ^ [ 18.106667] fff00000c638ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.106706] fff00000c638ed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.106897] ==================================================================
[ 12.005828] ================================================================== [ 12.006318] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 12.007063] Write of size 4 at addr ffff88810262fb75 by task kunit_try_catch/191 [ 12.008099] [ 12.008473] CPU: 0 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.008528] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.008540] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.008563] Call Trace: [ 12.008577] <TASK> [ 12.008597] dump_stack_lvl+0x73/0xb0 [ 12.008634] print_report+0xd1/0x650 [ 12.008657] ? __virt_addr_valid+0x1db/0x2d0 [ 12.008681] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.008701] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.008722] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.008742] kasan_report+0x141/0x180 [ 12.008763] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.008795] kasan_check_range+0x10c/0x1c0 [ 12.008817] __asan_memset+0x27/0x50 [ 12.008835] kmalloc_oob_memset_4+0x166/0x330 [ 12.008856] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 12.008879] ? __schedule+0x10cc/0x2b60 [ 12.008900] ? __pfx_read_tsc+0x10/0x10 [ 12.008920] ? ktime_get_ts64+0x86/0x230 [ 12.008945] kunit_try_run_case+0x1a5/0x480 [ 12.008970] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.008990] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.009013] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.009034] ? __kthread_parkme+0x82/0x180 [ 12.009055] ? preempt_count_sub+0x50/0x80 [ 12.009078] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.009099] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.009120] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.009141] kthread+0x337/0x6f0 [ 12.009159] ? trace_preempt_on+0x20/0xc0 [ 12.009181] ? __pfx_kthread+0x10/0x10 [ 12.009200] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.009234] ? calculate_sigpending+0x7b/0xa0 [ 12.009262] ? __pfx_kthread+0x10/0x10 [ 12.009282] ret_from_fork+0x116/0x1d0 [ 12.009299] ? __pfx_kthread+0x10/0x10 [ 12.009318] ret_from_fork_asm+0x1a/0x30 [ 12.009348] </TASK> [ 12.009359] [ 12.023112] Allocated by task 191: [ 12.023906] kasan_save_stack+0x45/0x70 [ 12.024137] kasan_save_track+0x18/0x40 [ 12.024289] kasan_save_alloc_info+0x3b/0x50 [ 12.024651] __kasan_kmalloc+0xb7/0xc0 [ 12.024998] __kmalloc_cache_noprof+0x189/0x420 [ 12.025496] kmalloc_oob_memset_4+0xac/0x330 [ 12.025717] kunit_try_run_case+0x1a5/0x480 [ 12.026077] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.026525] kthread+0x337/0x6f0 [ 12.026774] ret_from_fork+0x116/0x1d0 [ 12.026946] ret_from_fork_asm+0x1a/0x30 [ 12.027147] [ 12.027618] The buggy address belongs to the object at ffff88810262fb00 [ 12.027618] which belongs to the cache kmalloc-128 of size 128 [ 12.028396] The buggy address is located 117 bytes inside of [ 12.028396] allocated 120-byte region [ffff88810262fb00, ffff88810262fb78) [ 12.028898] [ 12.029079] The buggy address belongs to the physical page: [ 12.029619] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10262f [ 12.030123] flags: 0x200000000000000(node=0|zone=2) [ 12.030730] page_type: f5(slab) [ 12.030930] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.031292] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.031909] page dumped because: kasan: bad access detected [ 12.032160] [ 12.032266] Memory state around the buggy address: [ 12.032869] ffff88810262fa00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.033280] ffff88810262fa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.033596] >ffff88810262fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.033907] ^ [ 12.034207] ffff88810262fb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.034916] ffff88810262fc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.035493] ==================================================================