Date
April 20, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 23.321606] ================================================================== [ 23.321718] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 23.321822] Write of size 8 at addr fff00000c6600071 by task kunit_try_catch/178 [ 23.321948] [ 23.322016] CPU: 0 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 23.322197] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.322256] Hardware name: linux,dummy-virt (DT) [ 23.322325] Call trace: [ 23.322376] show_stack+0x20/0x38 (C) [ 23.322490] dump_stack_lvl+0x8c/0xd0 [ 23.322815] print_report+0x118/0x608 [ 23.323025] kasan_report+0xdc/0x128 [ 23.324077] kasan_check_range+0x100/0x1a8 [ 23.324717] __asan_memset+0x34/0x78 [ 23.325000] kmalloc_oob_memset_8+0x150/0x2f8 [ 23.325807] kunit_try_run_case+0x170/0x3f0 [ 23.326554] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.327055] kthread+0x328/0x630 [ 23.327252] ret_from_fork+0x10/0x20 [ 23.327902] [ 23.328266] Allocated by task 178: [ 23.328337] kasan_save_stack+0x3c/0x68 [ 23.328798] kasan_save_track+0x20/0x40 [ 23.328955] kasan_save_alloc_info+0x40/0x58 [ 23.329065] __kasan_kmalloc+0xd4/0xd8 [ 23.329166] __kmalloc_cache_noprof+0x15c/0x3c0 [ 23.329281] kmalloc_oob_memset_8+0xb0/0x2f8 [ 23.330073] kunit_try_run_case+0x170/0x3f0 [ 23.330316] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.330474] kthread+0x328/0x630 [ 23.330647] ret_from_fork+0x10/0x20 [ 23.331301] [ 23.331361] The buggy address belongs to the object at fff00000c6600000 [ 23.331361] which belongs to the cache kmalloc-128 of size 128 [ 23.331646] The buggy address is located 113 bytes inside of [ 23.331646] allocated 120-byte region [fff00000c6600000, fff00000c6600078) [ 23.332225] [ 23.332276] The buggy address belongs to the physical page: [ 23.332346] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106600 [ 23.332469] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.332581] page_type: f5(slab) [ 23.332666] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.333999] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.334122] page dumped because: kasan: bad access detected [ 23.334660] [ 23.334745] Memory state around the buggy address: [ 23.335294] fff00000c65fff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.335542] fff00000c65fff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.335845] >fff00000c6600000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.335955] ^ [ 23.336051] fff00000c6600080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.336388] fff00000c6600100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.337788] ==================================================================
[ 11.631375] ================================================================== [ 11.631944] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 11.632295] Write of size 8 at addr ffff888102734c71 by task kunit_try_catch/196 [ 11.632654] [ 11.632772] CPU: 0 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 11.632815] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.632826] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.632845] Call Trace: [ 11.632858] <TASK> [ 11.632872] dump_stack_lvl+0x73/0xb0 [ 11.632898] print_report+0xd1/0x650 [ 11.632920] ? __virt_addr_valid+0x1db/0x2d0 [ 11.632941] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.632962] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.632984] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.633006] kasan_report+0x141/0x180 [ 11.633028] ? kmalloc_oob_memset_8+0x166/0x330 [ 11.633055] kasan_check_range+0x10c/0x1c0 [ 11.633079] __asan_memset+0x27/0x50 [ 11.633099] kmalloc_oob_memset_8+0x166/0x330 [ 11.633121] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 11.633144] ? __schedule+0x10cc/0x2b30 [ 11.633167] ? __pfx_read_tsc+0x10/0x10 [ 11.633186] ? ktime_get_ts64+0x86/0x230 [ 11.633211] kunit_try_run_case+0x1a5/0x480 [ 11.633234] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.633265] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.633288] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.633311] ? __kthread_parkme+0x82/0x180 [ 11.633345] ? preempt_count_sub+0x50/0x80 [ 11.633369] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.633392] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.633413] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.633435] kthread+0x337/0x6f0 [ 11.633455] ? trace_preempt_on+0x20/0xc0 [ 11.633477] ? __pfx_kthread+0x10/0x10 [ 11.633545] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.633568] ? calculate_sigpending+0x7b/0xa0 [ 11.633588] ? __pfx_kthread+0x10/0x10 [ 11.633610] ret_from_fork+0x41/0x80 [ 11.633631] ? __pfx_kthread+0x10/0x10 [ 11.633652] ret_from_fork_asm+0x1a/0x30 [ 11.633683] </TASK> [ 11.633694] [ 11.641561] Allocated by task 196: [ 11.641693] kasan_save_stack+0x45/0x70 [ 11.641903] kasan_save_track+0x18/0x40 [ 11.642097] kasan_save_alloc_info+0x3b/0x50 [ 11.642352] __kasan_kmalloc+0xb7/0xc0 [ 11.642497] __kmalloc_cache_noprof+0x189/0x420 [ 11.642758] kmalloc_oob_memset_8+0xac/0x330 [ 11.642975] kunit_try_run_case+0x1a5/0x480 [ 11.643158] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.643408] kthread+0x337/0x6f0 [ 11.643535] ret_from_fork+0x41/0x80 [ 11.643754] ret_from_fork_asm+0x1a/0x30 [ 11.643923] [ 11.644020] The buggy address belongs to the object at ffff888102734c00 [ 11.644020] which belongs to the cache kmalloc-128 of size 128 [ 11.644436] The buggy address is located 113 bytes inside of [ 11.644436] allocated 120-byte region [ffff888102734c00, ffff888102734c78) [ 11.644789] [ 11.644881] The buggy address belongs to the physical page: [ 11.645128] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102734 [ 11.645723] flags: 0x200000000000000(node=0|zone=2) [ 11.645897] page_type: f5(slab) [ 11.646017] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.646246] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.646999] page dumped because: kasan: bad access detected [ 11.647259] [ 11.647371] Memory state around the buggy address: [ 11.647724] ffff888102734b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.648051] ffff888102734b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.648314] >ffff888102734c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.648563] ^ [ 11.648906] ffff888102734c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.649204] ffff888102734d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.649424] ==================================================================
[ 21.524925] ================================================================== [ 21.525977] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 21.526680] Write of size 8 at addr ffff0000015aae71 by task kunit_try_catch/230 [ 21.527367] [ 21.527532] CPU: 1 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 21.527584] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.527598] Hardware name: Radxa ROCK Pi 4B (DT) [ 21.527616] Call trace: [ 21.527627] show_stack+0x20/0x38 (C) [ 21.527662] dump_stack_lvl+0x8c/0xd0 [ 21.527693] print_report+0x118/0x608 [ 21.527722] kasan_report+0xdc/0x128 [ 21.527750] kasan_check_range+0x100/0x1a8 [ 21.527781] __asan_memset+0x34/0x78 [ 21.527811] kmalloc_oob_memset_8+0x150/0x2f8 [ 21.527845] kunit_try_run_case+0x170/0x3f0 [ 21.527880] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.527920] kthread+0x328/0x630 [ 21.527954] ret_from_fork+0x10/0x20 [ 21.527987] [ 21.533842] Allocated by task 230: [ 21.534168] kasan_save_stack+0x3c/0x68 [ 21.534542] kasan_save_track+0x20/0x40 [ 21.534913] kasan_save_alloc_info+0x40/0x58 [ 21.535325] __kasan_kmalloc+0xd4/0xd8 [ 21.535689] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.536129] kmalloc_oob_memset_8+0xb0/0x2f8 [ 21.536545] kunit_try_run_case+0x170/0x3f0 [ 21.536952] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.537476] kthread+0x328/0x630 [ 21.537799] ret_from_fork+0x10/0x20 [ 21.538149] [ 21.538302] The buggy address belongs to the object at ffff0000015aae00 [ 21.538302] which belongs to the cache kmalloc-128 of size 128 [ 21.539436] The buggy address is located 113 bytes inside of [ 21.539436] allocated 120-byte region [ffff0000015aae00, ffff0000015aae78) [ 21.540580] [ 21.540734] The buggy address belongs to the physical page: [ 21.541251] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x15aa [ 21.541977] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff) [ 21.542590] page_type: f5(slab) [ 21.542904] raw: 03fffe0000000000 ffff000000402a00 dead000000000122 0000000000000000 [ 21.543620] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.544327] page dumped because: kasan: bad access detected [ 21.544842] [ 21.544995] Memory state around the buggy address: [ 21.545444] ffff0000015aad00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.546110] ffff0000015aad80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.546777] >ffff0000015aae00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.547439] ^ [ 21.548095] ffff0000015aae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.548761] ffff0000015aaf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.549423] ==================================================================