Date
July 19, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.217231] ================================================================== [ 15.217286] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 15.217336] Write of size 4 at addr fff00000c6417975 by task kunit_try_catch/174 [ 15.217571] [ 15.217808] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.217918] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.217944] Hardware name: linux,dummy-virt (DT) [ 15.217973] Call trace: [ 15.217995] show_stack+0x20/0x38 (C) [ 15.218043] dump_stack_lvl+0x8c/0xd0 [ 15.218199] print_report+0x118/0x5d0 [ 15.218472] kasan_report+0xdc/0x128 [ 15.218517] kasan_check_range+0x100/0x1a8 [ 15.218563] __asan_memset+0x34/0x78 [ 15.218604] kmalloc_oob_memset_4+0x150/0x300 [ 15.218649] kunit_try_run_case+0x170/0x3f0 [ 15.218714] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.218790] kthread+0x328/0x630 [ 15.219019] ret_from_fork+0x10/0x20 [ 15.219072] [ 15.219109] Allocated by task 174: [ 15.219199] kasan_save_stack+0x3c/0x68 [ 15.219386] kasan_save_track+0x20/0x40 [ 15.219457] kasan_save_alloc_info+0x40/0x58 [ 15.219526] __kasan_kmalloc+0xd4/0xd8 [ 15.219701] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.219831] kmalloc_oob_memset_4+0xb0/0x300 [ 15.219875] kunit_try_run_case+0x170/0x3f0 [ 15.219912] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.219954] kthread+0x328/0x630 [ 15.220080] ret_from_fork+0x10/0x20 [ 15.220161] [ 15.220260] The buggy address belongs to the object at fff00000c6417900 [ 15.220260] which belongs to the cache kmalloc-128 of size 128 [ 15.220360] The buggy address is located 117 bytes inside of [ 15.220360] allocated 120-byte region [fff00000c6417900, fff00000c6417978) [ 15.220523] [ 15.220549] The buggy address belongs to the physical page: [ 15.220587] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106417 [ 15.220637] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.220684] page_type: f5(slab) [ 15.220750] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.220823] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.220891] page dumped because: kasan: bad access detected [ 15.220923] [ 15.220941] Memory state around the buggy address: [ 15.220978] fff00000c6417800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.221176] fff00000c6417880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.221342] >fff00000c6417900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.221379] ^ [ 15.221460] fff00000c6417980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.221501] fff00000c6417a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.221661] ==================================================================
[ 12.128834] ================================================================== [ 12.129373] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 12.129927] Write of size 4 at addr ffff888102fd1175 by task kunit_try_catch/191 [ 12.130611] [ 12.130704] CPU: 0 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.130746] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.130757] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.130776] Call Trace: [ 12.130787] <TASK> [ 12.130802] dump_stack_lvl+0x73/0xb0 [ 12.130830] print_report+0xd1/0x610 [ 12.130851] ? __virt_addr_valid+0x1db/0x2d0 [ 12.130873] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.130893] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.130922] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.130942] kasan_report+0x141/0x180 [ 12.130963] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.130987] kasan_check_range+0x10c/0x1c0 [ 12.131017] __asan_memset+0x27/0x50 [ 12.131036] kmalloc_oob_memset_4+0x166/0x330 [ 12.131056] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 12.131077] ? __schedule+0x10cc/0x2b60 [ 12.131099] ? __pfx_read_tsc+0x10/0x10 [ 12.131119] ? ktime_get_ts64+0x86/0x230 [ 12.131143] kunit_try_run_case+0x1a5/0x480 [ 12.131167] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.131187] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.131210] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.131231] ? __kthread_parkme+0x82/0x180 [ 12.131250] ? preempt_count_sub+0x50/0x80 [ 12.131272] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.131294] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.131316] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.131338] kthread+0x337/0x6f0 [ 12.131356] ? trace_preempt_on+0x20/0xc0 [ 12.131378] ? __pfx_kthread+0x10/0x10 [ 12.131397] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.131416] ? calculate_sigpending+0x7b/0xa0 [ 12.131439] ? __pfx_kthread+0x10/0x10 [ 12.131459] ret_from_fork+0x116/0x1d0 [ 12.131476] ? __pfx_kthread+0x10/0x10 [ 12.131495] ret_from_fork_asm+0x1a/0x30 [ 12.131524] </TASK> [ 12.131534] [ 12.145576] Allocated by task 191: [ 12.145976] kasan_save_stack+0x45/0x70 [ 12.146430] kasan_save_track+0x18/0x40 [ 12.146834] kasan_save_alloc_info+0x3b/0x50 [ 12.147288] __kasan_kmalloc+0xb7/0xc0 [ 12.147739] __kmalloc_cache_noprof+0x189/0x420 [ 12.148202] kmalloc_oob_memset_4+0xac/0x330 [ 12.148642] kunit_try_run_case+0x1a5/0x480 [ 12.148866] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.149430] kthread+0x337/0x6f0 [ 12.149713] ret_from_fork+0x116/0x1d0 [ 12.150088] ret_from_fork_asm+0x1a/0x30 [ 12.150228] [ 12.150298] The buggy address belongs to the object at ffff888102fd1100 [ 12.150298] which belongs to the cache kmalloc-128 of size 128 [ 12.150660] The buggy address is located 117 bytes inside of [ 12.150660] allocated 120-byte region [ffff888102fd1100, ffff888102fd1178) [ 12.151025] [ 12.151099] The buggy address belongs to the physical page: [ 12.151270] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102fd1 [ 12.151751] flags: 0x200000000000000(node=0|zone=2) [ 12.151980] page_type: f5(slab) [ 12.152110] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.152445] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.152830] page dumped because: kasan: bad access detected [ 12.153141] [ 12.153238] Memory state around the buggy address: [ 12.153779] ffff888102fd1000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.154026] ffff888102fd1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.154438] >ffff888102fd1100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.154737] ^ [ 12.155338] ffff888102fd1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.156049] ffff888102fd1200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.156773] ==================================================================