Date
July 19, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.198866] ================================================================== [ 15.199023] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 15.199073] Write of size 128 at addr fff00000c6417700 by task kunit_try_catch/170 [ 15.199122] [ 15.199158] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.199342] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.199461] Hardware name: linux,dummy-virt (DT) [ 15.199491] Call trace: [ 15.199559] show_stack+0x20/0x38 (C) [ 15.199825] dump_stack_lvl+0x8c/0xd0 [ 15.199887] print_report+0x118/0x5d0 [ 15.199932] kasan_report+0xdc/0x128 [ 15.200011] kasan_check_range+0x100/0x1a8 [ 15.200059] __asan_memset+0x34/0x78 [ 15.200100] kmalloc_oob_in_memset+0x144/0x2d0 [ 15.200145] kunit_try_run_case+0x170/0x3f0 [ 15.200192] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.200243] kthread+0x328/0x630 [ 15.200556] ret_from_fork+0x10/0x20 [ 15.200698] [ 15.200717] Allocated by task 170: [ 15.200813] kasan_save_stack+0x3c/0x68 [ 15.200855] kasan_save_track+0x20/0x40 [ 15.200891] kasan_save_alloc_info+0x40/0x58 [ 15.200929] __kasan_kmalloc+0xd4/0xd8 [ 15.200965] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.201002] kmalloc_oob_in_memset+0xb0/0x2d0 [ 15.201038] kunit_try_run_case+0x170/0x3f0 [ 15.201075] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.201116] kthread+0x328/0x630 [ 15.201148] ret_from_fork+0x10/0x20 [ 15.201184] [ 15.201213] The buggy address belongs to the object at fff00000c6417700 [ 15.201213] which belongs to the cache kmalloc-128 of size 128 [ 15.201269] The buggy address is located 0 bytes inside of [ 15.201269] allocated 120-byte region [fff00000c6417700, fff00000c6417778) [ 15.201366] [ 15.201386] The buggy address belongs to the physical page: [ 15.201454] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106417 [ 15.201561] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.201611] page_type: f5(slab) [ 15.201648] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.201743] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.201828] page dumped because: kasan: bad access detected [ 15.201858] [ 15.201876] Memory state around the buggy address: [ 15.201906] fff00000c6417600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.201948] fff00000c6417680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.202032] >fff00000c6417700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.202071] ^ [ 15.202248] fff00000c6417780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.202347] fff00000c6417800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.202413] ==================================================================
[ 12.075221] ================================================================== [ 12.075739] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.076275] Write of size 128 at addr ffff888102fd1000 by task kunit_try_catch/187 [ 12.076661] [ 12.076771] CPU: 0 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.076813] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.076824] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.076843] Call Trace: [ 12.076854] <TASK> [ 12.076868] dump_stack_lvl+0x73/0xb0 [ 12.076896] print_report+0xd1/0x610 [ 12.076917] ? __virt_addr_valid+0x1db/0x2d0 [ 12.076938] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.076958] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.076985] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.077017] kasan_report+0x141/0x180 [ 12.077039] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.077064] kasan_check_range+0x10c/0x1c0 [ 12.077086] __asan_memset+0x27/0x50 [ 12.077104] kmalloc_oob_in_memset+0x15f/0x320 [ 12.077125] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.077146] ? __schedule+0x10cc/0x2b60 [ 12.077167] ? __pfx_read_tsc+0x10/0x10 [ 12.077188] ? ktime_get_ts64+0x86/0x230 [ 12.077211] kunit_try_run_case+0x1a5/0x480 [ 12.077234] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.077254] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.077276] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.077298] ? __kthread_parkme+0x82/0x180 [ 12.077317] ? preempt_count_sub+0x50/0x80 [ 12.077339] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.077361] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.077383] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.077805] kthread+0x337/0x6f0 [ 12.077825] ? trace_preempt_on+0x20/0xc0 [ 12.077848] ? __pfx_kthread+0x10/0x10 [ 12.077867] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.077887] ? calculate_sigpending+0x7b/0xa0 [ 12.077909] ? __pfx_kthread+0x10/0x10 [ 12.077929] ret_from_fork+0x116/0x1d0 [ 12.077947] ? __pfx_kthread+0x10/0x10 [ 12.077966] ret_from_fork_asm+0x1a/0x30 [ 12.077995] </TASK> [ 12.078019] [ 12.088025] Allocated by task 187: [ 12.088326] kasan_save_stack+0x45/0x70 [ 12.088747] kasan_save_track+0x18/0x40 [ 12.088939] kasan_save_alloc_info+0x3b/0x50 [ 12.089303] __kasan_kmalloc+0xb7/0xc0 [ 12.089782] __kmalloc_cache_noprof+0x189/0x420 [ 12.090017] kmalloc_oob_in_memset+0xac/0x320 [ 12.090218] kunit_try_run_case+0x1a5/0x480 [ 12.090405] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.090912] kthread+0x337/0x6f0 [ 12.091077] ret_from_fork+0x116/0x1d0 [ 12.091479] ret_from_fork_asm+0x1a/0x30 [ 12.091772] [ 12.091851] The buggy address belongs to the object at ffff888102fd1000 [ 12.091851] which belongs to the cache kmalloc-128 of size 128 [ 12.092515] The buggy address is located 0 bytes inside of [ 12.092515] allocated 120-byte region [ffff888102fd1000, ffff888102fd1078) [ 12.093155] [ 12.093364] The buggy address belongs to the physical page: [ 12.093726] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102fd1 [ 12.094084] flags: 0x200000000000000(node=0|zone=2) [ 12.094298] page_type: f5(slab) [ 12.094766] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.095123] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.095639] page dumped because: kasan: bad access detected [ 12.095839] [ 12.096089] Memory state around the buggy address: [ 12.096325] ffff888102fd0f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.096796] ffff888102fd0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.097189] >ffff888102fd1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.097650] ^ [ 12.097946] ffff888102fd1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.098427] ffff888102fd1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.098829] ==================================================================