Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.506613] ================================================================== [ 19.506691] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x204/0x250 [ 19.507138] Read of size 8 at addr fff00000c5967f78 by task kunit_try_catch/281 [ 19.507203] [ 19.507259] CPU: 1 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 19.507397] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.507437] Hardware name: linux,dummy-virt (DT) [ 19.507473] Call trace: [ 19.507544] show_stack+0x20/0x38 (C) [ 19.507610] dump_stack_lvl+0x8c/0xd0 [ 19.507663] print_report+0x118/0x5d0 [ 19.507724] kasan_report+0xdc/0x128 [ 19.507770] __asan_report_load8_noabort+0x20/0x30 [ 19.508022] copy_to_kernel_nofault+0x204/0x250 [ 19.508076] copy_to_kernel_nofault_oob+0x158/0x418 [ 19.508152] kunit_try_run_case+0x170/0x3f0 [ 19.508268] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.508372] kthread+0x328/0x630 [ 19.508518] ret_from_fork+0x10/0x20 [ 19.508650] [ 19.508792] Allocated by task 281: [ 19.508890] kasan_save_stack+0x3c/0x68 [ 19.509020] kasan_save_track+0x20/0x40 [ 19.509137] kasan_save_alloc_info+0x40/0x58 [ 19.509218] __kasan_kmalloc+0xd4/0xd8 [ 19.509258] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.509442] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.509486] kunit_try_run_case+0x170/0x3f0 [ 19.509527] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.509634] kthread+0x328/0x630 [ 19.509703] ret_from_fork+0x10/0x20 [ 19.509895] [ 19.509974] The buggy address belongs to the object at fff00000c5967f00 [ 19.509974] which belongs to the cache kmalloc-128 of size 128 [ 19.510118] The buggy address is located 0 bytes to the right of [ 19.510118] allocated 120-byte region [fff00000c5967f00, fff00000c5967f78) [ 19.510254] [ 19.510370] The buggy address belongs to the physical page: [ 19.510425] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105967 [ 19.510527] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.510668] page_type: f5(slab) [ 19.510739] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.510793] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.510954] page dumped because: kasan: bad access detected [ 19.510988] [ 19.511009] Memory state around the buggy address: [ 19.511084] fff00000c5967e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.511178] fff00000c5967e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.511274] >fff00000c5967f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.511395] ^ [ 19.511480] fff00000c5967f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.511543] fff00000c5968000: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 19.511745] ================================================================== [ 19.512493] ================================================================== [ 19.512547] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x8c/0x250 [ 19.512598] Write of size 8 at addr fff00000c5967f78 by task kunit_try_catch/281 [ 19.512683] [ 19.512755] CPU: 1 UID: 0 PID: 281 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 19.512841] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.512871] Hardware name: linux,dummy-virt (DT) [ 19.512905] Call trace: [ 19.512931] show_stack+0x20/0x38 (C) [ 19.512981] dump_stack_lvl+0x8c/0xd0 [ 19.513200] print_report+0x118/0x5d0 [ 19.513253] kasan_report+0xdc/0x128 [ 19.513300] kasan_check_range+0x100/0x1a8 [ 19.513360] __kasan_check_write+0x20/0x30 [ 19.513446] copy_to_kernel_nofault+0x8c/0x250 [ 19.513505] copy_to_kernel_nofault_oob+0x1bc/0x418 [ 19.513560] kunit_try_run_case+0x170/0x3f0 [ 19.513613] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.513667] kthread+0x328/0x630 [ 19.513721] ret_from_fork+0x10/0x20 [ 19.513772] [ 19.513792] Allocated by task 281: [ 19.513822] kasan_save_stack+0x3c/0x68 [ 19.513864] kasan_save_track+0x20/0x40 [ 19.513904] kasan_save_alloc_info+0x40/0x58 [ 19.513946] __kasan_kmalloc+0xd4/0xd8 [ 19.513995] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.514037] copy_to_kernel_nofault_oob+0xc8/0x418 [ 19.514079] kunit_try_run_case+0x170/0x3f0 [ 19.514125] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.514177] kthread+0x328/0x630 [ 19.514216] ret_from_fork+0x10/0x20 [ 19.514255] [ 19.514276] The buggy address belongs to the object at fff00000c5967f00 [ 19.514276] which belongs to the cache kmalloc-128 of size 128 [ 19.514338] The buggy address is located 0 bytes to the right of [ 19.514338] allocated 120-byte region [fff00000c5967f00, fff00000c5967f78) [ 19.514406] [ 19.514427] The buggy address belongs to the physical page: [ 19.514461] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105967 [ 19.514517] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.514567] page_type: f5(slab) [ 19.514605] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.514658] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.514701] page dumped because: kasan: bad access detected [ 19.514744] [ 19.514763] Memory state around the buggy address: [ 19.514797] fff00000c5967e00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.514841] fff00000c5967e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.514888] >fff00000c5967f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.514929] ^ [ 19.514974] fff00000c5967f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.515021] fff00000c5968000: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 19.515064] ==================================================================
[ 16.606526] ================================================================== [ 16.606879] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x99/0x260 [ 16.607654] Write of size 8 at addr ffff88810307da78 by task kunit_try_catch/298 [ 16.608552] [ 16.608802] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.608964] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.608991] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.609026] Call Trace: [ 16.609040] <TASK> [ 16.609056] dump_stack_lvl+0x73/0xb0 [ 16.609125] print_report+0xd1/0x610 [ 16.609151] ? __virt_addr_valid+0x1db/0x2d0 [ 16.609177] ? copy_to_kernel_nofault+0x99/0x260 [ 16.609203] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.609229] ? copy_to_kernel_nofault+0x99/0x260 [ 16.609254] kasan_report+0x141/0x180 [ 16.609278] ? copy_to_kernel_nofault+0x99/0x260 [ 16.609308] kasan_check_range+0x10c/0x1c0 [ 16.609335] __kasan_check_write+0x18/0x20 [ 16.609356] copy_to_kernel_nofault+0x99/0x260 [ 16.609383] copy_to_kernel_nofault_oob+0x288/0x560 [ 16.609410] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.609436] ? finish_task_switch.isra.0+0x153/0x700 [ 16.609469] ? __schedule+0x10cc/0x2b60 [ 16.609493] ? trace_hardirqs_on+0x37/0xe0 [ 16.609526] ? __pfx_read_tsc+0x10/0x10 [ 16.609548] ? ktime_get_ts64+0x86/0x230 [ 16.609575] kunit_try_run_case+0x1a5/0x480 [ 16.609601] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.609627] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.609653] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.609678] ? __kthread_parkme+0x82/0x180 [ 16.609700] ? preempt_count_sub+0x50/0x80 [ 16.609725] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.609752] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.609792] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.609820] kthread+0x337/0x6f0 [ 16.609843] ? trace_preempt_on+0x20/0xc0 [ 16.609869] ? __pfx_kthread+0x10/0x10 [ 16.609892] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.609915] ? calculate_sigpending+0x7b/0xa0 [ 16.609942] ? __pfx_kthread+0x10/0x10 [ 16.609965] ret_from_fork+0x116/0x1d0 [ 16.610003] ? __pfx_kthread+0x10/0x10 [ 16.610026] ret_from_fork_asm+0x1a/0x30 [ 16.610058] </TASK> [ 16.610068] [ 16.623547] Allocated by task 298: [ 16.623730] kasan_save_stack+0x45/0x70 [ 16.623938] kasan_save_track+0x18/0x40 [ 16.624391] kasan_save_alloc_info+0x3b/0x50 [ 16.624769] __kasan_kmalloc+0xb7/0xc0 [ 16.624952] __kmalloc_cache_noprof+0x189/0x420 [ 16.625398] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.625650] kunit_try_run_case+0x1a5/0x480 [ 16.625861] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.626440] kthread+0x337/0x6f0 [ 16.626890] ret_from_fork+0x116/0x1d0 [ 16.627389] ret_from_fork_asm+0x1a/0x30 [ 16.627606] [ 16.627704] The buggy address belongs to the object at ffff88810307da00 [ 16.627704] which belongs to the cache kmalloc-128 of size 128 [ 16.628630] The buggy address is located 0 bytes to the right of [ 16.628630] allocated 120-byte region [ffff88810307da00, ffff88810307da78) [ 16.629645] [ 16.629926] The buggy address belongs to the physical page: [ 16.630403] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10307d [ 16.630774] flags: 0x200000000000000(node=0|zone=2) [ 16.631227] page_type: f5(slab) [ 16.631480] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.631820] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.632443] page dumped because: kasan: bad access detected [ 16.632886] [ 16.633184] Memory state around the buggy address: [ 16.633683] ffff88810307d900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.634203] ffff88810307d980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.634716] >ffff88810307da00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.635228] ^ [ 16.635808] ffff88810307da80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.636527] ffff88810307db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.637011] ================================================================== [ 16.581547] ================================================================== [ 16.582221] BUG: KASAN: slab-out-of-bounds in copy_to_kernel_nofault+0x225/0x260 [ 16.582576] Read of size 8 at addr ffff88810307da78 by task kunit_try_catch/298 [ 16.582902] [ 16.583040] CPU: 0 UID: 0 PID: 298 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 16.583107] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.583121] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.583158] Call Trace: [ 16.583171] <TASK> [ 16.583195] dump_stack_lvl+0x73/0xb0 [ 16.583228] print_report+0xd1/0x610 [ 16.583254] ? __virt_addr_valid+0x1db/0x2d0 [ 16.583280] ? copy_to_kernel_nofault+0x225/0x260 [ 16.583306] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.583333] ? copy_to_kernel_nofault+0x225/0x260 [ 16.583359] kasan_report+0x141/0x180 [ 16.583383] ? copy_to_kernel_nofault+0x225/0x260 [ 16.583413] __asan_report_load8_noabort+0x18/0x20 [ 16.583448] copy_to_kernel_nofault+0x225/0x260 [ 16.583475] copy_to_kernel_nofault_oob+0x1ed/0x560 [ 16.583502] ? __pfx_copy_to_kernel_nofault_oob+0x10/0x10 [ 16.583528] ? finish_task_switch.isra.0+0x153/0x700 [ 16.583554] ? __schedule+0x10cc/0x2b60 [ 16.583578] ? trace_hardirqs_on+0x37/0xe0 [ 16.583611] ? __pfx_read_tsc+0x10/0x10 [ 16.583635] ? ktime_get_ts64+0x86/0x230 [ 16.583661] kunit_try_run_case+0x1a5/0x480 [ 16.583689] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.583715] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.583741] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.583776] ? __kthread_parkme+0x82/0x180 [ 16.583800] ? preempt_count_sub+0x50/0x80 [ 16.583826] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.583854] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.583881] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.583909] kthread+0x337/0x6f0 [ 16.583930] ? trace_preempt_on+0x20/0xc0 [ 16.583955] ? __pfx_kthread+0x10/0x10 [ 16.583977] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.584016] ? calculate_sigpending+0x7b/0xa0 [ 16.584044] ? __pfx_kthread+0x10/0x10 [ 16.584068] ret_from_fork+0x116/0x1d0 [ 16.584089] ? __pfx_kthread+0x10/0x10 [ 16.584111] ret_from_fork_asm+0x1a/0x30 [ 16.584145] </TASK> [ 16.584157] [ 16.591800] Allocated by task 298: [ 16.591980] kasan_save_stack+0x45/0x70 [ 16.592254] kasan_save_track+0x18/0x40 [ 16.592442] kasan_save_alloc_info+0x3b/0x50 [ 16.592650] __kasan_kmalloc+0xb7/0xc0 [ 16.592792] __kmalloc_cache_noprof+0x189/0x420 [ 16.592947] copy_to_kernel_nofault_oob+0x12f/0x560 [ 16.593117] kunit_try_run_case+0x1a5/0x480 [ 16.593427] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.593687] kthread+0x337/0x6f0 [ 16.593868] ret_from_fork+0x116/0x1d0 [ 16.594057] ret_from_fork_asm+0x1a/0x30 [ 16.594273] [ 16.594344] The buggy address belongs to the object at ffff88810307da00 [ 16.594344] which belongs to the cache kmalloc-128 of size 128 [ 16.594685] The buggy address is located 0 bytes to the right of [ 16.594685] allocated 120-byte region [ffff88810307da00, ffff88810307da78) [ 16.596536] [ 16.596671] The buggy address belongs to the physical page: [ 16.597286] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10307d [ 16.597817] flags: 0x200000000000000(node=0|zone=2) [ 16.598227] page_type: f5(slab) [ 16.598580] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.598934] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.599873] page dumped because: kasan: bad access detected [ 16.600146] [ 16.600222] Memory state around the buggy address: [ 16.600948] ffff88810307d900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.601737] ffff88810307d980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.602436] >ffff88810307da00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.602893] ^ [ 16.603700] ffff88810307da80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.604750] ffff88810307db00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.605357] ==================================================================