Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.726083] ================================================================== [ 16.726140] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 16.726417] Write of size 128 at addr fff00000c585ea00 by task kunit_try_catch/170 [ 16.726479] [ 16.726518] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.726619] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.726646] Hardware name: linux,dummy-virt (DT) [ 16.726701] Call trace: [ 16.726725] show_stack+0x20/0x38 (C) [ 16.726773] dump_stack_lvl+0x8c/0xd0 [ 16.726906] print_report+0x118/0x5d0 [ 16.727019] kasan_report+0xdc/0x128 [ 16.727094] kasan_check_range+0x100/0x1a8 [ 16.727167] __asan_memset+0x34/0x78 [ 16.727281] kmalloc_oob_in_memset+0x144/0x2d0 [ 16.727377] kunit_try_run_case+0x170/0x3f0 [ 16.727422] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.727489] kthread+0x328/0x630 [ 16.727530] ret_from_fork+0x10/0x20 [ 16.727575] [ 16.727592] Allocated by task 170: [ 16.727619] kasan_save_stack+0x3c/0x68 [ 16.727983] kasan_save_track+0x20/0x40 [ 16.728032] kasan_save_alloc_info+0x40/0x58 [ 16.728072] __kasan_kmalloc+0xd4/0xd8 [ 16.728356] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.728493] kmalloc_oob_in_memset+0xb0/0x2d0 [ 16.728547] kunit_try_run_case+0x170/0x3f0 [ 16.728647] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.728739] kthread+0x328/0x630 [ 16.728814] ret_from_fork+0x10/0x20 [ 16.728882] [ 16.729000] The buggy address belongs to the object at fff00000c585ea00 [ 16.729000] which belongs to the cache kmalloc-128 of size 128 [ 16.729082] The buggy address is located 0 bytes inside of [ 16.729082] allocated 120-byte region [fff00000c585ea00, fff00000c585ea78) [ 16.729481] [ 16.729541] The buggy address belongs to the physical page: [ 16.729639] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10585e [ 16.729712] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.729853] page_type: f5(slab) [ 16.729936] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.730021] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.730121] page dumped because: kasan: bad access detected [ 16.730258] [ 16.730275] Memory state around the buggy address: [ 16.730307] fff00000c585e900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.730384] fff00000c585e980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.730547] >fff00000c585ea00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.730811] ^ [ 16.730906] fff00000c585ea80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.731015] fff00000c585eb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.731116] ==================================================================
[ 13.037653] ================================================================== [ 13.038207] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 13.038580] Write of size 128 at addr ffff8881029ef500 by task kunit_try_catch/187 [ 13.038824] [ 13.038916] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.038961] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.038973] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.038995] Call Trace: [ 13.039008] <TASK> [ 13.039025] dump_stack_lvl+0x73/0xb0 [ 13.039056] print_report+0xd1/0x610 [ 13.039078] ? __virt_addr_valid+0x1db/0x2d0 [ 13.039102] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.039124] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.039147] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.039169] kasan_report+0x141/0x180 [ 13.039190] ? kmalloc_oob_in_memset+0x15f/0x320 [ 13.039218] kasan_check_range+0x10c/0x1c0 [ 13.039241] __asan_memset+0x27/0x50 [ 13.039273] kmalloc_oob_in_memset+0x15f/0x320 [ 13.039296] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 13.039319] ? __schedule+0x10cc/0x2b60 [ 13.039341] ? __pfx_read_tsc+0x10/0x10 [ 13.039362] ? ktime_get_ts64+0x86/0x230 [ 13.039387] kunit_try_run_case+0x1a5/0x480 [ 13.039414] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.039437] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.039461] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.039484] ? __kthread_parkme+0x82/0x180 [ 13.039505] ? preempt_count_sub+0x50/0x80 [ 13.039530] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.039554] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.039578] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.039603] kthread+0x337/0x6f0 [ 13.039622] ? trace_preempt_on+0x20/0xc0 [ 13.039647] ? __pfx_kthread+0x10/0x10 [ 13.039668] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.039689] ? calculate_sigpending+0x7b/0xa0 [ 13.039714] ? __pfx_kthread+0x10/0x10 [ 13.039735] ret_from_fork+0x116/0x1d0 [ 13.039766] ? __pfx_kthread+0x10/0x10 [ 13.039786] ret_from_fork_asm+0x1a/0x30 [ 13.039847] </TASK> [ 13.039858] [ 13.047741] Allocated by task 187: [ 13.047923] kasan_save_stack+0x45/0x70 [ 13.048308] kasan_save_track+0x18/0x40 [ 13.048472] kasan_save_alloc_info+0x3b/0x50 [ 13.048622] __kasan_kmalloc+0xb7/0xc0 [ 13.048810] __kmalloc_cache_noprof+0x189/0x420 [ 13.049202] kmalloc_oob_in_memset+0xac/0x320 [ 13.049393] kunit_try_run_case+0x1a5/0x480 [ 13.049543] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.049720] kthread+0x337/0x6f0 [ 13.049842] ret_from_fork+0x116/0x1d0 [ 13.049975] ret_from_fork_asm+0x1a/0x30 [ 13.050114] [ 13.050185] The buggy address belongs to the object at ffff8881029ef500 [ 13.050185] which belongs to the cache kmalloc-128 of size 128 [ 13.050726] The buggy address is located 0 bytes inside of [ 13.050726] allocated 120-byte region [ffff8881029ef500, ffff8881029ef578) [ 13.051353] [ 13.051492] The buggy address belongs to the physical page: [ 13.051800] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029ef [ 13.052217] flags: 0x200000000000000(node=0|zone=2) [ 13.052502] page_type: f5(slab) [ 13.052673] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.053244] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.053616] page dumped because: kasan: bad access detected [ 13.053877] [ 13.053964] Memory state around the buggy address: [ 13.054384] ffff8881029ef400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.054726] ffff8881029ef480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.055104] >ffff8881029ef500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.055391] ^ [ 13.055663] ffff8881029ef580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.056969] ffff8881029ef600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.057378] ==================================================================