Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 37.204557] ================================================================== [ 37.216118] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 37.223436] Write of size 2 at addr ffff0000822c2777 by task kunit_try_catch/270 [ 37.230939] [ 37.232473] CPU: 3 UID: 0 PID: 270 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 37.232504] Tainted: [B]=BAD_PAGE, [N]=TEST [ 37.232512] Hardware name: Thundercomm Dragonboard 845c (DT) [ 37.232523] Call trace: [ 37.232530] show_stack+0x20/0x38 (C) [ 37.232548] dump_stack_lvl+0x8c/0xd0 [ 37.232566] print_report+0x118/0x608 [ 37.232585] kasan_report+0xdc/0x128 [ 37.232605] kasan_check_range+0x100/0x1a8 [ 37.232626] __asan_memset+0x34/0x78 [ 37.232642] kmalloc_oob_memset_2+0x150/0x2f8 [ 37.232661] kunit_try_run_case+0x170/0x3f0 [ 37.232679] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.232701] kthread+0x328/0x630 [ 37.232716] ret_from_fork+0x10/0x20 [ 37.232733] [ 37.301530] Allocated by task 270: [ 37.304996] kasan_save_stack+0x3c/0x68 [ 37.308904] kasan_save_track+0x20/0x40 [ 37.312808] kasan_save_alloc_info+0x40/0x58 [ 37.317154] __kasan_kmalloc+0xd4/0xd8 [ 37.320971] __kmalloc_cache_noprof+0x16c/0x3c0 [ 37.325578] kmalloc_oob_memset_2+0xb0/0x2f8 [ 37.329925] kunit_try_run_case+0x170/0x3f0 [ 37.334185] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.339756] kthread+0x328/0x630 [ 37.343042] ret_from_fork+0x10/0x20 [ 37.346686] [ 37.348216] The buggy address belongs to the object at ffff0000822c2700 [ 37.348216] which belongs to the cache kmalloc-128 of size 128 [ 37.360877] The buggy address is located 119 bytes inside of [ 37.360877] allocated 120-byte region [ffff0000822c2700, ffff0000822c2778) [ 37.373626] [ 37.375157] The buggy address belongs to the physical page: [ 37.380803] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022c2 [ 37.388907] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 37.396664] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 37.403722] page_type: f5(slab) [ 37.406923] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 37.414770] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 37.422618] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 37.430551] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 37.438485] head: 0bfffe0000000001 fffffdffc208b081 00000000ffffffff 00000000ffffffff [ 37.446418] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 37.454347] page dumped because: kasan: bad access detected [ 37.459993] [ 37.461523] Memory state around the buggy address: [ 37.466380] ffff0000822c2600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.473696] ffff0000822c2680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.481010] >ffff0000822c2700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 37.488325] ^ [ 37.495552] ffff0000822c2780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.502868] ffff0000822c2800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.510179] ==================================================================
[ 33.006054] ================================================================== [ 33.006502] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 33.006645] Write of size 2 at addr fff00000c7732177 by task kunit_try_catch/183 [ 33.007184] [ 33.007554] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 33.007944] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.008020] Hardware name: linux,dummy-virt (DT) [ 33.008312] Call trace: [ 33.008375] show_stack+0x20/0x38 (C) [ 33.008497] dump_stack_lvl+0x8c/0xd0 [ 33.008618] print_report+0x118/0x608 [ 33.008982] kasan_report+0xdc/0x128 [ 33.009201] kasan_check_range+0x100/0x1a8 [ 33.009396] __asan_memset+0x34/0x78 [ 33.009513] kmalloc_oob_memset_2+0x150/0x2f8 [ 33.009628] kunit_try_run_case+0x170/0x3f0 [ 33.009769] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.009915] kthread+0x328/0x630 [ 33.010042] ret_from_fork+0x10/0x20 [ 33.010162] [ 33.010239] Allocated by task 183: [ 33.010309] kasan_save_stack+0x3c/0x68 [ 33.010449] kasan_save_track+0x20/0x40 [ 33.010544] kasan_save_alloc_info+0x40/0x58 [ 33.010631] __kasan_kmalloc+0xd4/0xd8 [ 33.010719] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.010814] kmalloc_oob_memset_2+0xb0/0x2f8 [ 33.011511] kunit_try_run_case+0x170/0x3f0 [ 33.011916] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.012243] kthread+0x328/0x630 [ 33.012342] ret_from_fork+0x10/0x20 [ 33.012435] [ 33.012485] The buggy address belongs to the object at fff00000c7732100 [ 33.012485] which belongs to the cache kmalloc-128 of size 128 [ 33.012663] The buggy address is located 119 bytes inside of [ 33.012663] allocated 120-byte region [fff00000c7732100, fff00000c7732178) [ 33.012874] [ 33.012985] The buggy address belongs to the physical page: [ 33.013158] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107732 [ 33.013279] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.013391] page_type: f5(slab) [ 33.013484] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 33.013599] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 33.013743] page dumped because: kasan: bad access detected [ 33.013844] [ 33.013904] Memory state around the buggy address: [ 33.013982] fff00000c7732000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.014082] fff00000c7732080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.014189] >fff00000c7732100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.014310] ^ [ 33.014535] fff00000c7732180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.014746] fff00000c7732200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.014835] ==================================================================
[ 29.065365] ================================================================== [ 29.066243] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 29.066982] Write of size 2 at addr ffff888102dcf977 by task kunit_try_catch/202 [ 29.067950] [ 29.068649] CPU: 0 UID: 0 PID: 202 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 29.068848] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.068887] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.068922] Call Trace: [ 29.068963] <TASK> [ 29.068995] dump_stack_lvl+0x73/0xb0 [ 29.069041] print_report+0xd1/0x650 [ 29.069122] ? __virt_addr_valid+0x1db/0x2d0 [ 29.069176] ? kmalloc_oob_memset_2+0x166/0x330 [ 29.069222] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.069278] ? kmalloc_oob_memset_2+0x166/0x330 [ 29.069325] kasan_report+0x141/0x180 [ 29.069373] ? kmalloc_oob_memset_2+0x166/0x330 [ 29.069426] kasan_check_range+0x10c/0x1c0 [ 29.069459] __asan_memset+0x27/0x50 [ 29.069491] kmalloc_oob_memset_2+0x166/0x330 [ 29.069520] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 29.069574] ? __schedule+0x10cc/0x2b60 [ 29.069608] ? __pfx_read_tsc+0x10/0x10 [ 29.069642] ? ktime_get_ts64+0x86/0x230 [ 29.069697] kunit_try_run_case+0x1a5/0x480 [ 29.069732] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.069761] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.069793] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.069824] ? __kthread_parkme+0x82/0x180 [ 29.069851] ? preempt_count_sub+0x50/0x80 [ 29.069881] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.069911] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.069941] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.069971] kthread+0x337/0x6f0 [ 29.069997] ? trace_preempt_on+0x20/0xc0 [ 29.070026] ? __pfx_kthread+0x10/0x10 [ 29.070052] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.070104] ? calculate_sigpending+0x7b/0xa0 [ 29.070156] ? __pfx_kthread+0x10/0x10 [ 29.070193] ret_from_fork+0x116/0x1d0 [ 29.070220] ? __pfx_kthread+0x10/0x10 [ 29.070247] ret_from_fork_asm+0x1a/0x30 [ 29.070288] </TASK> [ 29.070303] [ 29.087181] Allocated by task 202: [ 29.087591] kasan_save_stack+0x45/0x70 [ 29.088769] kasan_save_track+0x18/0x40 [ 29.089337] kasan_save_alloc_info+0x3b/0x50 [ 29.089898] __kasan_kmalloc+0xb7/0xc0 [ 29.090730] __kmalloc_cache_noprof+0x189/0x420 [ 29.091298] kmalloc_oob_memset_2+0xac/0x330 [ 29.092029] kunit_try_run_case+0x1a5/0x480 [ 29.092647] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.093124] kthread+0x337/0x6f0 [ 29.093399] ret_from_fork+0x116/0x1d0 [ 29.093773] ret_from_fork_asm+0x1a/0x30 [ 29.094073] [ 29.094303] The buggy address belongs to the object at ffff888102dcf900 [ 29.094303] which belongs to the cache kmalloc-128 of size 128 [ 29.095971] The buggy address is located 119 bytes inside of [ 29.095971] allocated 120-byte region [ffff888102dcf900, ffff888102dcf978) [ 29.097045] [ 29.097426] The buggy address belongs to the physical page: [ 29.097967] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102dcf [ 29.099041] flags: 0x200000000000000(node=0|zone=2) [ 29.099580] page_type: f5(slab) [ 29.099973] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 29.100974] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.101694] page dumped because: kasan: bad access detected [ 29.101992] [ 29.102529] Memory state around the buggy address: [ 29.103026] ffff888102dcf800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.103554] ffff888102dcf880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.104744] >ffff888102dcf900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.105039] ^ [ 29.106052] ffff888102dcf980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.106854] ffff888102dcfa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.107753] ==================================================================