Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.003655] ================================================================== [ 24.003805] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 24.003947] Write of size 1 at addr fff00000c63ad878 by task kunit_try_catch/144 [ 24.004065] [ 24.004149] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 24.004335] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.004415] Hardware name: linux,dummy-virt (DT) [ 24.004490] Call trace: [ 24.004764] show_stack+0x20/0x38 (C) [ 24.004910] dump_stack_lvl+0x8c/0xd0 [ 24.005047] print_report+0x118/0x608 [ 24.005198] kasan_report+0xdc/0x128 [ 24.005328] __asan_report_store1_noabort+0x20/0x30 [ 24.005546] kmalloc_track_caller_oob_right+0x40c/0x488 [ 24.005819] kunit_try_run_case+0x170/0x3f0 [ 24.006071] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.006228] kthread+0x328/0x630 [ 24.006603] ret_from_fork+0x10/0x20 [ 24.007163] [ 24.007235] Allocated by task 144: [ 24.007315] kasan_save_stack+0x3c/0x68 [ 24.007808] kasan_save_track+0x20/0x40 [ 24.007897] kasan_save_alloc_info+0x40/0x58 [ 24.008042] __kasan_kmalloc+0xd4/0xd8 [ 24.008143] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 24.008253] kmalloc_track_caller_oob_right+0xa8/0x488 [ 24.008366] kunit_try_run_case+0x170/0x3f0 [ 24.008494] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.008599] kthread+0x328/0x630 [ 24.008690] ret_from_fork+0x10/0x20 [ 24.008791] [ 24.008845] The buggy address belongs to the object at fff00000c63ad800 [ 24.008845] which belongs to the cache kmalloc-128 of size 128 [ 24.008986] The buggy address is located 0 bytes to the right of [ 24.008986] allocated 120-byte region [fff00000c63ad800, fff00000c63ad878) [ 24.009153] [ 24.009226] The buggy address belongs to the physical page: [ 24.009307] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1063ad [ 24.010455] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.010664] page_type: f5(slab) [ 24.010770] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 24.010933] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.011047] page dumped because: kasan: bad access detected [ 24.011299] [ 24.011466] Memory state around the buggy address: [ 24.011597] fff00000c63ad700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.011760] fff00000c63ad780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.011874] >fff00000c63ad800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 24.011974] ^ [ 24.012328] fff00000c63ad880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.012470] fff00000c63ad900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.012681] ==================================================================
[ 16.079967] ================================================================== [ 16.080424] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4b1/0x520 [ 16.081106] Write of size 1 at addr ffff888102a13078 by task kunit_try_catch/163 [ 16.082373] [ 16.082888] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 16.083008] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.083067] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.083136] Call Trace: [ 16.083173] <TASK> [ 16.083213] dump_stack_lvl+0x73/0xb0 [ 16.083286] print_report+0xd1/0x650 [ 16.083353] ? __virt_addr_valid+0x1db/0x2d0 [ 16.083392] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 16.083425] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.083458] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 16.083490] kasan_report+0x141/0x180 [ 16.083523] ? kmalloc_track_caller_oob_right+0x4b1/0x520 [ 16.083560] __asan_report_store1_noabort+0x1b/0x30 [ 16.083590] kmalloc_track_caller_oob_right+0x4b1/0x520 [ 16.083690] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 16.083757] ? __schedule+0x10cc/0x2b60 [ 16.083793] ? __pfx_read_tsc+0x10/0x10 [ 16.083822] ? ktime_get_ts64+0x86/0x230 [ 16.083860] kunit_try_run_case+0x1a5/0x480 [ 16.083896] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.083930] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.083963] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.083997] ? __kthread_parkme+0x82/0x180 [ 16.084029] ? preempt_count_sub+0x50/0x80 [ 16.084067] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.084104] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.084138] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.084171] kthread+0x337/0x6f0 [ 16.084195] ? trace_preempt_on+0x20/0xc0 [ 16.084259] ? __pfx_kthread+0x10/0x10 [ 16.084292] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.084326] ? calculate_sigpending+0x7b/0xa0 [ 16.084358] ? __pfx_kthread+0x10/0x10 [ 16.084385] ret_from_fork+0x41/0x80 [ 16.084416] ? __pfx_kthread+0x10/0x10 [ 16.084443] ret_from_fork_asm+0x1a/0x30 [ 16.084485] </TASK> [ 16.084499] [ 16.103842] Allocated by task 163: [ 16.104332] kasan_save_stack+0x45/0x70 [ 16.104817] kasan_save_track+0x18/0x40 [ 16.105413] kasan_save_alloc_info+0x3b/0x50 [ 16.106315] __kasan_kmalloc+0xb7/0xc0 [ 16.107028] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 16.107462] kmalloc_track_caller_oob_right+0x19a/0x520 [ 16.107990] kunit_try_run_case+0x1a5/0x480 [ 16.108379] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.108920] kthread+0x337/0x6f0 [ 16.109649] ret_from_fork+0x41/0x80 [ 16.110272] ret_from_fork_asm+0x1a/0x30 [ 16.110588] [ 16.111193] The buggy address belongs to the object at ffff888102a13000 [ 16.111193] which belongs to the cache kmalloc-128 of size 128 [ 16.112493] The buggy address is located 0 bytes to the right of [ 16.112493] allocated 120-byte region [ffff888102a13000, ffff888102a13078) [ 16.113379] [ 16.113814] The buggy address belongs to the physical page: [ 16.114472] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a13 [ 16.114975] flags: 0x200000000000000(node=0|zone=2) [ 16.115960] page_type: f5(slab) [ 16.116575] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.117243] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.118241] page dumped because: kasan: bad access detected [ 16.118944] [ 16.119673] Memory state around the buggy address: [ 16.120115] ffff888102a12f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.121193] ffff888102a12f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.122172] >ffff888102a13000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.122784] ^ [ 16.123739] ffff888102a13080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.124632] ffff888102a13100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.125509] ================================================================== [ 16.031901] ================================================================== [ 16.032857] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.034049] Write of size 1 at addr ffff888102a08f78 by task kunit_try_catch/163 [ 16.035441] [ 16.036027] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 16.036176] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.036210] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.036262] Call Trace: [ 16.036290] <TASK> [ 16.036311] dump_stack_lvl+0x73/0xb0 [ 16.036351] print_report+0xd1/0x650 [ 16.036386] ? __virt_addr_valid+0x1db/0x2d0 [ 16.036417] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.036448] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.036482] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.036513] kasan_report+0x141/0x180 [ 16.036546] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.036583] __asan_report_store1_noabort+0x1b/0x30 [ 16.036676] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.036750] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 16.036816] ? __schedule+0x10cc/0x2b60 [ 16.036895] ? __pfx_read_tsc+0x10/0x10 [ 16.036961] ? ktime_get_ts64+0x86/0x230 [ 16.037042] kunit_try_run_case+0x1a5/0x480 [ 16.037112] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.037147] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.037182] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.037222] ? __kthread_parkme+0x82/0x180 [ 16.037279] ? preempt_count_sub+0x50/0x80 [ 16.037317] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.037351] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.037384] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.037416] kthread+0x337/0x6f0 [ 16.037438] ? trace_preempt_on+0x20/0xc0 [ 16.037471] ? __pfx_kthread+0x10/0x10 [ 16.037494] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.037524] ? calculate_sigpending+0x7b/0xa0 [ 16.037553] ? __pfx_kthread+0x10/0x10 [ 16.037577] ret_from_fork+0x41/0x80 [ 16.037658] ? __pfx_kthread+0x10/0x10 [ 16.037728] ret_from_fork_asm+0x1a/0x30 [ 16.037782] </TASK> [ 16.037797] [ 16.057356] Allocated by task 163: [ 16.057896] kasan_save_stack+0x45/0x70 [ 16.058482] kasan_save_track+0x18/0x40 [ 16.059068] kasan_save_alloc_info+0x3b/0x50 [ 16.059645] __kasan_kmalloc+0xb7/0xc0 [ 16.060031] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 16.061155] kmalloc_track_caller_oob_right+0x99/0x520 [ 16.061819] kunit_try_run_case+0x1a5/0x480 [ 16.062337] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.062968] kthread+0x337/0x6f0 [ 16.063379] ret_from_fork+0x41/0x80 [ 16.063918] ret_from_fork_asm+0x1a/0x30 [ 16.064368] [ 16.064926] The buggy address belongs to the object at ffff888102a08f00 [ 16.064926] which belongs to the cache kmalloc-128 of size 128 [ 16.065840] The buggy address is located 0 bytes to the right of [ 16.065840] allocated 120-byte region [ffff888102a08f00, ffff888102a08f78) [ 16.066968] [ 16.067190] The buggy address belongs to the physical page: [ 16.067861] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a08 [ 16.068759] flags: 0x200000000000000(node=0|zone=2) [ 16.069265] page_type: f5(slab) [ 16.069829] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.070485] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.071420] page dumped because: kasan: bad access detected [ 16.072095] [ 16.072575] Memory state around the buggy address: [ 16.073227] ffff888102a08e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.073663] ffff888102a08e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.074808] >ffff888102a08f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.075338] ^ [ 16.076428] ffff888102a08f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.077136] ffff888102a09000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.078127] ==================================================================