Date
April 20, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 23.289667] ================================================================== [ 23.289791] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 23.289903] Write of size 4 at addr fff00000c413cf75 by task kunit_try_catch/176 [ 23.290071] [ 23.290147] CPU: 0 UID: 0 PID: 176 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 23.290338] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.290445] Hardware name: linux,dummy-virt (DT) [ 23.290527] Call trace: [ 23.290580] show_stack+0x20/0x38 (C) [ 23.290697] dump_stack_lvl+0x8c/0xd0 [ 23.290804] print_report+0x118/0x608 [ 23.290908] kasan_report+0xdc/0x128 [ 23.291032] kasan_check_range+0x100/0x1a8 [ 23.291146] __asan_memset+0x34/0x78 [ 23.291255] kmalloc_oob_memset_4+0x150/0x300 [ 23.291368] kunit_try_run_case+0x170/0x3f0 [ 23.291502] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.291704] kthread+0x328/0x630 [ 23.291834] ret_from_fork+0x10/0x20 [ 23.291987] [ 23.292045] Allocated by task 176: [ 23.292121] kasan_save_stack+0x3c/0x68 [ 23.292234] kasan_save_track+0x20/0x40 [ 23.292350] kasan_save_alloc_info+0x40/0x58 [ 23.293022] __kasan_kmalloc+0xd4/0xd8 [ 23.293247] __kmalloc_cache_noprof+0x15c/0x3c0 [ 23.293350] kmalloc_oob_memset_4+0xb0/0x300 [ 23.293446] kunit_try_run_case+0x170/0x3f0 [ 23.295042] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.295420] kthread+0x328/0x630 [ 23.296131] ret_from_fork+0x10/0x20 [ 23.296247] [ 23.296768] The buggy address belongs to the object at fff00000c413cf00 [ 23.296768] which belongs to the cache kmalloc-128 of size 128 [ 23.296905] The buggy address is located 117 bytes inside of [ 23.296905] allocated 120-byte region [fff00000c413cf00, fff00000c413cf78) [ 23.297785] [ 23.298677] The buggy address belongs to the physical page: [ 23.298794] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10413c [ 23.299101] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.299679] page_type: f5(slab) [ 23.299881] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.300096] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.300224] page dumped because: kasan: bad access detected [ 23.300304] [ 23.300371] Memory state around the buggy address: [ 23.300786] fff00000c413ce00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.300913] fff00000c413ce80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.301244] >fff00000c413cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.301422] ^ [ 23.301559] fff00000c413cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.301700] fff00000c413d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.301846] ==================================================================
[ 11.608661] ================================================================== [ 11.609076] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 11.609374] Write of size 4 at addr ffff888102b31c75 by task kunit_try_catch/194 [ 11.609666] [ 11.609778] CPU: 1 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 11.609821] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.609831] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.609850] Call Trace: [ 11.609861] <TASK> [ 11.609874] dump_stack_lvl+0x73/0xb0 [ 11.609898] print_report+0xd1/0x650 [ 11.609919] ? __virt_addr_valid+0x1db/0x2d0 [ 11.609941] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.609962] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.609984] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.610006] kasan_report+0x141/0x180 [ 11.610028] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.610055] kasan_check_range+0x10c/0x1c0 [ 11.610078] __asan_memset+0x27/0x50 [ 11.610098] kmalloc_oob_memset_4+0x166/0x330 [ 11.610120] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 11.610145] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 11.610171] kunit_try_run_case+0x1a5/0x480 [ 11.610194] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.610215] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.610263] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.610286] ? __kthread_parkme+0x82/0x180 [ 11.610307] ? preempt_count_sub+0x50/0x80 [ 11.610343] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.610365] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.610387] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.610408] kthread+0x337/0x6f0 [ 11.610428] ? trace_preempt_on+0x20/0xc0 [ 11.610450] ? __pfx_kthread+0x10/0x10 [ 11.610472] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.610493] ? calculate_sigpending+0x7b/0xa0 [ 11.610513] ? __pfx_kthread+0x10/0x10 [ 11.610535] ret_from_fork+0x41/0x80 [ 11.610555] ? __pfx_kthread+0x10/0x10 [ 11.610576] ret_from_fork_asm+0x1a/0x30 [ 11.610607] </TASK> [ 11.610616] [ 11.617725] Allocated by task 194: [ 11.617956] kasan_save_stack+0x45/0x70 [ 11.618192] kasan_save_track+0x18/0x40 [ 11.618470] kasan_save_alloc_info+0x3b/0x50 [ 11.618697] __kasan_kmalloc+0xb7/0xc0 [ 11.618868] __kmalloc_cache_noprof+0x189/0x420 [ 11.619018] kmalloc_oob_memset_4+0xac/0x330 [ 11.619162] kunit_try_run_case+0x1a5/0x480 [ 11.619434] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.619680] kthread+0x337/0x6f0 [ 11.620015] ret_from_fork+0x41/0x80 [ 11.620236] ret_from_fork_asm+0x1a/0x30 [ 11.620437] [ 11.620538] The buggy address belongs to the object at ffff888102b31c00 [ 11.620538] which belongs to the cache kmalloc-128 of size 128 [ 11.621040] The buggy address is located 117 bytes inside of [ 11.621040] allocated 120-byte region [ffff888102b31c00, ffff888102b31c78) [ 11.621566] [ 11.621668] The buggy address belongs to the physical page: [ 11.621922] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b31 [ 11.622225] flags: 0x200000000000000(node=0|zone=2) [ 11.622455] page_type: f5(slab) [ 11.622684] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.623002] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.623344] page dumped because: kasan: bad access detected [ 11.623725] [ 11.623820] Memory state around the buggy address: [ 11.623976] ffff888102b31b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.624189] ffff888102b31b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.624468] >ffff888102b31c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.624833] ^ [ 11.625142] ffff888102b31c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.625552] ffff888102b31d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.625758] ==================================================================
[ 21.497493] ================================================================== [ 21.498571] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 21.499261] Write of size 4 at addr ffff00000df93575 by task kunit_try_catch/228 [ 21.499945] [ 21.500110] CPU: 2 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 21.500158] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.500172] Hardware name: Radxa ROCK Pi 4B (DT) [ 21.500189] Call trace: [ 21.500201] show_stack+0x20/0x38 (C) [ 21.500234] dump_stack_lvl+0x8c/0xd0 [ 21.500265] print_report+0x118/0x608 [ 21.500294] kasan_report+0xdc/0x128 [ 21.500321] kasan_check_range+0x100/0x1a8 [ 21.500352] __asan_memset+0x34/0x78 [ 21.500382] kmalloc_oob_memset_4+0x150/0x300 [ 21.500416] kunit_try_run_case+0x170/0x3f0 [ 21.500451] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.500490] kthread+0x328/0x630 [ 21.500524] ret_from_fork+0x10/0x20 [ 21.500556] [ 21.506409] Allocated by task 228: [ 21.506735] kasan_save_stack+0x3c/0x68 [ 21.507108] kasan_save_track+0x20/0x40 [ 21.507479] kasan_save_alloc_info+0x40/0x58 [ 21.507892] __kasan_kmalloc+0xd4/0xd8 [ 21.508254] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.508695] kmalloc_oob_memset_4+0xb0/0x300 [ 21.509110] kunit_try_run_case+0x170/0x3f0 [ 21.509516] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.510039] kthread+0x328/0x630 [ 21.510362] ret_from_fork+0x10/0x20 [ 21.510711] [ 21.510866] The buggy address belongs to the object at ffff00000df93500 [ 21.510866] which belongs to the cache kmalloc-128 of size 128 [ 21.511999] The buggy address is located 117 bytes inside of [ 21.511999] allocated 120-byte region [ffff00000df93500, ffff00000df93578) [ 21.513143] [ 21.513297] The buggy address belongs to the physical page: [ 21.513814] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xdf93 [ 21.514541] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff) [ 21.515154] page_type: f5(slab) [ 21.515469] raw: 03fffe0000000000 ffff000000402a00 dead000000000122 0000000000000000 [ 21.516184] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.516892] page dumped because: kasan: bad access detected [ 21.517408] [ 21.517560] Memory state around the buggy address: [ 21.518009] ffff00000df93400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.518677] ffff00000df93480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.519344] >ffff00000df93500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.520006] ^ [ 21.520663] ffff00000df93580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.521329] ffff00000df93600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.521992] ==================================================================