Date
July 25, 2025, 3:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.441684] ================================================================== [ 32.441752] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 32.441891] Write of size 16 at addr fff00000c9726869 by task kunit_try_catch/210 [ 32.441939] [ 32.442213] CPU: 1 UID: 0 PID: 210 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250725 #1 PREEMPT [ 32.442446] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 32.442490] Hardware name: linux,dummy-virt (DT) [ 32.442520] Call trace: [ 32.442542] show_stack+0x20/0x38 (C) [ 32.442786] dump_stack_lvl+0x8c/0xd0 [ 32.442972] print_report+0x118/0x5e8 [ 32.443069] kasan_report+0xdc/0x128 [ 32.443146] kasan_check_range+0x100/0x1a8 [ 32.443193] __asan_memset+0x34/0x78 [ 32.443236] kmalloc_oob_memset_16+0x150/0x2f8 [ 32.443282] kunit_try_run_case+0x170/0x3f0 [ 32.443327] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.443383] kthread+0x328/0x630 [ 32.443686] ret_from_fork+0x10/0x20 [ 32.444087] [ 32.444153] Allocated by task 210: [ 32.444223] kasan_save_stack+0x3c/0x68 [ 32.444314] kasan_save_track+0x20/0x40 [ 32.444545] kasan_save_alloc_info+0x40/0x58 [ 32.444704] __kasan_kmalloc+0xd4/0xd8 [ 32.444896] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.445060] kmalloc_oob_memset_16+0xb0/0x2f8 [ 32.445194] kunit_try_run_case+0x170/0x3f0 [ 32.445619] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.445860] kthread+0x328/0x630 [ 32.445975] ret_from_fork+0x10/0x20 [ 32.446215] [ 32.446281] The buggy address belongs to the object at fff00000c9726800 [ 32.446281] which belongs to the cache kmalloc-128 of size 128 [ 32.446573] The buggy address is located 105 bytes inside of [ 32.446573] allocated 120-byte region [fff00000c9726800, fff00000c9726878) [ 32.446776] [ 32.446846] The buggy address belongs to the physical page: [ 32.447074] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109726 [ 32.447399] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.447456] page_type: f5(slab) [ 32.447497] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.447555] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.447595] page dumped because: kasan: bad access detected [ 32.447627] [ 32.447656] Memory state around the buggy address: [ 32.447689] fff00000c9726700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 32.448100] fff00000c9726780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.448226] >fff00000c9726800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.448268] ^ [ 32.448458] fff00000c9726880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.448655] fff00000c9726900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.448765] ==================================================================
[ 25.926274] ================================================================== [ 25.927414] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 25.927716] Write of size 16 at addr ffff888106253069 by task kunit_try_catch/227 [ 25.927956] [ 25.928042] CPU: 1 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250725 #1 PREEMPT(voluntary) [ 25.928180] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.928196] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.928218] Call Trace: [ 25.928232] <TASK> [ 25.928250] dump_stack_lvl+0x73/0xb0 [ 25.928282] print_report+0xd1/0x640 [ 25.928305] ? __virt_addr_valid+0x1db/0x2d0 [ 25.928328] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.928350] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.928376] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.928398] kasan_report+0x141/0x180 [ 25.928421] ? kmalloc_oob_memset_16+0x166/0x330 [ 25.928449] kasan_check_range+0x10c/0x1c0 [ 25.928473] __asan_memset+0x27/0x50 [ 25.928497] kmalloc_oob_memset_16+0x166/0x330 [ 25.928519] ? __kasan_check_write+0x18/0x20 [ 25.928542] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 25.928565] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 25.928590] ? trace_hardirqs_on+0x37/0xe0 [ 25.928613] ? __pfx_read_tsc+0x10/0x10 [ 25.928635] ? ktime_get_ts64+0x86/0x230 [ 25.928660] kunit_try_run_case+0x1a5/0x480 [ 25.928684] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.928708] ? queued_spin_lock_slowpath+0x116/0xb40 [ 25.928731] ? __kthread_parkme+0x82/0x180 [ 25.928751] ? preempt_count_sub+0x50/0x80 [ 25.928775] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.928798] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.928874] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.928899] kthread+0x337/0x6f0 [ 25.928919] ? trace_preempt_on+0x20/0xc0 [ 25.928953] ? __pfx_kthread+0x10/0x10 [ 25.928974] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.928999] ? calculate_sigpending+0x7b/0xa0 [ 25.929022] ? __pfx_kthread+0x10/0x10 [ 25.929044] ret_from_fork+0x116/0x1d0 [ 25.929071] ? __pfx_kthread+0x10/0x10 [ 25.929092] ret_from_fork_asm+0x1a/0x30 [ 25.929128] </TASK> [ 25.929139] [ 25.938874] Allocated by task 227: [ 25.939334] kasan_save_stack+0x45/0x70 [ 25.939534] kasan_save_track+0x18/0x40 [ 25.939713] kasan_save_alloc_info+0x3b/0x50 [ 25.940177] __kasan_kmalloc+0xb7/0xc0 [ 25.940369] __kmalloc_cache_noprof+0x189/0x420 [ 25.940548] kmalloc_oob_memset_16+0xac/0x330 [ 25.940765] kunit_try_run_case+0x1a5/0x480 [ 25.941097] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.941471] kthread+0x337/0x6f0 [ 25.941635] ret_from_fork+0x116/0x1d0 [ 25.941805] ret_from_fork_asm+0x1a/0x30 [ 25.942395] [ 25.942486] The buggy address belongs to the object at ffff888106253000 [ 25.942486] which belongs to the cache kmalloc-128 of size 128 [ 25.943212] The buggy address is located 105 bytes inside of [ 25.943212] allocated 120-byte region [ffff888106253000, ffff888106253078) [ 25.943713] [ 25.943806] The buggy address belongs to the physical page: [ 25.944031] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106253 [ 25.944366] flags: 0x200000000000000(node=0|zone=2) [ 25.944581] page_type: f5(slab) [ 25.944729] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.945532] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.945822] page dumped because: kasan: bad access detected [ 25.946387] [ 25.946573] Memory state around the buggy address: [ 25.946789] ffff888106252f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.947320] ffff888106252f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.947699] >ffff888106253000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 25.948121] ^ [ 25.948554] ffff888106253080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.949026] ffff888106253100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.949348] ==================================================================