Date
July 3, 2025, 11:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.858733] ================================================================== [ 23.858858] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x3c8/0xec8 [ 23.858972] Read of size 121 at addr fff00000c638a000 by task kunit_try_catch/285 [ 23.859089] [ 23.859164] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 23.859359] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.859422] Hardware name: linux,dummy-virt (DT) [ 23.859499] Call trace: [ 23.859552] show_stack+0x20/0x38 (C) [ 23.859660] dump_stack_lvl+0x8c/0xd0 [ 23.859760] print_report+0x118/0x608 [ 23.859875] kasan_report+0xdc/0x128 [ 23.859979] kasan_check_range+0x100/0x1a8 [ 23.860993] __kasan_check_read+0x20/0x30 [ 23.861497] copy_user_test_oob+0x3c8/0xec8 [ 23.861663] kunit_try_run_case+0x170/0x3f0 [ 23.861965] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.862353] kthread+0x328/0x630 [ 23.862537] ret_from_fork+0x10/0x20 [ 23.862718] [ 23.862767] Allocated by task 285: [ 23.862831] kasan_save_stack+0x3c/0x68 [ 23.863335] kasan_save_track+0x20/0x40 [ 23.863431] kasan_save_alloc_info+0x40/0x58 [ 23.863524] __kasan_kmalloc+0xd4/0xd8 [ 23.863613] __kmalloc_noprof+0x198/0x4c8 [ 23.863692] kunit_kmalloc_array+0x34/0x88 [ 23.864177] copy_user_test_oob+0xac/0xec8 [ 23.864285] kunit_try_run_case+0x170/0x3f0 [ 23.864800] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.864911] kthread+0x328/0x630 [ 23.865252] ret_from_fork+0x10/0x20 [ 23.865361] [ 23.865413] The buggy address belongs to the object at fff00000c638a000 [ 23.865413] which belongs to the cache kmalloc-128 of size 128 [ 23.865543] The buggy address is located 0 bytes inside of [ 23.865543] allocated 120-byte region [fff00000c638a000, fff00000c638a078) [ 23.866324] [ 23.866391] The buggy address belongs to the physical page: [ 23.866482] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638a [ 23.866684] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.867012] page_type: f5(slab) [ 23.867251] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.867385] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.867983] page dumped because: kasan: bad access detected [ 23.868100] [ 23.868148] Memory state around the buggy address: [ 23.868229] fff00000c6389f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.868336] fff00000c6389f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.868439] >fff00000c638a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.868545] ^ [ 23.868680] fff00000c638a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.869017] fff00000c638a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.869374] ================================================================== [ 23.871363] ================================================================== [ 23.871634] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x434/0xec8 [ 23.871796] Write of size 121 at addr fff00000c638a000 by task kunit_try_catch/285 [ 23.871927] [ 23.872087] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 23.872466] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.872548] Hardware name: linux,dummy-virt (DT) [ 23.872910] Call trace: [ 23.872982] show_stack+0x20/0x38 (C) [ 23.873331] dump_stack_lvl+0x8c/0xd0 [ 23.873737] print_report+0x118/0x608 [ 23.874129] kasan_report+0xdc/0x128 [ 23.874298] kasan_check_range+0x100/0x1a8 [ 23.874415] __kasan_check_write+0x20/0x30 [ 23.874611] copy_user_test_oob+0x434/0xec8 [ 23.874795] kunit_try_run_case+0x170/0x3f0 [ 23.874899] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.874997] kthread+0x328/0x630 [ 23.875105] ret_from_fork+0x10/0x20 [ 23.875204] [ 23.875814] Allocated by task 285: [ 23.875936] kasan_save_stack+0x3c/0x68 [ 23.876058] kasan_save_track+0x20/0x40 [ 23.876699] kasan_save_alloc_info+0x40/0x58 [ 23.876822] __kasan_kmalloc+0xd4/0xd8 [ 23.877127] __kmalloc_noprof+0x198/0x4c8 [ 23.877231] kunit_kmalloc_array+0x34/0x88 [ 23.877524] copy_user_test_oob+0xac/0xec8 [ 23.877703] kunit_try_run_case+0x170/0x3f0 [ 23.877782] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.878110] kthread+0x328/0x630 [ 23.878185] ret_from_fork+0x10/0x20 [ 23.878267] [ 23.878399] The buggy address belongs to the object at fff00000c638a000 [ 23.878399] which belongs to the cache kmalloc-128 of size 128 [ 23.878730] The buggy address is located 0 bytes inside of [ 23.878730] allocated 120-byte region [fff00000c638a000, fff00000c638a078) [ 23.878972] [ 23.879348] The buggy address belongs to the physical page: [ 23.879426] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638a [ 23.879551] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.879666] page_type: f5(slab) [ 23.879854] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.880316] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.880614] page dumped because: kasan: bad access detected [ 23.880782] [ 23.881017] Memory state around the buggy address: [ 23.881170] fff00000c6389f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.881388] fff00000c6389f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.882011] >fff00000c638a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.882105] ^ [ 23.882159] fff00000c638a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.882216] fff00000c638a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.882289] ================================================================== [ 23.845452] ================================================================== [ 23.845624] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x35c/0xec8 [ 23.846323] Write of size 121 at addr fff00000c638a000 by task kunit_try_catch/285 [ 23.846471] [ 23.846545] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 23.846932] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.847068] Hardware name: linux,dummy-virt (DT) [ 23.847160] Call trace: [ 23.847548] show_stack+0x20/0x38 (C) [ 23.847747] dump_stack_lvl+0x8c/0xd0 [ 23.847859] print_report+0x118/0x608 [ 23.848376] kasan_report+0xdc/0x128 [ 23.848491] kasan_check_range+0x100/0x1a8 [ 23.848633] __kasan_check_write+0x20/0x30 [ 23.849113] copy_user_test_oob+0x35c/0xec8 [ 23.849726] kunit_try_run_case+0x170/0x3f0 [ 23.850054] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.850245] kthread+0x328/0x630 [ 23.850336] ret_from_fork+0x10/0x20 [ 23.850808] [ 23.850922] Allocated by task 285: [ 23.851004] kasan_save_stack+0x3c/0x68 [ 23.851116] kasan_save_track+0x20/0x40 [ 23.851200] kasan_save_alloc_info+0x40/0x58 [ 23.851293] __kasan_kmalloc+0xd4/0xd8 [ 23.851766] __kmalloc_noprof+0x198/0x4c8 [ 23.851871] kunit_kmalloc_array+0x34/0x88 [ 23.852149] copy_user_test_oob+0xac/0xec8 [ 23.852422] kunit_try_run_case+0x170/0x3f0 [ 23.852922] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.853096] kthread+0x328/0x630 [ 23.853329] ret_from_fork+0x10/0x20 [ 23.853433] [ 23.853629] The buggy address belongs to the object at fff00000c638a000 [ 23.853629] which belongs to the cache kmalloc-128 of size 128 [ 23.853842] The buggy address is located 0 bytes inside of [ 23.853842] allocated 120-byte region [fff00000c638a000, fff00000c638a078) [ 23.854177] [ 23.854235] The buggy address belongs to the physical page: [ 23.854348] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638a [ 23.854702] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.854816] page_type: f5(slab) [ 23.854906] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.855257] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.855566] page dumped because: kasan: bad access detected [ 23.855647] [ 23.855689] Memory state around the buggy address: [ 23.855814] fff00000c6389f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.855923] fff00000c6389f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.856039] >fff00000c638a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.856130] ^ [ 23.856238] fff00000c638a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.856354] fff00000c638a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.856447] ================================================================== [ 23.883166] ================================================================== [ 23.883284] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x4a0/0xec8 [ 23.883398] Read of size 121 at addr fff00000c638a000 by task kunit_try_catch/285 [ 23.883517] [ 23.883588] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 23.883764] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.883827] Hardware name: linux,dummy-virt (DT) [ 23.883903] Call trace: [ 23.883953] show_stack+0x20/0x38 (C) [ 23.884077] dump_stack_lvl+0x8c/0xd0 [ 23.884176] print_report+0x118/0x608 [ 23.884324] kasan_report+0xdc/0x128 [ 23.884431] kasan_check_range+0x100/0x1a8 [ 23.884549] __kasan_check_read+0x20/0x30 [ 23.884647] copy_user_test_oob+0x4a0/0xec8 [ 23.884769] kunit_try_run_case+0x170/0x3f0 [ 23.884893] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.885110] kthread+0x328/0x630 [ 23.885213] ret_from_fork+0x10/0x20 [ 23.885367] [ 23.885409] Allocated by task 285: [ 23.885492] kasan_save_stack+0x3c/0x68 [ 23.885603] kasan_save_track+0x20/0x40 [ 23.885679] kasan_save_alloc_info+0x40/0x58 [ 23.885762] __kasan_kmalloc+0xd4/0xd8 [ 23.885885] __kmalloc_noprof+0x198/0x4c8 [ 23.886001] kunit_kmalloc_array+0x34/0x88 [ 23.886120] copy_user_test_oob+0xac/0xec8 [ 23.886239] kunit_try_run_case+0x170/0x3f0 [ 23.886337] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.886483] kthread+0x328/0x630 [ 23.886586] ret_from_fork+0x10/0x20 [ 23.886706] [ 23.886776] The buggy address belongs to the object at fff00000c638a000 [ 23.886776] which belongs to the cache kmalloc-128 of size 128 [ 23.886946] The buggy address is located 0 bytes inside of [ 23.886946] allocated 120-byte region [fff00000c638a000, fff00000c638a078) [ 23.887092] [ 23.887134] The buggy address belongs to the physical page: [ 23.887196] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638a [ 23.887302] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.887410] page_type: f5(slab) [ 23.887523] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.887697] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.887798] page dumped because: kasan: bad access detected [ 23.887882] [ 23.887949] Memory state around the buggy address: [ 23.888304] fff00000c6389f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.888403] fff00000c6389f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.888511] >fff00000c638a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.888603] ^ [ 23.888756] fff00000c638a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.888865] fff00000c638a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.888954] ================================================================== [ 23.799428] ================================================================== [ 23.799613] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x234/0xec8 [ 23.799775] Write of size 121 at addr fff00000c638a000 by task kunit_try_catch/285 [ 23.799913] [ 23.800041] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 23.800252] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.800323] Hardware name: linux,dummy-virt (DT) [ 23.800402] Call trace: [ 23.800460] show_stack+0x20/0x38 (C) [ 23.800588] dump_stack_lvl+0x8c/0xd0 [ 23.800699] print_report+0x118/0x608 [ 23.800900] kasan_report+0xdc/0x128 [ 23.801043] kasan_check_range+0x100/0x1a8 [ 23.801160] __kasan_check_write+0x20/0x30 [ 23.801275] copy_user_test_oob+0x234/0xec8 [ 23.801386] kunit_try_run_case+0x170/0x3f0 [ 23.801501] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.801804] kthread+0x328/0x630 [ 23.802009] ret_from_fork+0x10/0x20 [ 23.802172] [ 23.802408] Allocated by task 285: [ 23.802573] kasan_save_stack+0x3c/0x68 [ 23.802773] kasan_save_track+0x20/0x40 [ 23.802987] kasan_save_alloc_info+0x40/0x58 [ 23.803458] __kasan_kmalloc+0xd4/0xd8 [ 23.803624] __kmalloc_noprof+0x198/0x4c8 [ 23.803814] kunit_kmalloc_array+0x34/0x88 [ 23.804126] copy_user_test_oob+0xac/0xec8 [ 23.804381] kunit_try_run_case+0x170/0x3f0 [ 23.804544] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.804876] kthread+0x328/0x630 [ 23.805151] ret_from_fork+0x10/0x20 [ 23.805265] [ 23.805384] The buggy address belongs to the object at fff00000c638a000 [ 23.805384] which belongs to the cache kmalloc-128 of size 128 [ 23.805760] The buggy address is located 0 bytes inside of [ 23.805760] allocated 120-byte region [fff00000c638a000, fff00000c638a078) [ 23.806380] [ 23.806458] The buggy address belongs to the physical page: [ 23.806536] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638a [ 23.806900] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.807132] page_type: f5(slab) [ 23.807254] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.807649] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.807794] page dumped because: kasan: bad access detected [ 23.807912] [ 23.807969] Memory state around the buggy address: [ 23.808061] fff00000c6389f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.808166] fff00000c6389f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.808322] >fff00000c638a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.808467] ^ [ 23.808609] fff00000c638a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.808707] fff00000c638a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.808812] ================================================================== [ 23.817508] ================================================================== [ 23.817654] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x728/0xec8 [ 23.817794] Read of size 121 at addr fff00000c638a000 by task kunit_try_catch/285 [ 23.817911] [ 23.818010] CPU: 1 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 23.818211] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.818275] Hardware name: linux,dummy-virt (DT) [ 23.818395] Call trace: [ 23.818610] show_stack+0x20/0x38 (C) [ 23.818772] dump_stack_lvl+0x8c/0xd0 [ 23.818916] print_report+0x118/0x608 [ 23.819098] kasan_report+0xdc/0x128 [ 23.819202] kasan_check_range+0x100/0x1a8 [ 23.819520] __kasan_check_read+0x20/0x30 [ 23.819625] copy_user_test_oob+0x728/0xec8 [ 23.819735] kunit_try_run_case+0x170/0x3f0 [ 23.819834] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.820725] kthread+0x328/0x630 [ 23.820928] ret_from_fork+0x10/0x20 [ 23.821248] [ 23.821303] Allocated by task 285: [ 23.821380] kasan_save_stack+0x3c/0x68 [ 23.821491] kasan_save_track+0x20/0x40 [ 23.821780] kasan_save_alloc_info+0x40/0x58 [ 23.821879] __kasan_kmalloc+0xd4/0xd8 [ 23.822165] __kmalloc_noprof+0x198/0x4c8 [ 23.822436] kunit_kmalloc_array+0x34/0x88 [ 23.822544] copy_user_test_oob+0xac/0xec8 [ 23.822691] kunit_try_run_case+0x170/0x3f0 [ 23.822782] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.822900] kthread+0x328/0x630 [ 23.822979] ret_from_fork+0x10/0x20 [ 23.823443] [ 23.823559] The buggy address belongs to the object at fff00000c638a000 [ 23.823559] which belongs to the cache kmalloc-128 of size 128 [ 23.823778] The buggy address is located 0 bytes inside of [ 23.823778] allocated 120-byte region [fff00000c638a000, fff00000c638a078) [ 23.823924] [ 23.823973] The buggy address belongs to the physical page: [ 23.824246] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638a [ 23.824508] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.824967] page_type: f5(slab) [ 23.825089] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 23.825420] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.825778] page dumped because: kasan: bad access detected [ 23.825884] [ 23.825987] Memory state around the buggy address: [ 23.826077] fff00000c6389f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.826256] fff00000c6389f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.826362] >fff00000c638a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.826441] ^ [ 23.826948] fff00000c638a080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.827156] fff00000c638a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.827259] ==================================================================
[ 15.685646] ================================================================== [ 15.686293] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x604/0x10f0 [ 15.686933] Read of size 121 at addr ffff8881039bf700 by task kunit_try_catch/303 [ 15.687539] [ 15.687630] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.687676] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.687689] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.687711] Call Trace: [ 15.687728] <TASK> [ 15.687747] dump_stack_lvl+0x73/0xb0 [ 15.687774] print_report+0xd1/0x650 [ 15.687799] ? __virt_addr_valid+0x1db/0x2d0 [ 15.687824] ? copy_user_test_oob+0x604/0x10f0 [ 15.687851] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.687875] ? copy_user_test_oob+0x604/0x10f0 [ 15.687900] kasan_report+0x141/0x180 [ 15.687923] ? copy_user_test_oob+0x604/0x10f0 [ 15.687951] kasan_check_range+0x10c/0x1c0 [ 15.687975] __kasan_check_read+0x15/0x20 [ 15.687996] copy_user_test_oob+0x604/0x10f0 [ 15.688022] ? __pfx_copy_user_test_oob+0x10/0x10 [ 15.688045] ? finish_task_switch.isra.0+0x153/0x700 [ 15.688068] ? __switch_to+0x47/0xf50 [ 15.688093] ? __schedule+0x10cc/0x2b60 [ 15.688143] ? __pfx_read_tsc+0x10/0x10 [ 15.688178] ? ktime_get_ts64+0x86/0x230 [ 15.688203] kunit_try_run_case+0x1a5/0x480 [ 15.688228] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.688250] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.688274] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.688299] ? __kthread_parkme+0x82/0x180 [ 15.688321] ? preempt_count_sub+0x50/0x80 [ 15.688344] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.688370] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.688396] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.688420] kthread+0x337/0x6f0 [ 15.688440] ? trace_preempt_on+0x20/0xc0 [ 15.688464] ? __pfx_kthread+0x10/0x10 [ 15.688486] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.688507] ? calculate_sigpending+0x7b/0xa0 [ 15.688531] ? __pfx_kthread+0x10/0x10 [ 15.688555] ret_from_fork+0x116/0x1d0 [ 15.688575] ? __pfx_kthread+0x10/0x10 [ 15.688596] ret_from_fork_asm+0x1a/0x30 [ 15.688628] </TASK> [ 15.688640] [ 15.700036] Allocated by task 303: [ 15.700555] kasan_save_stack+0x45/0x70 [ 15.700828] kasan_save_track+0x18/0x40 [ 15.701114] kasan_save_alloc_info+0x3b/0x50 [ 15.701461] __kasan_kmalloc+0xb7/0xc0 [ 15.701645] __kmalloc_noprof+0x1c9/0x500 [ 15.701831] kunit_kmalloc_array+0x25/0x60 [ 15.702024] copy_user_test_oob+0xab/0x10f0 [ 15.702463] kunit_try_run_case+0x1a5/0x480 [ 15.702862] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.703324] kthread+0x337/0x6f0 [ 15.703625] ret_from_fork+0x116/0x1d0 [ 15.703917] ret_from_fork_asm+0x1a/0x30 [ 15.704275] [ 15.704370] The buggy address belongs to the object at ffff8881039bf700 [ 15.704370] which belongs to the cache kmalloc-128 of size 128 [ 15.704856] The buggy address is located 0 bytes inside of [ 15.704856] allocated 120-byte region [ffff8881039bf700, ffff8881039bf778) [ 15.705793] [ 15.706026] The buggy address belongs to the physical page: [ 15.706499] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bf [ 15.706960] flags: 0x200000000000000(node=0|zone=2) [ 15.707459] page_type: f5(slab) [ 15.707702] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.708240] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.708740] page dumped because: kasan: bad access detected [ 15.708982] [ 15.709073] Memory state around the buggy address: [ 15.709747] ffff8881039bf600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.710229] ffff8881039bf680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.710734] >ffff8881039bf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.711336] ^ [ 15.711753] ffff8881039bf780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.712046] ffff8881039bf800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.712649] ================================================================== [ 15.642459] ================================================================== [ 15.642728] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x4aa/0x10f0 [ 15.643044] Read of size 121 at addr ffff8881039bf700 by task kunit_try_catch/303 [ 15.643409] [ 15.643493] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.643535] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.643548] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.643571] Call Trace: [ 15.643587] <TASK> [ 15.643619] dump_stack_lvl+0x73/0xb0 [ 15.643645] print_report+0xd1/0x650 [ 15.643668] ? __virt_addr_valid+0x1db/0x2d0 [ 15.643692] ? copy_user_test_oob+0x4aa/0x10f0 [ 15.643717] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.643741] ? copy_user_test_oob+0x4aa/0x10f0 [ 15.643765] kasan_report+0x141/0x180 [ 15.643788] ? copy_user_test_oob+0x4aa/0x10f0 [ 15.643817] kasan_check_range+0x10c/0x1c0 [ 15.643841] __kasan_check_read+0x15/0x20 [ 15.643861] copy_user_test_oob+0x4aa/0x10f0 [ 15.643888] ? __pfx_copy_user_test_oob+0x10/0x10 [ 15.643911] ? finish_task_switch.isra.0+0x153/0x700 [ 15.643933] ? __switch_to+0x47/0xf50 [ 15.643958] ? __schedule+0x10cc/0x2b60 [ 15.643980] ? __pfx_read_tsc+0x10/0x10 [ 15.644002] ? ktime_get_ts64+0x86/0x230 [ 15.644027] kunit_try_run_case+0x1a5/0x480 [ 15.644052] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.644075] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.644099] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.644132] ? __kthread_parkme+0x82/0x180 [ 15.644156] ? preempt_count_sub+0x50/0x80 [ 15.644180] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.644205] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.644229] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.644253] kthread+0x337/0x6f0 [ 15.644272] ? trace_preempt_on+0x20/0xc0 [ 15.644296] ? __pfx_kthread+0x10/0x10 [ 15.644318] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.644339] ? calculate_sigpending+0x7b/0xa0 [ 15.644363] ? __pfx_kthread+0x10/0x10 [ 15.644385] ret_from_fork+0x116/0x1d0 [ 15.644404] ? __pfx_kthread+0x10/0x10 [ 15.644426] ret_from_fork_asm+0x1a/0x30 [ 15.644456] </TASK> [ 15.644468] [ 15.651337] Allocated by task 303: [ 15.651514] kasan_save_stack+0x45/0x70 [ 15.651718] kasan_save_track+0x18/0x40 [ 15.651915] kasan_save_alloc_info+0x3b/0x50 [ 15.652153] __kasan_kmalloc+0xb7/0xc0 [ 15.652538] __kmalloc_noprof+0x1c9/0x500 [ 15.652744] kunit_kmalloc_array+0x25/0x60 [ 15.652958] copy_user_test_oob+0xab/0x10f0 [ 15.653106] kunit_try_run_case+0x1a5/0x480 [ 15.653335] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.653562] kthread+0x337/0x6f0 [ 15.653695] ret_from_fork+0x116/0x1d0 [ 15.653830] ret_from_fork_asm+0x1a/0x30 [ 15.653969] [ 15.654040] The buggy address belongs to the object at ffff8881039bf700 [ 15.654040] which belongs to the cache kmalloc-128 of size 128 [ 15.654562] The buggy address is located 0 bytes inside of [ 15.654562] allocated 120-byte region [ffff8881039bf700, ffff8881039bf778) [ 15.655160] [ 15.655258] The buggy address belongs to the physical page: [ 15.655453] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bf [ 15.655694] flags: 0x200000000000000(node=0|zone=2) [ 15.655855] page_type: f5(slab) [ 15.656019] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.656716] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.657077] page dumped because: kasan: bad access detected [ 15.657306] [ 15.657374] Memory state around the buggy address: [ 15.657524] ffff8881039bf600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.657768] ffff8881039bf680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.658079] >ffff8881039bf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.658394] ^ [ 15.658822] ffff8881039bf780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.659102] ffff8881039bf800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.659440] ================================================================== [ 15.624588] ================================================================== [ 15.624918] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x3fd/0x10f0 [ 15.625258] Write of size 121 at addr ffff8881039bf700 by task kunit_try_catch/303 [ 15.625572] [ 15.625672] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.625714] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.625727] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.625749] Call Trace: [ 15.625762] <TASK> [ 15.625776] dump_stack_lvl+0x73/0xb0 [ 15.625803] print_report+0xd1/0x650 [ 15.625830] ? __virt_addr_valid+0x1db/0x2d0 [ 15.625854] ? copy_user_test_oob+0x3fd/0x10f0 [ 15.625878] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.625902] ? copy_user_test_oob+0x3fd/0x10f0 [ 15.625926] kasan_report+0x141/0x180 [ 15.625949] ? copy_user_test_oob+0x3fd/0x10f0 [ 15.625977] kasan_check_range+0x10c/0x1c0 [ 15.626001] __kasan_check_write+0x18/0x20 [ 15.626021] copy_user_test_oob+0x3fd/0x10f0 [ 15.626047] ? __pfx_copy_user_test_oob+0x10/0x10 [ 15.626070] ? finish_task_switch.isra.0+0x153/0x700 [ 15.626094] ? __switch_to+0x47/0xf50 [ 15.626130] ? __schedule+0x10cc/0x2b60 [ 15.626153] ? __pfx_read_tsc+0x10/0x10 [ 15.626174] ? ktime_get_ts64+0x86/0x230 [ 15.626198] kunit_try_run_case+0x1a5/0x480 [ 15.626223] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.626247] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.626270] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.626293] ? __kthread_parkme+0x82/0x180 [ 15.626313] ? preempt_count_sub+0x50/0x80 [ 15.626337] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.626361] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.626384] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.626408] kthread+0x337/0x6f0 [ 15.626428] ? trace_preempt_on+0x20/0xc0 [ 15.626453] ? __pfx_kthread+0x10/0x10 [ 15.626474] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.626495] ? calculate_sigpending+0x7b/0xa0 [ 15.626526] ? __pfx_kthread+0x10/0x10 [ 15.626548] ret_from_fork+0x116/0x1d0 [ 15.626566] ? __pfx_kthread+0x10/0x10 [ 15.626588] ret_from_fork_asm+0x1a/0x30 [ 15.626618] </TASK> [ 15.626629] [ 15.634154] Allocated by task 303: [ 15.634338] kasan_save_stack+0x45/0x70 [ 15.634551] kasan_save_track+0x18/0x40 [ 15.634744] kasan_save_alloc_info+0x3b/0x50 [ 15.635052] __kasan_kmalloc+0xb7/0xc0 [ 15.635315] __kmalloc_noprof+0x1c9/0x500 [ 15.635480] kunit_kmalloc_array+0x25/0x60 [ 15.635666] copy_user_test_oob+0xab/0x10f0 [ 15.635817] kunit_try_run_case+0x1a5/0x480 [ 15.636007] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.636253] kthread+0x337/0x6f0 [ 15.636390] ret_from_fork+0x116/0x1d0 [ 15.636527] ret_from_fork_asm+0x1a/0x30 [ 15.636670] [ 15.636742] The buggy address belongs to the object at ffff8881039bf700 [ 15.636742] which belongs to the cache kmalloc-128 of size 128 [ 15.637262] The buggy address is located 0 bytes inside of [ 15.637262] allocated 120-byte region [ffff8881039bf700, ffff8881039bf778) [ 15.637773] [ 15.637848] The buggy address belongs to the physical page: [ 15.638020] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bf [ 15.638528] flags: 0x200000000000000(node=0|zone=2) [ 15.638768] page_type: f5(slab) [ 15.638947] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.639293] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.639524] page dumped because: kasan: bad access detected [ 15.639738] [ 15.639833] Memory state around the buggy address: [ 15.640059] ffff8881039bf600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.640482] ffff8881039bf680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.640739] >ffff8881039bf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.640956] ^ [ 15.641201] ffff8881039bf780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.641528] ffff8881039bf800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.641851] ================================================================== [ 15.659901] ================================================================== [ 15.660173] BUG: KASAN: slab-out-of-bounds in copy_user_test_oob+0x557/0x10f0 [ 15.660982] Write of size 121 at addr ffff8881039bf700 by task kunit_try_catch/303 [ 15.661379] [ 15.661471] CPU: 1 UID: 0 PID: 303 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 15.661514] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.661527] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.661549] Call Trace: [ 15.661563] <TASK> [ 15.661576] dump_stack_lvl+0x73/0xb0 [ 15.661603] print_report+0xd1/0x650 [ 15.661627] ? __virt_addr_valid+0x1db/0x2d0 [ 15.661650] ? copy_user_test_oob+0x557/0x10f0 [ 15.661675] ? kasan_complete_mode_report_info+0x2a/0x200 [ 15.661699] ? copy_user_test_oob+0x557/0x10f0 [ 15.661723] kasan_report+0x141/0x180 [ 15.661745] ? copy_user_test_oob+0x557/0x10f0 [ 15.661774] kasan_check_range+0x10c/0x1c0 [ 15.661798] __kasan_check_write+0x18/0x20 [ 15.661819] copy_user_test_oob+0x557/0x10f0 [ 15.661846] ? __pfx_copy_user_test_oob+0x10/0x10 [ 15.661870] ? finish_task_switch.isra.0+0x153/0x700 [ 15.661892] ? __switch_to+0x47/0xf50 [ 15.661919] ? __schedule+0x10cc/0x2b60 [ 15.661940] ? __pfx_read_tsc+0x10/0x10 [ 15.661962] ? ktime_get_ts64+0x86/0x230 [ 15.661987] kunit_try_run_case+0x1a5/0x480 [ 15.662011] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.662035] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.662058] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.662081] ? __kthread_parkme+0x82/0x180 [ 15.662103] ? preempt_count_sub+0x50/0x80 [ 15.662138] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.662164] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.662187] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.662211] kthread+0x337/0x6f0 [ 15.662231] ? trace_preempt_on+0x20/0xc0 [ 15.662256] ? __pfx_kthread+0x10/0x10 [ 15.662277] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.662298] ? calculate_sigpending+0x7b/0xa0 [ 15.662323] ? __pfx_kthread+0x10/0x10 [ 15.662345] ret_from_fork+0x116/0x1d0 [ 15.662364] ? __pfx_kthread+0x10/0x10 [ 15.662386] ret_from_fork_asm+0x1a/0x30 [ 15.662417] </TASK> [ 15.662430] [ 15.672222] Allocated by task 303: [ 15.672552] kasan_save_stack+0x45/0x70 [ 15.672908] kasan_save_track+0x18/0x40 [ 15.673280] kasan_save_alloc_info+0x3b/0x50 [ 15.673664] __kasan_kmalloc+0xb7/0xc0 [ 15.674009] __kmalloc_noprof+0x1c9/0x500 [ 15.674410] kunit_kmalloc_array+0x25/0x60 [ 15.674789] copy_user_test_oob+0xab/0x10f0 [ 15.675198] kunit_try_run_case+0x1a5/0x480 [ 15.675582] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.676051] kthread+0x337/0x6f0 [ 15.676386] ret_from_fork+0x116/0x1d0 [ 15.676723] ret_from_fork_asm+0x1a/0x30 [ 15.677074] [ 15.677261] The buggy address belongs to the object at ffff8881039bf700 [ 15.677261] which belongs to the cache kmalloc-128 of size 128 [ 15.677637] The buggy address is located 0 bytes inside of [ 15.677637] allocated 120-byte region [ffff8881039bf700, ffff8881039bf778) [ 15.677994] [ 15.678070] The buggy address belongs to the physical page: [ 15.678515] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039bf [ 15.679203] flags: 0x200000000000000(node=0|zone=2) [ 15.679649] page_type: f5(slab) [ 15.679940] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 15.680611] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.681280] page dumped because: kasan: bad access detected [ 15.681754] [ 15.681921] Memory state around the buggy address: [ 15.682358] ffff8881039bf600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.682965] ffff8881039bf680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.683473] >ffff8881039bf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.683694] ^ [ 15.683908] ffff8881039bf780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.684154] ffff8881039bf800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.684753] ==================================================================