Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.691914] ================================================================== [ 19.691981] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 19.692049] Read of size 8 at addr fff00000c5903778 by task kunit_try_catch/282 [ 19.692101] [ 19.692142] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.692269] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.692301] Hardware name: linux,dummy-virt (DT) [ 19.692403] Call trace: [ 19.692455] show_stack+0x20/0x38 (C) [ 19.692511] dump_stack_lvl+0x8c/0xd0 [ 19.692560] print_report+0x118/0x608 [ 19.692640] kasan_report+0xdc/0x128 [ 19.692923] __asan_report_load8_noabort+0x20/0x30 [ 19.693010] copy_to_kernel_nofault+0x204/0x250 [ 19.693174] copy_to_kernel_nofault_oob+0x158/0x418 [ 19.693300] kunit_try_run_case+0x170/0x3f0 [ 19.693398] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.693517] kthread+0x328/0x630 [ 19.693562] ret_from_fork+0x10/0x20 [ 19.693612] [ 19.693634] Allocated by task 282: [ 19.693789] kasan_save_stack+0x3c/0x68 [ 19.694398] kasan_save_track+0x20/0x40 [ 19.695958] kasan_save_alloc_info+0x40/0x58 [ 19.696023] __kasan_kmalloc+0xd4/0xd8 [ 19.696329] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.696374] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.696887] kunit_try_run_case+0x170/0x3f0 [ 19.697096] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.697149] kthread+0x328/0x630 [ 19.697285] ret_from_fork+0x10/0x20 [ 19.697329] [ 19.697354] The buggy address belongs to the object at fff00000c5903700 [ 19.697354] which belongs to the cache kmalloc-128 of size 128 [ 19.697414] The buggy address is located 0 bytes to the right of [ 19.697414] allocated 120-byte region [fff00000c5903700, fff00000c5903778) [ 19.697499] [ 19.697627] The buggy address belongs to the physical page: [ 19.697693] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105903 [ 19.697878] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.697965] page_type: f5(slab) [ 19.698015] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.698200] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.698245] page dumped because: kasan: bad access detected [ 19.698278] [ 19.698298] Memory state around the buggy address: [ 19.698334] fff00000c5903600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.698381] fff00000c5903680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.698426] >fff00000c5903700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.698501] ^ [ 19.698587] fff00000c5903780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.698681] fff00000c5903800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.698785] ================================================================== [ 19.699983] ================================================================== [ 19.700037] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 19.700090] Write of size 8 at addr fff00000c5903778 by task kunit_try_catch/282 [ 19.700142] [ 19.700444] CPU: 1 UID: 0 PID: 282 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.700684] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.700714] Hardware name: linux,dummy-virt (DT) [ 19.701146] Call trace: [ 19.701184] show_stack+0x20/0x38 (C) [ 19.701239] dump_stack_lvl+0x8c/0xd0 [ 19.701292] print_report+0x118/0x608 [ 19.701340] kasan_report+0xdc/0x128 [ 19.701386] kasan_check_range+0x100/0x1a8 [ 19.701437] __kasan_check_write+0x20/0x30 [ 19.701483] copy_to_kernel_nofault+0x8c/0x250 [ 19.701531] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 19.701583] kunit_try_run_case+0x170/0x3f0 [ 19.701630] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.701684] kthread+0x328/0x630 [ 19.701741] ret_from_fork+0x10/0x20 [ 19.701790] [ 19.701810] Allocated by task 282: [ 19.702134] kasan_save_stack+0x3c/0x68 [ 19.702217] kasan_save_track+0x20/0x40 [ 19.702289] kasan_save_alloc_info+0x40/0x58 [ 19.702361] __kasan_kmalloc+0xd4/0xd8 [ 19.702511] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.702838] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.702898] kunit_try_run_case+0x170/0x3f0 [ 19.703003] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.703078] kthread+0x328/0x630 [ 19.703123] ret_from_fork+0x10/0x20 [ 19.703280] [ 19.703301] The buggy address belongs to the object at fff00000c5903700 [ 19.703301] which belongs to the cache kmalloc-128 of size 128 [ 19.703380] The buggy address is located 0 bytes to the right of [ 19.703380] allocated 120-byte region [fff00000c5903700, fff00000c5903778) [ 19.703463] [ 19.703485] The buggy address belongs to the physical page: [ 19.703518] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105903 [ 19.703572] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.703621] page_type: f5(slab) [ 19.703737] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.703791] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.703835] page dumped because: kasan: bad access detected [ 19.704121] [ 19.704204] Memory state around the buggy address: [ 19.704257] fff00000c5903600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.704330] fff00000c5903680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.704376] >fff00000c5903700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.704417] ^ [ 19.704459] fff00000c5903780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.704503] fff00000c5903800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.704545] ==================================================================
[ 16.324222] ================================================================== [ 16.325951] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 16.326422] Read of size 8 at addr ffff888103953d78 by task kunit_try_catch/298 [ 16.326653] [ 16.326966] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 16.327042] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.327055] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.327077] Call Trace: [ 16.327092] <TASK> [ 16.327312] dump_stack_lvl+0x73/0xb0 [ 16.327349] print_report+0xd1/0x650 [ 16.327377] ? __virt_addr_valid+0x1db/0x2d0 [ 16.327404] ? copy_to_kernel_nofault+0x225/0x260 [ 16.327429] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.327455] ? copy_to_kernel_nofault+0x225/0x260 [ 16.327481] kasan_report+0x141/0x180 [ 16.327504] ? copy_to_kernel_nofault+0x225/0x260 [ 16.327534] __asan_report_load8_noabort+0x18/0x20 [ 16.327560] copy_to_kernel_nofault+0x225/0x260 [ 16.327587] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 16.327615] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.327640] ? finish_task_switch.isra.0+0x153/0x700 [ 16.327665] ? __schedule+0x10cc/0x2b60 [ 16.327688] ? trace_hardirqs_on+0x37/0xe0 [ 16.327721] ? __pfx_read_tsc+0x10/0x10 [ 16.327754] ? ktime_get_ts64+0x86/0x230 [ 16.327781] kunit_try_run_case+0x1a5/0x480 [ 16.327807] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.327832] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.327857] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.327882] ? __kthread_parkme+0x82/0x180 [ 16.327904] ? preempt_count_sub+0x50/0x80 [ 16.327944] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.327970] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.327995] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.328037] kthread+0x337/0x6f0 [ 16.328057] ? trace_preempt_on+0x20/0xc0 [ 16.328081] ? __pfx_kthread+0x10/0x10 [ 16.328103] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.328126] ? calculate_sigpending+0x7b/0xa0 [ 16.328152] ? __pfx_kthread+0x10/0x10 [ 16.328174] ret_from_fork+0x116/0x1d0 [ 16.328194] ? __pfx_kthread+0x10/0x10 [ 16.328215] ret_from_fork_asm+0x1a/0x30 [ 16.328250] </TASK> [ 16.328261] [ 16.346363] Allocated by task 298: [ 16.346517] kasan_save_stack+0x45/0x70 [ 16.346673] kasan_save_track+0x18/0x40 [ 16.347287] kasan_save_alloc_info+0x3b/0x50 [ 16.347710] __kasan_kmalloc+0xb7/0xc0 [ 16.348239] __kmalloc_cache_noprof+0x189/0x420 [ 16.348410] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.348576] kunit_try_run_case+0x1a5/0x480 [ 16.348724] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.349711] kthread+0x337/0x6f0 [ 16.350250] ret_from_fork+0x116/0x1d0 [ 16.350790] ret_from_fork_asm+0x1a/0x30 [ 16.351460] [ 16.351866] The buggy address belongs to the object at ffff888103953d00 [ 16.351866] which belongs to the cache kmalloc-128 of size 128 [ 16.353113] The buggy address is located 0 bytes to the right of [ 16.353113] allocated 120-byte region [ffff888103953d00, ffff888103953d78) [ 16.353693] [ 16.353784] The buggy address belongs to the physical page: [ 16.353981] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103953 [ 16.354296] flags: 0x200000000000000(node=0|zone=2) [ 16.354545] page_type: f5(slab) [ 16.354703] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.355277] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.355624] page dumped because: kasan: bad access detected [ 16.355865] [ 16.356007] Memory state around the buggy address: [ 16.356321] ffff888103953c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.356587] ffff888103953c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.357126] >ffff888103953d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.357418] ^ [ 16.357759] ffff888103953d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.358233] ffff888103953e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.358555] ================================================================== [ 16.359382] ================================================================== [ 16.359682] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 16.360116] Write of size 8 at addr ffff888103953d78 by task kunit_try_catch/298 [ 16.360533] [ 16.360649] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 16.360694] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.360707] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.360728] Call Trace: [ 16.360741] <TASK> [ 16.360796] dump_stack_lvl+0x73/0xb0 [ 16.360829] print_report+0xd1/0x650 [ 16.360853] ? __virt_addr_valid+0x1db/0x2d0 [ 16.360877] ? copy_to_kernel_nofault+0x99/0x260 [ 16.360945] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.360972] ? copy_to_kernel_nofault+0x99/0x260 [ 16.361009] kasan_report+0x141/0x180 [ 16.361101] ? copy_to_kernel_nofault+0x99/0x260 [ 16.361144] kasan_check_range+0x10c/0x1c0 [ 16.361199] __kasan_check_write+0x18/0x20 [ 16.361220] copy_to_kernel_nofault+0x99/0x260 [ 16.361247] copy_to_kernel_nofault_oob+0x288/0x560 [ 16.361273] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.361298] ? finish_task_switch.isra.0+0x153/0x700 [ 16.361323] ? __schedule+0x10cc/0x2b60 [ 16.361345] ? trace_hardirqs_on+0x37/0xe0 [ 16.361378] ? __pfx_read_tsc+0x10/0x10 [ 16.361417] ? ktime_get_ts64+0x86/0x230 [ 16.361452] kunit_try_run_case+0x1a5/0x480 [ 16.361478] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.361513] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.361538] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.361590] ? __kthread_parkme+0x82/0x180 [ 16.361612] ? preempt_count_sub+0x50/0x80 [ 16.361637] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.361673] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.361699] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.361726] kthread+0x337/0x6f0 [ 16.361746] ? trace_preempt_on+0x20/0xc0 [ 16.361781] ? __pfx_kthread+0x10/0x10 [ 16.361803] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.361826] ? calculate_sigpending+0x7b/0xa0 [ 16.361851] ? __pfx_kthread+0x10/0x10 [ 16.361873] ret_from_fork+0x116/0x1d0 [ 16.361893] ? __pfx_kthread+0x10/0x10 [ 16.361914] ret_from_fork_asm+0x1a/0x30 [ 16.361958] </TASK> [ 16.361970] [ 16.372062] Allocated by task 298: [ 16.372324] kasan_save_stack+0x45/0x70 [ 16.372571] kasan_save_track+0x18/0x40 [ 16.372775] kasan_save_alloc_info+0x3b/0x50 [ 16.373012] __kasan_kmalloc+0xb7/0xc0 [ 16.373298] __kmalloc_cache_noprof+0x189/0x420 [ 16.373527] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.373786] kunit_try_run_case+0x1a5/0x480 [ 16.374130] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.374572] kthread+0x337/0x6f0 [ 16.374776] ret_from_fork+0x116/0x1d0 [ 16.375068] ret_from_fork_asm+0x1a/0x30 [ 16.375282] [ 16.375378] The buggy address belongs to the object at ffff888103953d00 [ 16.375378] which belongs to the cache kmalloc-128 of size 128 [ 16.375932] The buggy address is located 0 bytes to the right of [ 16.375932] allocated 120-byte region [ffff888103953d00, ffff888103953d78) [ 16.376546] [ 16.376625] The buggy address belongs to the physical page: [ 16.376799] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103953 [ 16.377146] flags: 0x200000000000000(node=0|zone=2) [ 16.377490] page_type: f5(slab) [ 16.377887] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.378631] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.378940] page dumped because: kasan: bad access detected [ 16.379496] [ 16.379575] Memory state around the buggy address: [ 16.379820] ffff888103953c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.380243] ffff888103953c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.380609] >ffff888103953d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.380987] ^ [ 16.381477] ffff888103953d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.381804] ffff888103953e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.382176] ==================================================================