Date
July 12, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.749078] ================================================================== [ 16.749695] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 16.749782] Write of size 4 at addr fff00000c585ec75 by task kunit_try_catch/174 [ 16.749832] [ 16.749883] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.750025] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.750054] Hardware name: linux,dummy-virt (DT) [ 16.750084] Call trace: [ 16.750325] show_stack+0x20/0x38 (C) [ 16.750386] dump_stack_lvl+0x8c/0xd0 [ 16.750432] print_report+0x118/0x5d0 [ 16.750512] kasan_report+0xdc/0x128 [ 16.750556] kasan_check_range+0x100/0x1a8 [ 16.750622] __asan_memset+0x34/0x78 [ 16.750699] kmalloc_oob_memset_4+0x150/0x300 [ 16.750764] kunit_try_run_case+0x170/0x3f0 [ 16.750830] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.750888] kthread+0x328/0x630 [ 16.750930] ret_from_fork+0x10/0x20 [ 16.750975] [ 16.750993] Allocated by task 174: [ 16.751019] kasan_save_stack+0x3c/0x68 [ 16.751291] kasan_save_track+0x20/0x40 [ 16.751458] kasan_save_alloc_info+0x40/0x58 [ 16.751578] __kasan_kmalloc+0xd4/0xd8 [ 16.751667] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.751774] kmalloc_oob_memset_4+0xb0/0x300 [ 16.751817] kunit_try_run_case+0x170/0x3f0 [ 16.751855] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.751897] kthread+0x328/0x630 [ 16.751928] ret_from_fork+0x10/0x20 [ 16.751963] [ 16.752010] The buggy address belongs to the object at fff00000c585ec00 [ 16.752010] which belongs to the cache kmalloc-128 of size 128 [ 16.752068] The buggy address is located 117 bytes inside of [ 16.752068] allocated 120-byte region [fff00000c585ec00, fff00000c585ec78) [ 16.752130] [ 16.752149] The buggy address belongs to the physical page: [ 16.752403] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10585e [ 16.752508] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.752620] page_type: f5(slab) [ 16.752678] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.753104] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.753185] page dumped because: kasan: bad access detected [ 16.753218] [ 16.753235] Memory state around the buggy address: [ 16.753537] fff00000c585eb00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.753673] fff00000c585eb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.753798] >fff00000c585ec00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.753888] ^ [ 16.753961] fff00000c585ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.754003] fff00000c585ed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.754041] ==================================================================
[ 13.091739] ================================================================== [ 13.092209] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 13.092776] Write of size 4 at addr ffff8881029ef675 by task kunit_try_catch/191 [ 13.093060] [ 13.093237] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.093299] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.093310] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.093330] Call Trace: [ 13.093342] <TASK> [ 13.093358] dump_stack_lvl+0x73/0xb0 [ 13.093390] print_report+0xd1/0x610 [ 13.093412] ? __virt_addr_valid+0x1db/0x2d0 [ 13.093436] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.093457] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.093480] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.093505] kasan_report+0x141/0x180 [ 13.093526] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.093553] kasan_check_range+0x10c/0x1c0 [ 13.093576] __asan_memset+0x27/0x50 [ 13.093596] kmalloc_oob_memset_4+0x166/0x330 [ 13.093619] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 13.093643] ? __schedule+0x10cc/0x2b60 [ 13.093665] ? __pfx_read_tsc+0x10/0x10 [ 13.093686] ? ktime_get_ts64+0x86/0x230 [ 13.093711] kunit_try_run_case+0x1a5/0x480 [ 13.093736] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.093758] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.093782] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.093806] ? __kthread_parkme+0x82/0x180 [ 13.093827] ? preempt_count_sub+0x50/0x80 [ 13.093851] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.093875] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.093900] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.093925] kthread+0x337/0x6f0 [ 13.093944] ? trace_preempt_on+0x20/0xc0 [ 13.093967] ? __pfx_kthread+0x10/0x10 [ 13.094006] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.094028] ? calculate_sigpending+0x7b/0xa0 [ 13.094052] ? __pfx_kthread+0x10/0x10 [ 13.094073] ret_from_fork+0x116/0x1d0 [ 13.094091] ? __pfx_kthread+0x10/0x10 [ 13.094112] ret_from_fork_asm+0x1a/0x30 [ 13.094145] </TASK> [ 13.094156] [ 13.101412] Allocated by task 191: [ 13.101595] kasan_save_stack+0x45/0x70 [ 13.101800] kasan_save_track+0x18/0x40 [ 13.101940] kasan_save_alloc_info+0x3b/0x50 [ 13.102163] __kasan_kmalloc+0xb7/0xc0 [ 13.102373] __kmalloc_cache_noprof+0x189/0x420 [ 13.102609] kmalloc_oob_memset_4+0xac/0x330 [ 13.102844] kunit_try_run_case+0x1a5/0x480 [ 13.103225] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.103476] kthread+0x337/0x6f0 [ 13.103642] ret_from_fork+0x116/0x1d0 [ 13.103799] ret_from_fork_asm+0x1a/0x30 [ 13.103992] [ 13.104192] The buggy address belongs to the object at ffff8881029ef600 [ 13.104192] which belongs to the cache kmalloc-128 of size 128 [ 13.104650] The buggy address is located 117 bytes inside of [ 13.104650] allocated 120-byte region [ffff8881029ef600, ffff8881029ef678) [ 13.105145] [ 13.105240] The buggy address belongs to the physical page: [ 13.105475] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029ef [ 13.105803] flags: 0x200000000000000(node=0|zone=2) [ 13.106034] page_type: f5(slab) [ 13.106181] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.107650] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.107969] page dumped because: kasan: bad access detected [ 13.108278] [ 13.108359] Memory state around the buggy address: [ 13.108562] ffff8881029ef500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.108852] ffff8881029ef580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.109205] >ffff8881029ef600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.109504] ^ [ 13.109805] ffff8881029ef680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.110166] ffff8881029ef700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.110440] ==================================================================