Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.455071] ================================================================== [ 30.455246] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 30.455389] Write of size 128 at addr fff00000c6466800 by task kunit_try_catch/181 [ 30.455499] [ 30.455578] CPU: 1 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 30.455765] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.456995] Hardware name: linux,dummy-virt (DT) [ 30.457095] Call trace: [ 30.457155] show_stack+0x20/0x38 (C) [ 30.457280] dump_stack_lvl+0x8c/0xd0 [ 30.457393] print_report+0x118/0x608 [ 30.457558] kasan_report+0xdc/0x128 [ 30.457677] kasan_check_range+0x100/0x1a8 [ 30.457795] __asan_memset+0x34/0x78 [ 30.457916] kmalloc_oob_in_memset+0x144/0x2d0 [ 30.458035] kunit_try_run_case+0x170/0x3f0 [ 30.458154] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.458270] kthread+0x328/0x630 [ 30.458355] ret_from_fork+0x10/0x20 [ 30.458462] [ 30.458506] Allocated by task 181: [ 30.458577] kasan_save_stack+0x3c/0x68 [ 30.458677] kasan_save_track+0x20/0x40 [ 30.458766] kasan_save_alloc_info+0x40/0x58 [ 30.458861] __kasan_kmalloc+0xd4/0xd8 [ 30.458972] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.459074] kmalloc_oob_in_memset+0xb0/0x2d0 [ 30.459168] kunit_try_run_case+0x170/0x3f0 [ 30.459714] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.459820] kthread+0x328/0x630 [ 30.459908] ret_from_fork+0x10/0x20 [ 30.461551] [ 30.461612] The buggy address belongs to the object at fff00000c6466800 [ 30.461612] which belongs to the cache kmalloc-128 of size 128 [ 30.461755] The buggy address is located 0 bytes inside of [ 30.461755] allocated 120-byte region [fff00000c6466800, fff00000c6466878) [ 30.461863] [ 30.461916] The buggy address belongs to the physical page: [ 30.461981] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106466 [ 30.462094] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.462209] page_type: f5(slab) [ 30.462838] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 30.463031] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.463288] page dumped because: kasan: bad access detected [ 30.463420] [ 30.463471] Memory state around the buggy address: [ 30.463563] fff00000c6466700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.463668] fff00000c6466780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.463776] >fff00000c6466800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.463880] ^ [ 30.463985] fff00000c6466880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.464092] fff00000c6466900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.464191] ==================================================================
[ 26.914487] ================================================================== [ 26.915020] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 26.915592] Write of size 128 at addr ffff88810324de00 by task kunit_try_catch/199 [ 26.916014] [ 26.917467] CPU: 0 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 26.917554] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.917570] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 26.917598] Call Trace: [ 26.917618] <TASK> [ 26.917646] dump_stack_lvl+0x73/0xb0 [ 26.917701] print_report+0xd1/0x650 [ 26.917729] ? __virt_addr_valid+0x1db/0x2d0 [ 26.917757] ? kmalloc_oob_in_memset+0x15f/0x320 [ 26.917781] ? kasan_complete_mode_report_info+0x2a/0x200 [ 26.917810] ? kmalloc_oob_in_memset+0x15f/0x320 [ 26.917834] kasan_report+0x141/0x180 [ 26.917857] ? kmalloc_oob_in_memset+0x15f/0x320 [ 26.917885] kasan_check_range+0x10c/0x1c0 [ 26.917917] __asan_memset+0x27/0x50 [ 26.917980] kmalloc_oob_in_memset+0x15f/0x320 [ 26.918011] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 26.918036] ? __schedule+0x10cc/0x2b60 [ 26.918061] ? __pfx_read_tsc+0x10/0x10 [ 26.918086] ? ktime_get_ts64+0x86/0x230 [ 26.918144] kunit_try_run_case+0x1a5/0x480 [ 26.918189] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.918224] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 26.918263] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 26.918290] ? __kthread_parkme+0x82/0x180 [ 26.918315] ? preempt_count_sub+0x50/0x80 [ 26.918341] ? __pfx_kunit_try_run_case+0x10/0x10 [ 26.918367] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.918392] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 26.918417] kthread+0x337/0x6f0 [ 26.918438] ? trace_preempt_on+0x20/0xc0 [ 26.918465] ? __pfx_kthread+0x10/0x10 [ 26.918488] ? _raw_spin_unlock_irq+0x47/0x80 [ 26.918511] ? calculate_sigpending+0x7b/0xa0 [ 26.918539] ? __pfx_kthread+0x10/0x10 [ 26.918562] ret_from_fork+0x116/0x1d0 [ 26.918583] ? __pfx_kthread+0x10/0x10 [ 26.918605] ret_from_fork_asm+0x1a/0x30 [ 26.918640] </TASK> [ 26.918654] [ 26.933296] Allocated by task 199: [ 26.933666] kasan_save_stack+0x45/0x70 [ 26.934065] kasan_save_track+0x18/0x40 [ 26.934246] kasan_save_alloc_info+0x3b/0x50 [ 26.934553] __kasan_kmalloc+0xb7/0xc0 [ 26.934788] __kmalloc_cache_noprof+0x189/0x420 [ 26.936150] kmalloc_oob_in_memset+0xac/0x320 [ 26.936393] kunit_try_run_case+0x1a5/0x480 [ 26.936937] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 26.937534] kthread+0x337/0x6f0 [ 26.937820] ret_from_fork+0x116/0x1d0 [ 26.938046] ret_from_fork_asm+0x1a/0x30 [ 26.938302] [ 26.938388] The buggy address belongs to the object at ffff88810324de00 [ 26.938388] which belongs to the cache kmalloc-128 of size 128 [ 26.938968] The buggy address is located 0 bytes inside of [ 26.938968] allocated 120-byte region [ffff88810324de00, ffff88810324de78) [ 26.940061] [ 26.940228] The buggy address belongs to the physical page: [ 26.941092] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10324d [ 26.941706] flags: 0x200000000000000(node=0|zone=2) [ 26.942326] page_type: f5(slab) [ 26.942618] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 26.943531] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.944383] page dumped because: kasan: bad access detected [ 26.944736] [ 26.944844] Memory state around the buggy address: [ 26.945754] ffff88810324dd00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.946250] ffff88810324dd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.946791] >ffff88810324de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.947341] ^ [ 26.947695] ffff88810324de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.948543] ffff88810324df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.948918] ==================================================================