Date
April 22, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 17.712970] ================================================================== [ 17.713151] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 17.713303] Write of size 128 at addr fff00000c62d4700 by task kunit_try_catch/172 [ 17.713453] [ 17.713559] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 17.713722] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.713782] Hardware name: linux,dummy-virt (DT) [ 17.713851] Call trace: [ 17.713898] show_stack+0x20/0x38 (C) [ 17.714077] dump_stack_lvl+0x8c/0xd0 [ 17.714291] print_report+0x118/0x608 [ 17.714563] kasan_report+0xdc/0x128 [ 17.714850] kasan_check_range+0x100/0x1a8 [ 17.715006] __asan_memset+0x34/0x78 [ 17.715099] kmalloc_oob_in_memset+0x144/0x2d0 [ 17.715192] kunit_try_run_case+0x170/0x3f0 [ 17.715627] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.715754] kthread+0x328/0x630 [ 17.715859] ret_from_fork+0x10/0x20 [ 17.715961] [ 17.716176] Allocated by task 172: [ 17.716269] kasan_save_stack+0x3c/0x68 [ 17.716360] kasan_save_track+0x20/0x40 [ 17.716443] kasan_save_alloc_info+0x40/0x58 [ 17.716541] __kasan_kmalloc+0xd4/0xd8 [ 17.716651] __kmalloc_cache_noprof+0x15c/0x3c0 [ 17.716761] kmalloc_oob_in_memset+0xb0/0x2d0 [ 17.716861] kunit_try_run_case+0x170/0x3f0 [ 17.716955] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.717080] kthread+0x328/0x630 [ 17.717155] ret_from_fork+0x10/0x20 [ 17.717493] [ 17.717548] The buggy address belongs to the object at fff00000c62d4700 [ 17.717548] which belongs to the cache kmalloc-128 of size 128 [ 17.717722] The buggy address is located 0 bytes inside of [ 17.717722] allocated 120-byte region [fff00000c62d4700, fff00000c62d4778) [ 17.717912] [ 17.717956] The buggy address belongs to the physical page: [ 17.718024] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1062d4 [ 17.718150] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.718258] page_type: f5(slab) [ 17.718342] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 17.718474] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.718609] page dumped because: kasan: bad access detected [ 17.718709] [ 17.718760] Memory state around the buggy address: [ 17.718856] fff00000c62d4600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.718984] fff00000c62d4680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.719111] >fff00000c62d4700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.719226] ^ [ 17.719405] fff00000c62d4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.719491] fff00000c62d4800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.719581] ==================================================================
[ 18.075903] ================================================================== [ 18.077096] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 18.077793] Write of size 128 at addr ffff888103199800 by task kunit_try_catch/190 [ 18.078398] [ 18.079124] CPU: 0 UID: 0 PID: 190 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 18.079250] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.079288] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.079346] Call Trace: [ 18.079385] <TASK> [ 18.079518] dump_stack_lvl+0x73/0xb0 [ 18.079608] print_report+0xd1/0x650 [ 18.079680] ? __virt_addr_valid+0x1db/0x2d0 [ 18.079754] ? kmalloc_oob_in_memset+0x15f/0x320 [ 18.079824] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.079902] ? kmalloc_oob_in_memset+0x15f/0x320 [ 18.079979] kasan_report+0x141/0x180 [ 18.080017] ? kmalloc_oob_in_memset+0x15f/0x320 [ 18.080059] kasan_check_range+0x10c/0x1c0 [ 18.080094] __asan_memset+0x27/0x50 [ 18.080122] kmalloc_oob_in_memset+0x15f/0x320 [ 18.080155] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 18.080192] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 18.080229] kunit_try_run_case+0x1a5/0x480 [ 18.080266] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.080297] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.080332] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.080366] ? __kthread_parkme+0x82/0x180 [ 18.080397] ? preempt_count_sub+0x50/0x80 [ 18.080459] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.080561] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.080606] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.080638] kthread+0x337/0x6f0 [ 18.080671] ? trace_preempt_on+0x20/0xc0 [ 18.080707] ? __pfx_kthread+0x10/0x10 [ 18.080739] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.080771] ? calculate_sigpending+0x7b/0xa0 [ 18.080802] ? __pfx_kthread+0x10/0x10 [ 18.080833] ret_from_fork+0x41/0x80 [ 18.080865] ? __pfx_kthread+0x10/0x10 [ 18.080895] ret_from_fork_asm+0x1a/0x30 [ 18.080939] </TASK> [ 18.080953] [ 18.103253] Allocated by task 190: [ 18.103765] kasan_save_stack+0x45/0x70 [ 18.104239] kasan_save_track+0x18/0x40 [ 18.104608] kasan_save_alloc_info+0x3b/0x50 [ 18.105026] __kasan_kmalloc+0xb7/0xc0 [ 18.105444] __kmalloc_cache_noprof+0x189/0x420 [ 18.106000] kmalloc_oob_in_memset+0xac/0x320 [ 18.106374] kunit_try_run_case+0x1a5/0x480 [ 18.107802] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.108346] kthread+0x337/0x6f0 [ 18.108886] ret_from_fork+0x41/0x80 [ 18.109286] ret_from_fork_asm+0x1a/0x30 [ 18.109808] [ 18.110043] The buggy address belongs to the object at ffff888103199800 [ 18.110043] which belongs to the cache kmalloc-128 of size 128 [ 18.110990] The buggy address is located 0 bytes inside of [ 18.110990] allocated 120-byte region [ffff888103199800, ffff888103199878) [ 18.112538] [ 18.112760] The buggy address belongs to the physical page: [ 18.113398] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103199 [ 18.114157] flags: 0x200000000000000(node=0|zone=2) [ 18.114649] page_type: f5(slab) [ 18.115030] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 18.115929] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.116773] page dumped because: kasan: bad access detected [ 18.117244] [ 18.117601] Memory state around the buggy address: [ 18.118076] ffff888103199700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.119601] ffff888103199780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.120290] >ffff888103199800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.121004] ^ [ 18.121550] ffff888103199880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.122250] ffff888103199900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.122907] ==================================================================
[ 19.750798] ================================================================== [ 19.751835] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 19.752533] Write of size 128 at addr ffff00000c98e600 by task kunit_try_catch/228 [ 19.753232] [ 19.753396] CPU: 1 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 19.753444] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.753461] Hardware name: Radxa ROCK Pi 4B (DT) [ 19.753479] Call trace: [ 19.753492] show_stack+0x20/0x38 (C) [ 19.753524] dump_stack_lvl+0x8c/0xd0 [ 19.753556] print_report+0x118/0x608 [ 19.753586] kasan_report+0xdc/0x128 [ 19.753614] kasan_check_range+0x100/0x1a8 [ 19.753645] __asan_memset+0x34/0x78 [ 19.753675] kmalloc_oob_in_memset+0x144/0x2d0 [ 19.753709] kunit_try_run_case+0x170/0x3f0 [ 19.753745] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.753792] kthread+0x328/0x630 [ 19.753839] ret_from_fork+0x10/0x20 [ 19.753880] [ 19.759786] Allocated by task 228: [ 19.760122] kasan_save_stack+0x3c/0x68 [ 19.760508] kasan_save_track+0x20/0x40 [ 19.760889] kasan_save_alloc_info+0x40/0x58 [ 19.761311] __kasan_kmalloc+0xd4/0xd8 [ 19.761683] __kmalloc_cache_noprof+0x15c/0x3c0 [ 19.762136] kmalloc_oob_in_memset+0xb0/0x2d0 [ 19.762569] kunit_try_run_case+0x170/0x3f0 [ 19.762985] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.763522] kthread+0x328/0x630 [ 19.763853] ret_from_fork+0x10/0x20 [ 19.764214] [ 19.764372] The buggy address belongs to the object at ffff00000c98e600 [ 19.764372] which belongs to the cache kmalloc-128 of size 128 [ 19.765516] The buggy address is located 0 bytes inside of [ 19.765516] allocated 120-byte region [ffff00000c98e600, ffff00000c98e678) [ 19.766655] [ 19.766815] The buggy address belongs to the physical page: [ 19.767339] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xc98e [ 19.768075] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff) [ 19.768695] page_type: f5(slab) [ 19.769017] raw: 03fffe0000000000 ffff000000402a00 dead000000000122 0000000000000000 [ 19.769743] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.770458] page dumped because: kasan: bad access detected [ 19.770980] [ 19.771137] Memory state around the buggy address: [ 19.771592] ffff00000c98e500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.772267] ffff00000c98e580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.772942] >ffff00000c98e600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.773611] ^ [ 19.774275] ffff00000c98e680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.774951] ffff00000c98e700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.775621] ==================================================================