Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 36.886759] ================================================================== [ 36.897705] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 36.905111] Write of size 128 at addr ffff0000822c2600 by task kunit_try_catch/268 [ 36.912787] [ 36.914322] CPU: 3 UID: 0 PID: 268 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 36.914353] Tainted: [B]=BAD_PAGE, [N]=TEST [ 36.914363] Hardware name: Thundercomm Dragonboard 845c (DT) [ 36.914374] Call trace: [ 36.914382] show_stack+0x20/0x38 (C) [ 36.914400] dump_stack_lvl+0x8c/0xd0 [ 36.914419] print_report+0x118/0x608 [ 36.914440] kasan_report+0xdc/0x128 [ 36.914459] kasan_check_range+0x100/0x1a8 [ 36.914481] __asan_memset+0x34/0x78 [ 36.914497] kmalloc_oob_in_memset+0x144/0x2d0 [ 36.914515] kunit_try_run_case+0x170/0x3f0 [ 36.914535] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 36.914557] kthread+0x328/0x630 [ 36.914572] ret_from_fork+0x10/0x20 [ 36.914590] [ 36.983472] Allocated by task 268: [ 36.986937] kasan_save_stack+0x3c/0x68 [ 36.990845] kasan_save_track+0x20/0x40 [ 36.994752] kasan_save_alloc_info+0x40/0x58 [ 36.999096] __kasan_kmalloc+0xd4/0xd8 [ 37.002914] __kmalloc_cache_noprof+0x16c/0x3c0 [ 37.007521] kmalloc_oob_in_memset+0xb0/0x2d0 [ 37.011954] kunit_try_run_case+0x170/0x3f0 [ 37.016214] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.021785] kthread+0x328/0x630 [ 37.025071] ret_from_fork+0x10/0x20 [ 37.028716] [ 37.030247] The buggy address belongs to the object at ffff0000822c2600 [ 37.030247] which belongs to the cache kmalloc-128 of size 128 [ 37.042908] The buggy address is located 0 bytes inside of [ 37.042908] allocated 120-byte region [ffff0000822c2600, ffff0000822c2678) [ 37.055487] [ 37.057018] The buggy address belongs to the physical page: [ 37.062664] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022c2 [ 37.070768] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 37.078527] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 37.085585] page_type: f5(slab) [ 37.088784] raw: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 37.096632] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 37.104479] head: 0bfffe0000000040 ffff000080002a00 dead000000000122 0000000000000000 [ 37.112413] head: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 37.120346] head: 0bfffe0000000001 fffffdffc208b081 00000000ffffffff 00000000ffffffff [ 37.128280] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 37.136210] page dumped because: kasan: bad access detected [ 37.141856] [ 37.143386] Memory state around the buggy address: [ 37.148245] ffff0000822c2500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.155559] ffff0000822c2580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.162875] >ffff0000822c2600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 37.170188] ^ [ 37.177414] ffff0000822c2680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.184730] ffff0000822c2700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.192042] ==================================================================
[ 32.965241] ================================================================== [ 32.965378] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 32.965620] Write of size 128 at addr fff00000c7732000 by task kunit_try_catch/181 [ 32.965799] [ 32.965906] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 32.966205] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.966390] Hardware name: linux,dummy-virt (DT) [ 32.966493] Call trace: [ 32.966549] show_stack+0x20/0x38 (C) [ 32.966667] dump_stack_lvl+0x8c/0xd0 [ 32.966779] print_report+0x118/0x608 [ 32.966907] kasan_report+0xdc/0x128 [ 32.967023] kasan_check_range+0x100/0x1a8 [ 32.969025] __asan_memset+0x34/0x78 [ 32.969559] kmalloc_oob_in_memset+0x144/0x2d0 [ 32.969794] kunit_try_run_case+0x170/0x3f0 [ 32.969955] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.970640] kthread+0x328/0x630 [ 32.970862] ret_from_fork+0x10/0x20 [ 32.971809] [ 32.971955] Allocated by task 181: [ 32.972533] kasan_save_stack+0x3c/0x68 [ 32.973018] kasan_save_track+0x20/0x40 [ 32.973390] kasan_save_alloc_info+0x40/0x58 [ 32.974136] __kasan_kmalloc+0xd4/0xd8 [ 32.974416] __kmalloc_cache_noprof+0x16c/0x3c0 [ 32.975424] kmalloc_oob_in_memset+0xb0/0x2d0 [ 32.975561] kunit_try_run_case+0x170/0x3f0 [ 32.976371] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.976483] kthread+0x328/0x630 [ 32.976944] ret_from_fork+0x10/0x20 [ 32.977461] [ 32.977647] The buggy address belongs to the object at fff00000c7732000 [ 32.977647] which belongs to the cache kmalloc-128 of size 128 [ 32.977778] The buggy address is located 0 bytes inside of [ 32.977778] allocated 120-byte region [fff00000c7732000, fff00000c7732078) [ 32.978396] [ 32.978771] The buggy address belongs to the physical page: [ 32.978847] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107732 [ 32.980089] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.980564] page_type: f5(slab) [ 32.981201] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 32.981644] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 32.981741] page dumped because: kasan: bad access detected [ 32.982780] [ 32.982958] Memory state around the buggy address: [ 32.983328] fff00000c7731f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.983518] fff00000c7731f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.983618] >fff00000c7732000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 32.983709] ^ [ 32.983813] fff00000c7732080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.983933] fff00000c7732100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.984021] ==================================================================
[ 29.024802] ================================================================== [ 29.025675] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 29.026295] Write of size 128 at addr ffff888100aae700 by task kunit_try_catch/200 [ 29.026899] [ 29.027230] CPU: 1 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 29.027341] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.027372] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.027420] Call Trace: [ 29.027488] <TASK> [ 29.027560] dump_stack_lvl+0x73/0xb0 [ 29.027678] print_report+0xd1/0x650 [ 29.027761] ? __virt_addr_valid+0x1db/0x2d0 [ 29.027866] ? kmalloc_oob_in_memset+0x15f/0x320 [ 29.027945] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.028009] ? kmalloc_oob_in_memset+0x15f/0x320 [ 29.028068] kasan_report+0x141/0x180 [ 29.028161] ? kmalloc_oob_in_memset+0x15f/0x320 [ 29.028254] kasan_check_range+0x10c/0x1c0 [ 29.028313] __asan_memset+0x27/0x50 [ 29.028358] kmalloc_oob_in_memset+0x15f/0x320 [ 29.028389] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 29.028420] ? __schedule+0x10cc/0x2b60 [ 29.028453] ? __pfx_read_tsc+0x10/0x10 [ 29.028482] ? ktime_get_ts64+0x86/0x230 [ 29.028513] kunit_try_run_case+0x1a5/0x480 [ 29.028566] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.028597] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 29.028642] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.028693] ? __kthread_parkme+0x82/0x180 [ 29.028722] ? preempt_count_sub+0x50/0x80 [ 29.028752] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.028783] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.028814] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.028844] kthread+0x337/0x6f0 [ 29.028869] ? trace_preempt_on+0x20/0xc0 [ 29.028899] ? __pfx_kthread+0x10/0x10 [ 29.028926] ? _raw_spin_unlock_irq+0x47/0x80 [ 29.028955] ? calculate_sigpending+0x7b/0xa0 [ 29.028985] ? __pfx_kthread+0x10/0x10 [ 29.029013] ret_from_fork+0x116/0x1d0 [ 29.029037] ? __pfx_kthread+0x10/0x10 [ 29.029063] ret_from_fork_asm+0x1a/0x30 [ 29.029102] </TASK> [ 29.029116] [ 29.042291] Allocated by task 200: [ 29.042686] kasan_save_stack+0x45/0x70 [ 29.043065] kasan_save_track+0x18/0x40 [ 29.043458] kasan_save_alloc_info+0x3b/0x50 [ 29.043938] __kasan_kmalloc+0xb7/0xc0 [ 29.044284] __kmalloc_cache_noprof+0x189/0x420 [ 29.044808] kmalloc_oob_in_memset+0xac/0x320 [ 29.045214] kunit_try_run_case+0x1a5/0x480 [ 29.045653] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.046104] kthread+0x337/0x6f0 [ 29.046462] ret_from_fork+0x116/0x1d0 [ 29.046963] ret_from_fork_asm+0x1a/0x30 [ 29.047223] [ 29.047350] The buggy address belongs to the object at ffff888100aae700 [ 29.047350] which belongs to the cache kmalloc-128 of size 128 [ 29.047908] The buggy address is located 0 bytes inside of [ 29.047908] allocated 120-byte region [ffff888100aae700, ffff888100aae778) [ 29.049144] [ 29.049414] The buggy address belongs to the physical page: [ 29.050009] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x100aae [ 29.050790] flags: 0x200000000000000(node=0|zone=2) [ 29.051327] page_type: f5(slab) [ 29.051736] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 29.052365] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 29.052992] page dumped because: kasan: bad access detected [ 29.053424] [ 29.053650] Memory state around the buggy address: [ 29.053959] ffff888100aae600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 29.054296] ffff888100aae680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.055632] >ffff888100aae700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 29.056165] ^ [ 29.056681] ffff888100aae780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.057367] ffff888100aae800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.058136] ==================================================================