Date
July 24, 2025, 4:41 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.505164] ================================================================== [ 32.505251] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 32.505320] Write of size 128 at addr fff00000c9a8b000 by task kunit_try_catch/201 [ 32.505371] [ 32.505412] CPU: 0 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250724 #1 PREEMPT [ 32.505499] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.506666] Hardware name: linux,dummy-virt (DT) [ 32.506729] Call trace: [ 32.506763] show_stack+0x20/0x38 (C) [ 32.506886] dump_stack_lvl+0x8c/0xd0 [ 32.507079] print_report+0x118/0x5e8 [ 32.507127] kasan_report+0xdc/0x128 [ 32.507238] kasan_check_range+0x100/0x1a8 [ 32.508003] __asan_memset+0x34/0x78 [ 32.508066] kmalloc_oob_in_memset+0x144/0x2d0 [ 32.508465] kunit_try_run_case+0x170/0x3f0 [ 32.508735] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.508803] kthread+0x328/0x630 [ 32.508846] ret_from_fork+0x10/0x20 [ 32.508896] [ 32.508915] Allocated by task 201: [ 32.508943] kasan_save_stack+0x3c/0x68 [ 32.509417] kasan_save_track+0x20/0x40 [ 32.509454] kasan_save_alloc_info+0x40/0x58 [ 32.509766] __kasan_kmalloc+0xd4/0xd8 [ 32.509957] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.510298] kmalloc_oob_in_memset+0xb0/0x2d0 [ 32.510666] kunit_try_run_case+0x170/0x3f0 [ 32.510717] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.511123] kthread+0x328/0x630 [ 32.511175] ret_from_fork+0x10/0x20 [ 32.511420] [ 32.511620] The buggy address belongs to the object at fff00000c9a8b000 [ 32.511620] which belongs to the cache kmalloc-128 of size 128 [ 32.511744] The buggy address is located 0 bytes inside of [ 32.511744] allocated 120-byte region [fff00000c9a8b000, fff00000c9a8b078) [ 32.512364] [ 32.512395] The buggy address belongs to the physical page: [ 32.512650] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a8b [ 32.512893] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.513192] page_type: f5(slab) [ 32.513476] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.513971] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.514123] page dumped because: kasan: bad access detected [ 32.514414] [ 32.514651] Memory state around the buggy address: [ 32.515156] fff00000c9a8af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.515203] fff00000c9a8af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.515251] >fff00000c9a8b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.515289] ^ [ 32.515921] fff00000c9a8b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.516250] fff00000c9a8b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.516540] ==================================================================
[ 26.910160] ================================================================== [ 26.910693] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 26.911158] Write of size 128 at addr ffff888104c4a600 by task kunit_try_catch/218 [ 26.911656] [ 26.911752] CPU: 1 UID: 0 PID: 218 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) [ 26.911805] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 26.911818] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.911840] Call Trace: [ 26.911852] <TASK> [ 26.911871] dump_stack_lvl+0x73/0xb0 [ 26.911900] print_report+0xd1/0x640 [ 26.912048] ? __virt_addr_valid+0x1db/0x2d0 [ 26.912116] ? kmalloc_oob_in_memset+0x15f/0x320 [ 26.912138] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.912164] ? kmalloc_oob_in_memset+0x15f/0x320 [ 26.912199] kasan_report+0x141/0x180 [ 26.912221] ? kmalloc_oob_in_memset+0x15f/0x320 [ 26.912247] kasan_check_range+0x10c/0x1c0 [ 26.912281] __asan_memset+0x27/0x50 [ 26.912304] kmalloc_oob_in_memset+0x15f/0x320 [ 26.912326] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 26.912349] ? __schedule+0x10da/0x2b60 [ 26.912374] ? __pfx_read_tsc+0x10/0x10 [ 26.912395] ? ktime_get_ts64+0x86/0x230 [ 26.912419] kunit_try_run_case+0x1a5/0x480 [ 26.912444] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.912466] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.912490] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.912515] ? __kthread_parkme+0x82/0x180 [ 26.912535] ? preempt_count_sub+0x50/0x80 [ 26.912558] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.912591] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.912614] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.912638] kthread+0x337/0x6f0 [ 26.912658] ? trace_preempt_on+0x20/0xc0 [ 26.912683] ? __pfx_kthread+0x10/0x10 [ 26.912703] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.912726] ? calculate_sigpending+0x7b/0xa0 [ 26.912749] ? __pfx_kthread+0x10/0x10 [ 26.912770] ret_from_fork+0x116/0x1d0 [ 26.912842] ? __pfx_kthread+0x10/0x10 [ 26.912864] ret_from_fork_asm+0x1a/0x30 [ 26.912896] </TASK> [ 26.912907] [ 26.923753] Allocated by task 218: [ 26.923935] kasan_save_stack+0x45/0x70 [ 26.924166] kasan_save_track+0x18/0x40 [ 26.924362] kasan_save_alloc_info+0x3b/0x50 [ 26.924608] __kasan_kmalloc+0xb7/0xc0 [ 26.924781] __kmalloc_cache_noprof+0x189/0x420 [ 26.925109] kmalloc_oob_in_memset+0xac/0x320 [ 26.925333] kunit_try_run_case+0x1a5/0x480 [ 26.925553] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.925875] kthread+0x337/0x6f0 [ 26.926062] ret_from_fork+0x116/0x1d0 [ 26.926274] ret_from_fork_asm+0x1a/0x30 [ 26.926452] [ 26.926533] The buggy address belongs to the object at ffff888104c4a600 [ 26.926533] which belongs to the cache kmalloc-128 of size 128 [ 26.927075] The buggy address is located 0 bytes inside of [ 26.927075] allocated 120-byte region [ffff888104c4a600, ffff888104c4a678) [ 26.927651] [ 26.927740] The buggy address belongs to the physical page: [ 26.927982] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104c4a [ 26.928270] flags: 0x200000000000000(node=0|zone=2) [ 26.928652] page_type: f5(slab) [ 26.928814] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.929399] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.929673] page dumped because: kasan: bad access detected [ 26.930016] [ 26.930213] Memory state around the buggy address: [ 26.930471] ffff888104c4a500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.930759] ffff888104c4a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.931175] >ffff888104c4a600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.931486] ^ [ 26.931797] ffff888104c4a680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.932154] ffff888104c4a700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.932486] ==================================================================