Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.888187] ================================================================== [ 16.888251] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 16.888314] Write of size 4 at addr fff00000c748a875 by task kunit_try_catch/183 [ 16.888908] [ 16.889135] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 16.889233] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.889338] Hardware name: linux,dummy-virt (DT) [ 16.889372] Call trace: [ 16.889430] show_stack+0x20/0x38 (C) [ 16.889494] dump_stack_lvl+0x8c/0xd0 [ 16.889787] print_report+0x118/0x608 [ 16.889863] kasan_report+0xdc/0x128 [ 16.890225] kasan_check_range+0x100/0x1a8 [ 16.890344] __asan_memset+0x34/0x78 [ 16.890437] kmalloc_oob_memset_4+0x150/0x300 [ 16.890583] kunit_try_run_case+0x170/0x3f0 [ 16.890672] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.890870] kthread+0x328/0x630 [ 16.891122] ret_from_fork+0x10/0x20 [ 16.891198] [ 16.891334] Allocated by task 183: [ 16.891416] kasan_save_stack+0x3c/0x68 [ 16.891494] kasan_save_track+0x20/0x40 [ 16.891648] kasan_save_alloc_info+0x40/0x58 [ 16.891797] __kasan_kmalloc+0xd4/0xd8 [ 16.891837] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.891918] kmalloc_oob_memset_4+0xb0/0x300 [ 16.892307] kunit_try_run_case+0x170/0x3f0 [ 16.892469] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.892553] kthread+0x328/0x630 [ 16.892691] ret_from_fork+0x10/0x20 [ 16.892731] [ 16.892769] The buggy address belongs to the object at fff00000c748a800 [ 16.892769] which belongs to the cache kmalloc-128 of size 128 [ 16.892868] The buggy address is located 117 bytes inside of [ 16.892868] allocated 120-byte region [fff00000c748a800, fff00000c748a878) [ 16.893140] [ 16.893275] The buggy address belongs to the physical page: [ 16.894185] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10748a [ 16.894251] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.894357] page_type: f5(slab) [ 16.894420] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.894503] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.894561] page dumped because: kasan: bad access detected [ 16.894835] [ 16.895222] Memory state around the buggy address: [ 16.895395] fff00000c748a700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.895469] fff00000c748a780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.895659] >fff00000c748a800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.895769] ^ [ 16.895993] fff00000c748a880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.896072] fff00000c748a900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.896125] ==================================================================
[ 18.089076] ================================================================== [ 18.090103] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 18.091534] Write of size 4 at addr ffff888103393b75 by task kunit_try_catch/201 [ 18.092889] [ 18.093515] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 18.093646] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.093683] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.093740] Call Trace: [ 18.093777] <TASK> [ 18.093826] dump_stack_lvl+0x73/0xb0 [ 18.093971] print_report+0xd1/0x650 [ 18.094048] ? __virt_addr_valid+0x1db/0x2d0 [ 18.094114] ? kmalloc_oob_memset_4+0x166/0x330 [ 18.094156] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.094226] ? kmalloc_oob_memset_4+0x166/0x330 [ 18.094304] kasan_report+0x141/0x180 [ 18.094378] ? kmalloc_oob_memset_4+0x166/0x330 [ 18.094419] kasan_check_range+0x10c/0x1c0 [ 18.094454] __asan_memset+0x27/0x50 [ 18.094481] kmalloc_oob_memset_4+0x166/0x330 [ 18.094513] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 18.094544] ? __schedule+0x10cc/0x2b60 [ 18.094573] ? __pfx_read_tsc+0x10/0x10 [ 18.094603] ? ktime_get_ts64+0x86/0x230 [ 18.094635] kunit_try_run_case+0x1a5/0x480 [ 18.094670] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.094699] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.094727] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.094762] ? __kthread_parkme+0x82/0x180 [ 18.094789] ? preempt_count_sub+0x50/0x80 [ 18.094820] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.094882] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.094917] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.094949] kthread+0x337/0x6f0 [ 18.094977] ? trace_preempt_on+0x20/0xc0 [ 18.095010] ? __pfx_kthread+0x10/0x10 [ 18.095038] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.095071] ? calculate_sigpending+0x7b/0xa0 [ 18.095104] ? __pfx_kthread+0x10/0x10 [ 18.095133] ret_from_fork+0x116/0x1d0 [ 18.095158] ? __pfx_kthread+0x10/0x10 [ 18.095186] ret_from_fork_asm+0x1a/0x30 [ 18.095245] </TASK> [ 18.095285] [ 18.114021] Allocated by task 201: [ 18.114402] kasan_save_stack+0x45/0x70 [ 18.115130] kasan_save_track+0x18/0x40 [ 18.115930] kasan_save_alloc_info+0x3b/0x50 [ 18.116255] __kasan_kmalloc+0xb7/0xc0 [ 18.116897] __kmalloc_cache_noprof+0x189/0x420 [ 18.117792] kmalloc_oob_memset_4+0xac/0x330 [ 18.118537] kunit_try_run_case+0x1a5/0x480 [ 18.118977] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.119374] kthread+0x337/0x6f0 [ 18.119656] ret_from_fork+0x116/0x1d0 [ 18.120098] ret_from_fork_asm+0x1a/0x30 [ 18.120620] [ 18.121380] The buggy address belongs to the object at ffff888103393b00 [ 18.121380] which belongs to the cache kmalloc-128 of size 128 [ 18.122534] The buggy address is located 117 bytes inside of [ 18.122534] allocated 120-byte region [ffff888103393b00, ffff888103393b78) [ 18.123788] [ 18.124011] The buggy address belongs to the physical page: [ 18.124693] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103393 [ 18.125233] flags: 0x200000000000000(node=0|zone=2) [ 18.125685] page_type: f5(slab) [ 18.126066] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 18.127106] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.128706] page dumped because: kasan: bad access detected [ 18.129098] [ 18.129595] Memory state around the buggy address: [ 18.129978] ffff888103393a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.130813] ffff888103393a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.131874] >ffff888103393b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.132653] ^ [ 18.133143] ffff888103393b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.134166] ffff888103393c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.135083] ==================================================================