Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.464995] ================================================================== [ 17.465828] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 17.466292] Write of size 128 at addr fff00000c3ef0e00 by task kunit_try_catch/170 [ 17.466711] [ 17.466892] CPU: 0 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 17.467058] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.467111] Hardware name: linux,dummy-virt (DT) [ 17.467176] Call trace: [ 17.467230] show_stack+0x20/0x38 (C) [ 17.468287] dump_stack_lvl+0x8c/0xd0 [ 17.469367] print_report+0x118/0x608 [ 17.469611] kasan_report+0xdc/0x128 [ 17.470085] kasan_check_range+0x100/0x1a8 [ 17.470307] __asan_memset+0x34/0x78 [ 17.470866] kmalloc_oob_in_memset+0x144/0x2d0 [ 17.471073] kunit_try_run_case+0x170/0x3f0 [ 17.471171] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.471273] kthread+0x328/0x630 [ 17.471375] ret_from_fork+0x10/0x20 [ 17.471492] [ 17.471537] Allocated by task 170: [ 17.471603] kasan_save_stack+0x3c/0x68 [ 17.471697] kasan_save_track+0x20/0x40 [ 17.471780] kasan_save_alloc_info+0x40/0x58 [ 17.473161] __kasan_kmalloc+0xd4/0xd8 [ 17.473706] __kmalloc_cache_noprof+0x15c/0x3c0 [ 17.474161] kmalloc_oob_in_memset+0xb0/0x2d0 [ 17.474601] kunit_try_run_case+0x170/0x3f0 [ 17.474902] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.475251] kthread+0x328/0x630 [ 17.475330] ret_from_fork+0x10/0x20 [ 17.475631] [ 17.476096] The buggy address belongs to the object at fff00000c3ef0e00 [ 17.476096] which belongs to the cache kmalloc-128 of size 128 [ 17.476426] The buggy address is located 0 bytes inside of [ 17.476426] allocated 120-byte region [fff00000c3ef0e00, fff00000c3ef0e78) [ 17.476632] [ 17.476681] The buggy address belongs to the physical page: [ 17.476755] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103ef0 [ 17.476872] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.476984] page_type: f5(slab) [ 17.477071] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 17.477183] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.477276] page dumped because: kasan: bad access detected [ 17.477356] [ 17.478822] Memory state around the buggy address: [ 17.479023] fff00000c3ef0d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.479218] fff00000c3ef0d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.479335] >fff00000c3ef0e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.479405] ^ [ 17.480054] fff00000c3ef0e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.480246] fff00000c3ef0f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.480478] ==================================================================
[ 11.029629] ================================================================== [ 11.030643] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 11.031867] Write of size 128 at addr ffff888102a7aa00 by task kunit_try_catch/188 [ 11.032846] [ 11.033209] CPU: 1 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 11.033261] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.033274] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.033296] Call Trace: [ 11.033311] <TASK> [ 11.033328] dump_stack_lvl+0x73/0xb0 [ 11.033358] print_report+0xd1/0x650 [ 11.033393] ? __virt_addr_valid+0x1db/0x2d0 [ 11.033417] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.033438] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.033460] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.033481] kasan_report+0x141/0x180 [ 11.033503] ? kmalloc_oob_in_memset+0x15f/0x320 [ 11.033530] kasan_check_range+0x10c/0x1c0 [ 11.033553] __asan_memset+0x27/0x50 [ 11.033573] kmalloc_oob_in_memset+0x15f/0x320 [ 11.033595] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 11.033617] ? __schedule+0x10cc/0x2b60 [ 11.033640] ? __pfx_read_tsc+0x10/0x10 [ 11.033660] ? ktime_get_ts64+0x86/0x230 [ 11.033685] kunit_try_run_case+0x1a5/0x480 [ 11.033713] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.033732] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.033756] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.033780] ? __kthread_parkme+0x82/0x180 [ 11.033800] ? preempt_count_sub+0x50/0x80 [ 11.033823] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.033843] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.033866] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.033890] kthread+0x337/0x6f0 [ 11.033908] ? trace_preempt_on+0x20/0xc0 [ 11.033931] ? __pfx_kthread+0x10/0x10 [ 11.033950] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.033973] ? calculate_sigpending+0x7b/0xa0 [ 11.033996] ? __pfx_kthread+0x10/0x10 [ 11.034017] ret_from_fork+0x116/0x1d0 [ 11.034039] ? __pfx_kthread+0x10/0x10 [ 11.034058] ret_from_fork_asm+0x1a/0x30 [ 11.034088] </TASK> [ 11.034098] [ 11.049024] Allocated by task 188: [ 11.049414] kasan_save_stack+0x45/0x70 [ 11.049910] kasan_save_track+0x18/0x40 [ 11.050359] kasan_save_alloc_info+0x3b/0x50 [ 11.050545] __kasan_kmalloc+0xb7/0xc0 [ 11.050947] __kmalloc_cache_noprof+0x189/0x420 [ 11.051433] kmalloc_oob_in_memset+0xac/0x320 [ 11.051846] kunit_try_run_case+0x1a5/0x480 [ 11.051994] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.052573] kthread+0x337/0x6f0 [ 11.052914] ret_from_fork+0x116/0x1d0 [ 11.053487] ret_from_fork_asm+0x1a/0x30 [ 11.053885] [ 11.053958] The buggy address belongs to the object at ffff888102a7aa00 [ 11.053958] which belongs to the cache kmalloc-128 of size 128 [ 11.054941] The buggy address is located 0 bytes inside of [ 11.054941] allocated 120-byte region [ffff888102a7aa00, ffff888102a7aa78) [ 11.055946] [ 11.056029] The buggy address belongs to the physical page: [ 11.056222] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a7a [ 11.056468] flags: 0x200000000000000(node=0|zone=2) [ 11.056629] page_type: f5(slab) [ 11.056800] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.057544] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.058356] page dumped because: kasan: bad access detected [ 11.058930] [ 11.059153] Memory state around the buggy address: [ 11.059614] ffff888102a7a900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.060308] ffff888102a7a980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.061068] >ffff888102a7aa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.061803] ^ [ 11.062510] ffff888102a7aa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.063263] ffff888102a7ab00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.063882] ==================================================================