Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.076720] ================================================================== [ 21.077606] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 21.077862] Write of size 1 at addr fff00000c4799978 by task kunit_try_catch/144 [ 21.078374] [ 21.078527] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.079179] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.079620] Hardware name: linux,dummy-virt (DT) [ 21.079737] Call trace: [ 21.079842] show_stack+0x20/0x38 (C) [ 21.079989] dump_stack_lvl+0x8c/0xd0 [ 21.080515] print_report+0x118/0x608 [ 21.080856] kasan_report+0xdc/0x128 [ 21.081237] __asan_report_store1_noabort+0x20/0x30 [ 21.081473] kmalloc_track_caller_oob_right+0x40c/0x488 [ 21.081790] kunit_try_run_case+0x170/0x3f0 [ 21.081937] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.082076] kthread+0x328/0x630 [ 21.082797] ret_from_fork+0x10/0x20 [ 21.083022] [ 21.083084] Allocated by task 144: [ 21.083223] kasan_save_stack+0x3c/0x68 [ 21.083346] kasan_save_track+0x20/0x40 [ 21.083437] kasan_save_alloc_info+0x40/0x58 [ 21.083536] __kasan_kmalloc+0xd4/0xd8 [ 21.084336] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 21.084470] kmalloc_track_caller_oob_right+0xa8/0x488 [ 21.084571] kunit_try_run_case+0x170/0x3f0 [ 21.084664] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.085427] kthread+0x328/0x630 [ 21.085922] ret_from_fork+0x10/0x20 [ 21.086159] [ 21.086288] The buggy address belongs to the object at fff00000c4799900 [ 21.086288] which belongs to the cache kmalloc-128 of size 128 [ 21.086457] The buggy address is located 0 bytes to the right of [ 21.086457] allocated 120-byte region [fff00000c4799900, fff00000c4799978) [ 21.086615] [ 21.086669] The buggy address belongs to the physical page: [ 21.086760] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104799 [ 21.087460] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.087615] page_type: f5(slab) [ 21.087721] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.088529] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.088843] page dumped because: kasan: bad access detected [ 21.089197] [ 21.089252] Memory state around the buggy address: [ 21.089343] fff00000c4799800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.089433] fff00000c4799880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.089985] >fff00000c4799900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.090114] ^ [ 21.090269] fff00000c4799980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.090594] fff00000c4799a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.090917] ================================================================== [ 21.095790] ================================================================== [ 21.095926] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488 [ 21.096628] Write of size 1 at addr fff00000c4799a78 by task kunit_try_catch/144 [ 21.097256] [ 21.097467] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.097670] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.097725] Hardware name: linux,dummy-virt (DT) [ 21.097817] Call trace: [ 21.097871] show_stack+0x20/0x38 (C) [ 21.098769] dump_stack_lvl+0x8c/0xd0 [ 21.098997] print_report+0x118/0x608 [ 21.099122] kasan_report+0xdc/0x128 [ 21.099643] __asan_report_store1_noabort+0x20/0x30 [ 21.099853] kmalloc_track_caller_oob_right+0x418/0x488 [ 21.100118] kunit_try_run_case+0x170/0x3f0 [ 21.100305] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.100445] kthread+0x328/0x630 [ 21.100559] ret_from_fork+0x10/0x20 [ 21.100680] [ 21.100724] Allocated by task 144: [ 21.100807] kasan_save_stack+0x3c/0x68 [ 21.100906] kasan_save_track+0x20/0x40 [ 21.100994] kasan_save_alloc_info+0x40/0x58 [ 21.101107] __kasan_kmalloc+0xd4/0xd8 [ 21.101200] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 21.101503] kmalloc_track_caller_oob_right+0x184/0x488 [ 21.101601] kunit_try_run_case+0x170/0x3f0 [ 21.102051] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.102496] kthread+0x328/0x630 [ 21.102803] ret_from_fork+0x10/0x20 [ 21.102922] [ 21.102969] The buggy address belongs to the object at fff00000c4799a00 [ 21.102969] which belongs to the cache kmalloc-128 of size 128 [ 21.103528] The buggy address is located 0 bytes to the right of [ 21.103528] allocated 120-byte region [fff00000c4799a00, fff00000c4799a78) [ 21.103828] [ 21.103997] The buggy address belongs to the physical page: [ 21.104117] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x104799 [ 21.104469] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.104913] page_type: f5(slab) [ 21.105059] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.105184] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.105949] page dumped because: kasan: bad access detected [ 21.106114] [ 21.106427] Memory state around the buggy address: [ 21.106579] fff00000c4799900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.106690] fff00000c4799980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.107130] >fff00000c4799a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.107253] ^ [ 21.107436] fff00000c4799a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.107625] fff00000c4799b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.107720] ==================================================================
[ 17.871674] ================================================================== [ 17.872885] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 17.874446] Write of size 1 at addr ffff888102ed7078 by task kunit_try_catch/162 [ 17.875864] [ 17.876139] CPU: 1 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 17.876270] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.876331] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.876480] Call Trace: [ 17.876525] <TASK> [ 17.876577] dump_stack_lvl+0x73/0xb0 [ 17.876660] print_report+0xd1/0x650 [ 17.876742] ? __virt_addr_valid+0x1db/0x2d0 [ 17.876803] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 17.876838] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.876873] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 17.876905] kasan_report+0x141/0x180 [ 17.876939] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 17.877086] __asan_report_store1_noabort+0x1b/0x30 [ 17.877125] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 17.877159] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 17.877194] ? __schedule+0x10cc/0x2b60 [ 17.877227] ? __pfx_read_tsc+0x10/0x10 [ 17.877259] ? ktime_get_ts64+0x86/0x230 [ 17.877322] kunit_try_run_case+0x1a5/0x480 [ 17.877364] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.877399] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.877437] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.877472] ? __kthread_parkme+0x82/0x180 [ 17.877507] ? preempt_count_sub+0x50/0x80 [ 17.877545] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.877582] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.877616] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.877651] kthread+0x337/0x6f0 [ 17.877677] ? trace_preempt_on+0x20/0xc0 [ 17.877712] ? __pfx_kthread+0x10/0x10 [ 17.877739] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.877771] ? calculate_sigpending+0x7b/0xa0 [ 17.877803] ? __pfx_kthread+0x10/0x10 [ 17.877830] ret_from_fork+0x41/0x80 [ 17.877862] ? __pfx_kthread+0x10/0x10 [ 17.877889] ret_from_fork_asm+0x1a/0x30 [ 17.877933] </TASK> [ 17.877959] [ 17.897906] Allocated by task 162: [ 17.898740] kasan_save_stack+0x45/0x70 [ 17.899263] kasan_save_track+0x18/0x40 [ 17.899605] kasan_save_alloc_info+0x3b/0x50 [ 17.900624] __kasan_kmalloc+0xb7/0xc0 [ 17.900954] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 17.901723] kmalloc_track_caller_oob_right+0x99/0x520 [ 17.902200] kunit_try_run_case+0x1a5/0x480 [ 17.902661] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.903716] kthread+0x337/0x6f0 [ 17.904786] ret_from_fork+0x41/0x80 [ 17.905485] ret_from_fork_asm+0x1a/0x30 [ 17.905790] [ 17.906027] The buggy address belongs to the object at ffff888102ed7000 [ 17.906027] which belongs to the cache kmalloc-128 of size 128 [ 17.907396] The buggy address is located 0 bytes to the right of [ 17.907396] allocated 120-byte region [ffff888102ed7000, ffff888102ed7078) [ 17.908274] [ 17.908795] The buggy address belongs to the physical page: [ 17.909978] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ed7 [ 17.911241] flags: 0x200000000000000(node=0|zone=2) [ 17.911893] page_type: f5(slab) [ 17.912790] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 17.913621] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 17.914420] page dumped because: kasan: bad access detected [ 17.914908] [ 17.915326] Memory state around the buggy address: [ 17.915793] ffff888102ed6f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.916534] ffff888102ed6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.917660] >ffff888102ed7000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.918528] ^ [ 17.919042] ffff888102ed7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.920007] ffff888102ed7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.920777] ==================================================================