Date
July 15, 2025, 11:35 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 44.383695] ================================================================== [ 44.393363] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 44.400567] Write of size 2 at addr ffff000801af8077 by task kunit_try_catch/253 [ 44.407943] [ 44.409428] CPU: 3 UID: 0 PID: 253 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 44.409485] Tainted: [B]=BAD_PAGE, [N]=TEST [ 44.409502] Hardware name: WinLink E850-96 board (DT) [ 44.409525] Call trace: [ 44.409539] show_stack+0x20/0x38 (C) [ 44.409574] dump_stack_lvl+0x8c/0xd0 [ 44.409607] print_report+0x118/0x5d0 [ 44.409636] kasan_report+0xdc/0x128 [ 44.409660] kasan_check_range+0x100/0x1a8 [ 44.409686] __asan_memset+0x34/0x78 [ 44.409717] kmalloc_oob_memset_2+0x150/0x2f8 [ 44.409749] kunit_try_run_case+0x170/0x3f0 [ 44.409778] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.409815] kthread+0x328/0x630 [ 44.409842] ret_from_fork+0x10/0x20 [ 44.409876] [ 44.476518] Allocated by task 253: [ 44.479906] kasan_save_stack+0x3c/0x68 [ 44.483722] kasan_save_track+0x20/0x40 [ 44.487542] kasan_save_alloc_info+0x40/0x58 [ 44.491794] __kasan_kmalloc+0xd4/0xd8 [ 44.495527] __kmalloc_cache_noprof+0x16c/0x3c0 [ 44.500041] kmalloc_oob_memset_2+0xb0/0x2f8 [ 44.504294] kunit_try_run_case+0x170/0x3f0 [ 44.508461] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 44.513930] kthread+0x328/0x630 [ 44.517142] ret_from_fork+0x10/0x20 [ 44.520700] [ 44.522177] The buggy address belongs to the object at ffff000801af8000 [ 44.522177] which belongs to the cache kmalloc-128 of size 128 [ 44.534679] The buggy address is located 119 bytes inside of [ 44.534679] allocated 120-byte region [ffff000801af8000, ffff000801af8078) [ 44.547262] [ 44.548742] The buggy address belongs to the physical page: [ 44.554298] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881af8 [ 44.562281] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 44.569921] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 44.576864] page_type: f5(slab) [ 44.580003] raw: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 44.587720] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 44.595448] head: 0bfffe0000000040 ffff000800002a00 dead000000000122 0000000000000000 [ 44.603258] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 44.611071] head: 0bfffe0000000001 fffffdffe006be01 00000000ffffffff 00000000ffffffff [ 44.618882] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 44.626688] page dumped because: kasan: bad access detected [ 44.632243] [ 44.633719] Memory state around the buggy address: [ 44.638504] ffff000801af7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.645704] ffff000801af7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.652908] >ffff000801af8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 44.660108] ^ [ 44.667230] ffff000801af8080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.674434] ffff000801af8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.681637] ==================================================================
[ 30.615754] ================================================================== [ 30.616002] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 30.616122] Write of size 2 at addr fff00000c64f4877 by task kunit_try_catch/204 [ 30.616273] [ 30.616364] CPU: 0 UID: 0 PID: 204 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT [ 30.616480] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.616506] Hardware name: linux,dummy-virt (DT) [ 30.616535] Call trace: [ 30.616556] show_stack+0x20/0x38 (C) [ 30.616611] dump_stack_lvl+0x8c/0xd0 [ 30.616744] print_report+0x118/0x5d0 [ 30.616944] kasan_report+0xdc/0x128 [ 30.616997] kasan_check_range+0x100/0x1a8 [ 30.617129] __asan_memset+0x34/0x78 [ 30.617313] kmalloc_oob_memset_2+0x150/0x2f8 [ 30.617416] kunit_try_run_case+0x170/0x3f0 [ 30.617499] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.617549] kthread+0x328/0x630 [ 30.617666] ret_from_fork+0x10/0x20 [ 30.617714] [ 30.618136] Allocated by task 204: [ 30.618241] kasan_save_stack+0x3c/0x68 [ 30.618319] kasan_save_track+0x20/0x40 [ 30.618357] kasan_save_alloc_info+0x40/0x58 [ 30.618394] __kasan_kmalloc+0xd4/0xd8 [ 30.618461] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.618503] kmalloc_oob_memset_2+0xb0/0x2f8 [ 30.618541] kunit_try_run_case+0x170/0x3f0 [ 30.618577] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.618619] kthread+0x328/0x630 [ 30.618650] ret_from_fork+0x10/0x20 [ 30.618685] [ 30.618705] The buggy address belongs to the object at fff00000c64f4800 [ 30.618705] which belongs to the cache kmalloc-128 of size 128 [ 30.618759] The buggy address is located 119 bytes inside of [ 30.618759] allocated 120-byte region [fff00000c64f4800, fff00000c64f4878) [ 30.618938] [ 30.618966] The buggy address belongs to the physical page: [ 30.619068] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1064f4 [ 30.619182] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.619229] page_type: f5(slab) [ 30.619266] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 30.619314] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 30.619357] page dumped because: kasan: bad access detected [ 30.619387] [ 30.619404] Memory state around the buggy address: [ 30.619542] fff00000c64f4700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 30.619740] fff00000c64f4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.619788] >fff00000c64f4800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 30.619890] ^ [ 30.619978] fff00000c64f4880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.620080] fff00000c64f4900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.620143] ==================================================================
[ 24.122264] ================================================================== [ 24.123073] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 24.123815] Write of size 2 at addr ffff888105654b77 by task kunit_try_catch/220 [ 24.124356] [ 24.124543] CPU: 1 UID: 0 PID: 220 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250715 #1 PREEMPT(voluntary) [ 24.124597] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.124610] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.124630] Call Trace: [ 24.124642] <TASK> [ 24.124658] dump_stack_lvl+0x73/0xb0 [ 24.124686] print_report+0xd1/0x610 [ 24.124708] ? __virt_addr_valid+0x1db/0x2d0 [ 24.124730] ? kmalloc_oob_memset_2+0x166/0x330 [ 24.124750] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.124775] ? kmalloc_oob_memset_2+0x166/0x330 [ 24.124797] kasan_report+0x141/0x180 [ 24.124819] ? kmalloc_oob_memset_2+0x166/0x330 [ 24.124844] kasan_check_range+0x10c/0x1c0 [ 24.124867] __asan_memset+0x27/0x50 [ 24.124890] kmalloc_oob_memset_2+0x166/0x330 [ 24.124912] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 24.124934] ? __schedule+0x10cc/0x2b60 [ 24.124955] ? __pfx_read_tsc+0x10/0x10 [ 24.124976] ? ktime_get_ts64+0x86/0x230 [ 24.125000] kunit_try_run_case+0x1a5/0x480 [ 24.125023] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.125043] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.125065] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.125123] ? __kthread_parkme+0x82/0x180 [ 24.125156] ? preempt_count_sub+0x50/0x80 [ 24.125191] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.125214] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.125239] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.125264] kthread+0x337/0x6f0 [ 24.125285] ? trace_preempt_on+0x20/0xc0 [ 24.125308] ? __pfx_kthread+0x10/0x10 [ 24.125328] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.125352] ? calculate_sigpending+0x7b/0xa0 [ 24.125374] ? __pfx_kthread+0x10/0x10 [ 24.125395] ret_from_fork+0x116/0x1d0 [ 24.125414] ? __pfx_kthread+0x10/0x10 [ 24.125434] ret_from_fork_asm+0x1a/0x30 [ 24.125465] </TASK> [ 24.125475] [ 24.138226] Allocated by task 220: [ 24.138581] kasan_save_stack+0x45/0x70 [ 24.138955] kasan_save_track+0x18/0x40 [ 24.139452] kasan_save_alloc_info+0x3b/0x50 [ 24.139811] __kasan_kmalloc+0xb7/0xc0 [ 24.140195] __kmalloc_cache_noprof+0x189/0x420 [ 24.140847] kmalloc_oob_memset_2+0xac/0x330 [ 24.141143] kunit_try_run_case+0x1a5/0x480 [ 24.141424] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.141901] kthread+0x337/0x6f0 [ 24.142073] ret_from_fork+0x116/0x1d0 [ 24.142260] ret_from_fork_asm+0x1a/0x30 [ 24.142447] [ 24.142536] The buggy address belongs to the object at ffff888105654b00 [ 24.142536] which belongs to the cache kmalloc-128 of size 128 [ 24.143083] The buggy address is located 119 bytes inside of [ 24.143083] allocated 120-byte region [ffff888105654b00, ffff888105654b78) [ 24.143651] [ 24.143796] The buggy address belongs to the physical page: [ 24.144093] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105654 [ 24.144402] flags: 0x200000000000000(node=0|zone=2) [ 24.144629] page_type: f5(slab) [ 24.144999] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 24.145358] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.145682] page dumped because: kasan: bad access detected [ 24.145902] [ 24.146062] Memory state around the buggy address: [ 24.146330] ffff888105654a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.146654] ffff888105654a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.147000] >ffff888105654b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.147292] ^ [ 24.147648] ffff888105654b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.147934] ffff888105654c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.148223] ==================================================================