Date
June 26, 2025, 9:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 38.881947] ================================================================== [ 38.893423] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 38.900748] Write of size 4 at addr ffff00008039f275 by task kunit_try_catch/260 [ 38.908242] [ 38.909775] CPU: 0 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 38.909805] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.909814] Hardware name: Thundercomm Dragonboard 845c (DT) [ 38.909827] Call trace: [ 38.909834] show_stack+0x20/0x38 (C) [ 38.909853] dump_stack_lvl+0x8c/0xd0 [ 38.909872] print_report+0x118/0x608 [ 38.909891] kasan_report+0xdc/0x128 [ 38.909909] kasan_check_range+0x100/0x1a8 [ 38.909929] __asan_memset+0x34/0x78 [ 38.909946] kmalloc_oob_memset_4+0x150/0x300 [ 38.909963] kunit_try_run_case+0x170/0x3f0 [ 38.909981] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.910004] kthread+0x328/0x630 [ 38.910019] ret_from_fork+0x10/0x20 [ 38.910036] [ 38.978819] Allocated by task 260: [ 38.982280] kasan_save_stack+0x3c/0x68 [ 38.986191] kasan_save_track+0x20/0x40 [ 38.990102] kasan_save_alloc_info+0x40/0x58 [ 38.994441] __kasan_kmalloc+0xd4/0xd8 [ 38.998263] __kmalloc_cache_noprof+0x16c/0x3c0 [ 39.002865] kmalloc_oob_memset_4+0xb0/0x300 [ 39.007206] kunit_try_run_case+0x170/0x3f0 [ 39.011462] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 39.017031] kthread+0x328/0x630 [ 39.020323] ret_from_fork+0x10/0x20 [ 39.023964] [ 39.025493] The buggy address belongs to the object at ffff00008039f200 [ 39.025493] which belongs to the cache kmalloc-128 of size 128 [ 39.038149] The buggy address is located 117 bytes inside of [ 39.038149] allocated 120-byte region [ffff00008039f200, ffff00008039f278) [ 39.050894] [ 39.052430] The buggy address belongs to the physical page: [ 39.058080] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10039e [ 39.066186] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 39.073945] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 39.081003] page_type: f5(slab) [ 39.084208] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 39.092056] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 39.099904] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 39.107838] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 39.115771] head: 0bfffe0000000001 fffffdffc200e781 00000000ffffffff 00000000ffffffff [ 39.123704] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 39.131632] page dumped because: kasan: bad access detected [ 39.137277] [ 39.138807] Memory state around the buggy address: [ 39.143670] ffff00008039f100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 39.150985] ffff00008039f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.158300] >ffff00008039f200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 39.165613] ^ [ 39.172840] ffff00008039f280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.180157] ffff00008039f300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 39.187474] ==================================================================
[ 26.884354] ================================================================== [ 26.884413] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 26.884468] Write of size 4 at addr fff00000c643f675 by task kunit_try_catch/186 [ 26.884515] [ 26.884548] CPU: 0 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT [ 26.884633] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.884658] Hardware name: linux,dummy-virt (DT) [ 26.884687] Call trace: [ 26.884709] show_stack+0x20/0x38 (C) [ 26.884755] dump_stack_lvl+0x8c/0xd0 [ 26.884801] print_report+0x118/0x608 [ 26.884846] kasan_report+0xdc/0x128 [ 26.884892] kasan_check_range+0x100/0x1a8 [ 26.884939] __asan_memset+0x34/0x78 [ 26.884979] kmalloc_oob_memset_4+0x150/0x300 [ 26.885024] kunit_try_run_case+0x170/0x3f0 [ 26.885111] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.885309] kthread+0x328/0x630 [ 26.885350] ret_from_fork+0x10/0x20 [ 26.885396] [ 26.885413] Allocated by task 186: [ 26.885439] kasan_save_stack+0x3c/0x68 [ 26.885480] kasan_save_track+0x20/0x40 [ 26.885516] kasan_save_alloc_info+0x40/0x58 [ 26.885563] __kasan_kmalloc+0xd4/0xd8 [ 26.885736] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.885794] kmalloc_oob_memset_4+0xb0/0x300 [ 26.885861] kunit_try_run_case+0x170/0x3f0 [ 26.885948] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.885990] kthread+0x328/0x630 [ 26.886051] ret_from_fork+0x10/0x20 [ 26.886219] [ 26.886261] The buggy address belongs to the object at fff00000c643f600 [ 26.886261] which belongs to the cache kmalloc-128 of size 128 [ 26.886318] The buggy address is located 117 bytes inside of [ 26.886318] allocated 120-byte region [fff00000c643f600, fff00000c643f678) [ 26.886377] [ 26.886396] The buggy address belongs to the physical page: [ 26.886426] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10643f [ 26.886477] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.886523] page_type: f5(slab) [ 26.886560] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000100 dead000000000122 [ 26.886607] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 26.886645] page dumped because: kasan: bad access detected [ 26.886714] [ 26.886816] Memory state around the buggy address: [ 26.886895] fff00000c643f500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 26.886942] fff00000c643f580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.887061] >fff00000c643f600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 26.887099] ^ [ 26.887137] fff00000c643f680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.887176] fff00000c643f700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.887214] ==================================================================
[ 22.240485] ================================================================== [ 22.240933] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 22.241282] Write of size 4 at addr ffff8881024c9b75 by task kunit_try_catch/203 [ 22.241581] [ 22.241669] CPU: 0 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250626 #1 PREEMPT(voluntary) [ 22.241722] Tainted: [B]=BAD_PAGE, [N]=TEST [ 22.241734] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 22.241757] Call Trace: [ 22.241771] <TASK> [ 22.241790] dump_stack_lvl+0x73/0xb0 [ 22.241819] print_report+0xd1/0x650 [ 22.241842] ? __virt_addr_valid+0x1db/0x2d0 [ 22.241866] ? kmalloc_oob_memset_4+0x166/0x330 [ 22.241887] ? kasan_complete_mode_report_info+0x2a/0x200 [ 22.241911] ? kmalloc_oob_memset_4+0x166/0x330 [ 22.241932] kasan_report+0x141/0x180 [ 22.241952] ? kmalloc_oob_memset_4+0x166/0x330 [ 22.241977] kasan_check_range+0x10c/0x1c0 [ 22.241999] __asan_memset+0x27/0x50 [ 22.242021] kmalloc_oob_memset_4+0x166/0x330 [ 22.242042] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 22.242063] ? __schedule+0x10cc/0x2b60 [ 22.242087] ? __pfx_read_tsc+0x10/0x10 [ 22.242110] ? ktime_get_ts64+0x86/0x230 [ 22.242134] kunit_try_run_case+0x1a5/0x480 [ 22.242159] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.242180] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 22.242204] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 22.242266] ? __kthread_parkme+0x82/0x180 [ 22.242288] ? preempt_count_sub+0x50/0x80 [ 22.242311] ? __pfx_kunit_try_run_case+0x10/0x10 [ 22.242334] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.242357] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 22.242380] kthread+0x337/0x6f0 [ 22.242410] ? trace_preempt_on+0x20/0xc0 [ 22.242434] ? __pfx_kthread+0x10/0x10 [ 22.242485] ? _raw_spin_unlock_irq+0x47/0x80 [ 22.242508] ? calculate_sigpending+0x7b/0xa0 [ 22.242532] ? __pfx_kthread+0x10/0x10 [ 22.242553] ret_from_fork+0x116/0x1d0 [ 22.242572] ? __pfx_kthread+0x10/0x10 [ 22.242591] ret_from_fork_asm+0x1a/0x30 [ 22.242622] </TASK> [ 22.242634] [ 22.249716] Allocated by task 203: [ 22.249920] kasan_save_stack+0x45/0x70 [ 22.250092] kasan_save_track+0x18/0x40 [ 22.250288] kasan_save_alloc_info+0x3b/0x50 [ 22.250506] __kasan_kmalloc+0xb7/0xc0 [ 22.250690] __kmalloc_cache_noprof+0x189/0x420 [ 22.250982] kmalloc_oob_memset_4+0xac/0x330 [ 22.251201] kunit_try_run_case+0x1a5/0x480 [ 22.251352] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 22.251563] kthread+0x337/0x6f0 [ 22.251725] ret_from_fork+0x116/0x1d0 [ 22.251973] ret_from_fork_asm+0x1a/0x30 [ 22.252194] [ 22.252297] The buggy address belongs to the object at ffff8881024c9b00 [ 22.252297] which belongs to the cache kmalloc-128 of size 128 [ 22.252833] The buggy address is located 117 bytes inside of [ 22.252833] allocated 120-byte region [ffff8881024c9b00, ffff8881024c9b78) [ 22.253318] [ 22.253415] The buggy address belongs to the physical page: [ 22.253626] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024c9 [ 22.254128] flags: 0x200000000000000(node=0|zone=2) [ 22.254393] page_type: f5(slab) [ 22.254559] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 22.254885] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 22.255263] page dumped because: kasan: bad access detected [ 22.255506] [ 22.255594] Memory state around the buggy address: [ 22.255760] ffff8881024c9a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 22.256045] ffff8881024c9a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.256293] >ffff8881024c9b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 22.256604] ^ [ 22.256911] ffff8881024c9b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.257228] ffff8881024c9c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 22.257489] ==================================================================