Date
July 14, 2025, 10:38 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 43.136024] ================================================================== [ 43.145792] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 43.152994] Write of size 2 at addr ffff0008074f8e77 by task kunit_try_catch/256 [ 43.160370] [ 43.161855] CPU: 2 UID: 0 PID: 256 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 43.161909] Tainted: [B]=BAD_PAGE, [N]=TEST [ 43.161925] Hardware name: WinLink E850-96 board (DT) [ 43.161945] Call trace: [ 43.161957] show_stack+0x20/0x38 (C) [ 43.161992] dump_stack_lvl+0x8c/0xd0 [ 43.162027] print_report+0x118/0x5d0 [ 43.162055] kasan_report+0xdc/0x128 [ 43.162081] kasan_check_range+0x100/0x1a8 [ 43.162110] __asan_memset+0x34/0x78 [ 43.162141] kmalloc_oob_memset_2+0x150/0x2f8 [ 43.162171] kunit_try_run_case+0x170/0x3f0 [ 43.162209] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 43.162241] kthread+0x328/0x630 [ 43.162270] ret_from_fork+0x10/0x20 [ 43.162305] [ 43.228947] Allocated by task 256: [ 43.232335] kasan_save_stack+0x3c/0x68 [ 43.236150] kasan_save_track+0x20/0x40 [ 43.239970] kasan_save_alloc_info+0x40/0x58 [ 43.244223] __kasan_kmalloc+0xd4/0xd8 [ 43.247956] __kmalloc_cache_noprof+0x16c/0x3c0 [ 43.252469] kmalloc_oob_memset_2+0xb0/0x2f8 [ 43.256723] kunit_try_run_case+0x170/0x3f0 [ 43.260889] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 43.266358] kthread+0x328/0x630 [ 43.269570] ret_from_fork+0x10/0x20 [ 43.273129] [ 43.274606] The buggy address belongs to the object at ffff0008074f8e00 [ 43.274606] which belongs to the cache kmalloc-128 of size 128 [ 43.287107] The buggy address is located 119 bytes inside of [ 43.287107] allocated 120-byte region [ffff0008074f8e00, ffff0008074f8e78) [ 43.299691] [ 43.301169] The buggy address belongs to the physical page: [ 43.306727] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8874f8 [ 43.314710] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 43.322350] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 43.329293] page_type: f5(slab) [ 43.332429] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 43.340148] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 43.347876] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 43.355686] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 43.363499] head: 0bfffe0000000001 fffffdffe01d3e01 00000000ffffffff 00000000ffffffff [ 43.371311] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 43.379118] page dumped because: kasan: bad access detected [ 43.384672] [ 43.386149] Memory state around the buggy address: [ 43.390927] ffff0008074f8d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 43.398130] ffff0008074f8d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.405336] >ffff0008074f8e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 43.412536] ^ [ 43.419658] ffff0008074f8e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.426862] ffff0008074f8f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 43.434064] ==================================================================
[ 29.621883] ================================================================== [ 29.622101] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 29.622372] Write of size 2 at addr fff00000c636aa77 by task kunit_try_catch/203 [ 29.622716] [ 29.622958] CPU: 0 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250714 #1 PREEMPT [ 29.623058] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.623083] Hardware name: linux,dummy-virt (DT) [ 29.623114] Call trace: [ 29.623137] show_stack+0x20/0x38 (C) [ 29.623190] dump_stack_lvl+0x8c/0xd0 [ 29.623236] print_report+0x118/0x5d0 [ 29.623279] kasan_report+0xdc/0x128 [ 29.623320] kasan_check_range+0x100/0x1a8 [ 29.623363] __asan_memset+0x34/0x78 [ 29.623405] kmalloc_oob_memset_2+0x150/0x2f8 [ 29.623450] kunit_try_run_case+0x170/0x3f0 [ 29.624030] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.624416] kthread+0x328/0x630 [ 29.625035] ret_from_fork+0x10/0x20 [ 29.625097] [ 29.625116] Allocated by task 203: [ 29.625143] kasan_save_stack+0x3c/0x68 [ 29.625185] kasan_save_track+0x20/0x40 [ 29.625672] kasan_save_alloc_info+0x40/0x58 [ 29.625947] __kasan_kmalloc+0xd4/0xd8 [ 29.625989] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.626284] kmalloc_oob_memset_2+0xb0/0x2f8 [ 29.626447] kunit_try_run_case+0x170/0x3f0 [ 29.627072] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.627687] kthread+0x328/0x630 [ 29.628007] ret_from_fork+0x10/0x20 [ 29.628241] [ 29.628282] The buggy address belongs to the object at fff00000c636aa00 [ 29.628282] which belongs to the cache kmalloc-128 of size 128 [ 29.628355] The buggy address is located 119 bytes inside of [ 29.628355] allocated 120-byte region [fff00000c636aa00, fff00000c636aa78) [ 29.628416] [ 29.628438] The buggy address belongs to the physical page: [ 29.628469] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10636a [ 29.628523] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.628572] page_type: f5(slab) [ 29.628614] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 29.628661] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.628699] page dumped because: kasan: bad access detected [ 29.628729] [ 29.628747] Memory state around the buggy address: [ 29.628779] fff00000c636a900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.628819] fff00000c636a980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.628859] >fff00000c636aa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.628895] ^ [ 29.628934] fff00000c636aa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.628974] fff00000c636ab00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.629011] ==================================================================
[ 24.342252] ================================================================== [ 24.342637] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 24.343039] Write of size 2 at addr ffff888103e99177 by task kunit_try_catch/221 [ 24.343497] [ 24.343676] CPU: 0 UID: 0 PID: 221 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc6-next-20250714 #1 PREEMPT(voluntary) [ 24.343758] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 24.343772] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.343796] Call Trace: [ 24.343810] <TASK> [ 24.343829] dump_stack_lvl+0x73/0xb0 [ 24.343864] print_report+0xd1/0x610 [ 24.343887] ? __virt_addr_valid+0x1db/0x2d0 [ 24.343911] ? kmalloc_oob_memset_2+0x166/0x330 [ 24.343971] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.344021] ? kmalloc_oob_memset_2+0x166/0x330 [ 24.344042] kasan_report+0x141/0x180 [ 24.344063] ? kmalloc_oob_memset_2+0x166/0x330 [ 24.344100] kasan_check_range+0x10c/0x1c0 [ 24.344123] __asan_memset+0x27/0x50 [ 24.344146] kmalloc_oob_memset_2+0x166/0x330 [ 24.344167] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 24.344189] ? __schedule+0x10cc/0x2b60 [ 24.344213] ? __pfx_read_tsc+0x10/0x10 [ 24.344235] ? ktime_get_ts64+0x86/0x230 [ 24.344261] kunit_try_run_case+0x1a5/0x480 [ 24.344284] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.344304] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.344327] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.344350] ? __kthread_parkme+0x82/0x180 [ 24.344371] ? preempt_count_sub+0x50/0x80 [ 24.344395] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.344416] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.344440] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.344465] kthread+0x337/0x6f0 [ 24.344485] ? trace_preempt_on+0x20/0xc0 [ 24.344509] ? __pfx_kthread+0x10/0x10 [ 24.344529] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.344550] ? calculate_sigpending+0x7b/0xa0 [ 24.344576] ? __pfx_kthread+0x10/0x10 [ 24.344597] ret_from_fork+0x116/0x1d0 [ 24.344616] ? __pfx_kthread+0x10/0x10 [ 24.344637] ret_from_fork_asm+0x1a/0x30 [ 24.344675] </TASK> [ 24.344687] [ 24.355241] Allocated by task 221: [ 24.355447] kasan_save_stack+0x45/0x70 [ 24.355666] kasan_save_track+0x18/0x40 [ 24.355808] kasan_save_alloc_info+0x3b/0x50 [ 24.356016] __kasan_kmalloc+0xb7/0xc0 [ 24.356292] __kmalloc_cache_noprof+0x189/0x420 [ 24.356482] kmalloc_oob_memset_2+0xac/0x330 [ 24.356669] kunit_try_run_case+0x1a5/0x480 [ 24.356850] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.357158] kthread+0x337/0x6f0 [ 24.357439] ret_from_fork+0x116/0x1d0 [ 24.357673] ret_from_fork_asm+0x1a/0x30 [ 24.357886] [ 24.357955] The buggy address belongs to the object at ffff888103e99100 [ 24.357955] which belongs to the cache kmalloc-128 of size 128 [ 24.358543] The buggy address is located 119 bytes inside of [ 24.358543] allocated 120-byte region [ffff888103e99100, ffff888103e99178) [ 24.359082] [ 24.359153] The buggy address belongs to the physical page: [ 24.359319] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103e99 [ 24.360053] flags: 0x200000000000000(node=0|zone=2) [ 24.360298] page_type: f5(slab) [ 24.360569] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.361760] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.362092] page dumped because: kasan: bad access detected [ 24.362466] [ 24.362565] Memory state around the buggy address: [ 24.363033] ffff888103e99000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.363461] ffff888103e99080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.363766] >ffff888103e99100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.364314] ^ [ 24.364700] ffff888103e99180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.365081] ffff888103e99200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.365558] ==================================================================