Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 37.522388] ================================================================== [ 37.533861] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 37.541190] Write of size 4 at addr ffff0000822c2875 by task kunit_try_catch/272 [ 37.548688] [ 37.550222] CPU: 3 UID: 0 PID: 272 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 37.550252] Tainted: [B]=BAD_PAGE, [N]=TEST [ 37.550261] Hardware name: Thundercomm Dragonboard 845c (DT) [ 37.550273] Call trace: [ 37.550281] show_stack+0x20/0x38 (C) [ 37.550300] dump_stack_lvl+0x8c/0xd0 [ 37.550318] print_report+0x118/0x608 [ 37.550338] kasan_report+0xdc/0x128 [ 37.550358] kasan_check_range+0x100/0x1a8 [ 37.550378] __asan_memset+0x34/0x78 [ 37.550394] kmalloc_oob_memset_4+0x150/0x300 [ 37.550413] kunit_try_run_case+0x170/0x3f0 [ 37.550432] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.550454] kthread+0x328/0x630 [ 37.550469] ret_from_fork+0x10/0x20 [ 37.550487] [ 37.619269] Allocated by task 272: [ 37.622729] kasan_save_stack+0x3c/0x68 [ 37.626639] kasan_save_track+0x20/0x40 [ 37.630547] kasan_save_alloc_info+0x40/0x58 [ 37.634885] __kasan_kmalloc+0xd4/0xd8 [ 37.638704] __kmalloc_cache_noprof+0x16c/0x3c0 [ 37.643314] kmalloc_oob_memset_4+0xb0/0x300 [ 37.647652] kunit_try_run_case+0x170/0x3f0 [ 37.651902] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.657474] kthread+0x328/0x630 [ 37.660762] ret_from_fork+0x10/0x20 [ 37.664400] [ 37.665931] The buggy address belongs to the object at ffff0000822c2800 [ 37.665931] which belongs to the cache kmalloc-128 of size 128 [ 37.678593] The buggy address is located 117 bytes inside of [ 37.678593] allocated 120-byte region [ffff0000822c2800, ffff0000822c2878) [ 37.691342] [ 37.692879] The buggy address belongs to the physical page: [ 37.698530] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022c2 [ 37.706643] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 37.714402] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 37.721458] page_type: f5(slab) [ 37.724659] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 37.732504] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 37.740348] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 37.748279] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 37.756210] head: 0bfffe0000000001 fffffdffc208b081 00000000ffffffff 00000000ffffffff [ 37.764141] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 37.772065] page dumped because: kasan: bad access detected [ 37.777714] [ 37.779241] Memory state around the buggy address: [ 37.784099] ffff0000822c2700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.791415] ffff0000822c2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.798729] >ffff0000822c2800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 37.806049] ^ [ 37.813283] ffff0000822c2880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.820606] ffff0000822c2900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.827926] ==================================================================
[ 33.032034] ================================================================== [ 33.032149] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 33.032263] Write of size 4 at addr fff00000c7732275 by task kunit_try_catch/185 [ 33.032378] [ 33.032449] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 33.032645] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.032708] Hardware name: linux,dummy-virt (DT) [ 33.032775] Call trace: [ 33.032825] show_stack+0x20/0x38 (C) [ 33.032995] dump_stack_lvl+0x8c/0xd0 [ 33.033191] print_report+0x118/0x608 [ 33.033326] kasan_report+0xdc/0x128 [ 33.033493] kasan_check_range+0x100/0x1a8 [ 33.033620] __asan_memset+0x34/0x78 [ 33.033735] kmalloc_oob_memset_4+0x150/0x300 [ 33.033849] kunit_try_run_case+0x170/0x3f0 [ 33.033982] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.034110] kthread+0x328/0x630 [ 33.034218] ret_from_fork+0x10/0x20 [ 33.034328] [ 33.034387] Allocated by task 185: [ 33.034452] kasan_save_stack+0x3c/0x68 [ 33.034545] kasan_save_track+0x20/0x40 [ 33.034633] kasan_save_alloc_info+0x40/0x58 [ 33.034735] __kasan_kmalloc+0xd4/0xd8 [ 33.034847] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.035183] kmalloc_oob_memset_4+0xb0/0x300 [ 33.035387] kunit_try_run_case+0x170/0x3f0 [ 33.035577] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.035748] kthread+0x328/0x630 [ 33.035843] ret_from_fork+0x10/0x20 [ 33.036030] [ 33.036091] The buggy address belongs to the object at fff00000c7732200 [ 33.036091] which belongs to the cache kmalloc-128 of size 128 [ 33.036225] The buggy address is located 117 bytes inside of [ 33.036225] allocated 120-byte region [fff00000c7732200, fff00000c7732278) [ 33.036372] [ 33.036420] The buggy address belongs to the physical page: [ 33.036497] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107732 [ 33.036648] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.036880] page_type: f5(slab) [ 33.037054] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 33.037192] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 33.037436] page dumped because: kasan: bad access detected [ 33.037637] [ 33.037767] Memory state around the buggy address: [ 33.037849] fff00000c7732100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.038008] fff00000c7732180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.038137] >fff00000c7732200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.038238] ^ [ 33.038544] fff00000c7732280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.038649] fff00000c7732300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.038748] ==================================================================
[ 29.114570] ================================================================== [ 29.115172] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 29.116238] Write of size 4 at addr ffff888102dcfa75 by task kunit_try_catch/204 [ 29.117343] [ 29.117571] CPU: 0 UID: 0 PID: 204 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 29.117675] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.117706] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.117751] Call Trace: [ 29.118059] <TASK> [ 29.118102] dump_stack_lvl+0x73/0xb0 [ 29.118191] print_report+0xd1/0x650 [ 29.118242] ? __virt_addr_valid+0x1db/0x2d0 [ 29.118287] ? kmalloc_oob_memset_4+0x166/0x330 [ 29.118317] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.118351] ? kmalloc_oob_memset_4+0x166/0x330 [ 29.118380] kasan_report+0x141/0x180 [ 29.118408] ? kmalloc_oob_memset_4+0x166/0x330 [ 29.118442] kasan_check_range+0x10c/0x1c0 [ 29.118472] __asan_memset+0x27/0x50 [ 29.118501] kmalloc_oob_memset_4+0x166/0x330 [ 29.118529] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 29.118583] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 29.118615] kunit_try_run_case+0x1a5/0x480 [ 29.118663] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.118694] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.118727] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.118759] ? __kthread_parkme+0x82/0x180 [ 29.118786] ? preempt_count_sub+0x50/0x80 [ 29.118815] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.118846] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.118876] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.118905] kthread+0x337/0x6f0 [ 29.118930] ? trace_preempt_on+0x20/0xc0 [ 29.118962] ? __pfx_kthread+0x10/0x10 [ 29.118989] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.119019] ? calculate_sigpending+0x7b/0xa0 [ 29.119051] ? __pfx_kthread+0x10/0x10 [ 29.119100] ret_from_fork+0x116/0x1d0 [ 29.119146] ? __pfx_kthread+0x10/0x10 [ 29.119179] ret_from_fork_asm+0x1a/0x30 [ 29.119219] </TASK> [ 29.119233] [ 29.132584] Allocated by task 204: [ 29.132991] kasan_save_stack+0x45/0x70 [ 29.133476] kasan_save_track+0x18/0x40 [ 29.133760] kasan_save_alloc_info+0x3b/0x50 [ 29.134407] __kasan_kmalloc+0xb7/0xc0 [ 29.134863] __kmalloc_cache_noprof+0x189/0x420 [ 29.135555] kmalloc_oob_memset_4+0xac/0x330 [ 29.135995] kunit_try_run_case+0x1a5/0x480 [ 29.136355] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.137182] kthread+0x337/0x6f0 [ 29.137526] ret_from_fork+0x116/0x1d0 [ 29.137898] ret_from_fork_asm+0x1a/0x30 [ 29.138312] [ 29.138452] The buggy address belongs to the object at ffff888102dcfa00 [ 29.138452] which belongs to the cache kmalloc-128 of size 128 [ 29.139708] The buggy address is located 117 bytes inside of [ 29.139708] allocated 120-byte region [ffff888102dcfa00, ffff888102dcfa78) [ 29.140853] [ 29.141214] The buggy address belongs to the physical page: [ 29.141654] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102dcf [ 29.142427] flags: 0x200000000000000(node=0|zone=2) [ 29.142920] page_type: f5(slab) [ 29.143477] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 29.144238] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.144859] page dumped because: kasan: bad access detected [ 29.145456] [ 29.145640] Memory state around the buggy address: [ 29.146206] ffff888102dcf900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.146829] ffff888102dcf980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.147590] >ffff888102dcfa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.148118] ^ [ 29.148871] ffff888102dcfa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.149511] ffff888102dcfb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.150040] ==================================================================