ci starts bisection 2022-08-22 22:55:43.529666336 +0000 UTC m=+284050.165700752 bisecting fixing commit since 972a278fe60c361eb8f37619f562f092e8786d7c building syzkaller on 95cb00d1ffccfb9043ac5d91ff8103bbb9befae8 testing commit 972a278fe60c361eb8f37619f562f092e8786d7c compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c1d70edd5e7bc1fc8576e0eb2d23e4933e7528fec4cfeca11546b3bef03a9414 all runs: crashed: KASAN: use-after-free Read in kill_fasync testing current HEAD 072e51356cd5a4a1c12c1020bc054c99b98333df testing commit 072e51356cd5a4a1c12c1020bc054c99b98333df compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 7270c71101dbd2666a0531561a4fd425cbe8c0ea9eb65d8503c228c2aa1ed960 all runs: crashed: KASAN: stack-out-of-bounds Read in post_one_notification revisions tested: 2, total time: 25m28.699935455s (build: 13m40.534026137s, test: 11m14.154770744s) the crash still happens on HEAD commit msg: Merge tag 'nfs-for-5.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs crash: KASAN: stack-out-of-bounds Read in post_one_notification ================================================================== BUG: KASAN: stack-out-of-bounds in post_one_notification.isra.0+0x3db/0x850 kernel/watch_queue.c:128 Read of size 48 at addr ffffc90002b0fd40 by task syz-executor.4/28387 CPU: 1 PID: 28387 Comm: syz-executor.4 Not tainted 6.0.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x57/0x7d lib/dump_stack.c:106 print_address_description mm/kasan/report.c:317 [inline] print_report.cold+0x59/0x719 mm/kasan/report.c:433 kasan_report+0xb1/0x1e0 mm/kasan/report.c:495 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 memcpy+0x20/0x60 mm/kasan/shadow.c:65 post_one_notification.isra.0+0x3db/0x850 kernel/watch_queue.c:128 __post_watch_notification kernel/watch_queue.c:229 [inline] __post_watch_notification+0x459/0x800 kernel/watch_queue.c:198 post_watch_notification include/linux/watch_queue.h:109 [inline] notify_key security/keys/internal.h:199 [inline] __key_update security/keys/key.c:775 [inline] key_create_or_update+0xa84/0xbe0 security/keys/key.c:979 __do_sys_add_key+0x156/0x300 security/keys/keyctl.c:134 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f99e1689199 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f99e2883168 EFLAGS: 00000246 ORIG_RAX: 00000000000000f8 RAX: ffffffffffffffda RBX: 00007f99e179bf60 RCX: 00007f99e1689199 RDX: 0000000020000280 RSI: 0000000020000100 RDI: 00000000200000c0 RBP: 00007f99e16e313b R08: fffffffffffffffc R09: 0000000000000000 R10: 0000000000000048 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd60d46b9f R14: 00007f99e2883300 R15: 0000000000022000 The buggy address belongs to stack of task syz-executor.4/28387 and is located at offset 64 in frame: key_create_or_update+0x0/0xbe0 include/linux/rbtree.h:63 This frame has 4 objects: [32, 40) 'edit' [64, 80) 'n' [96, 136) 'index_key' [176, 256) 'prep' The buggy address belongs to the virtual mapping at [ffffc90002b08000, ffffc90002b11000) created by: kernel_clone+0xb8/0x800 kernel/fork.c:2673 The buggy address belongs to the physical page: page:ffffea00019f7080 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x67dc2 memcg:ffff88801ed5e902 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff88801ed5e902 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 28362, tgid 28362 (syz-executor.1), ts 355418035649, free_ts 354983292809 prep_new_page mm/page_alloc.c:2532 [inline] get_page_from_freelist+0x109b/0x2ce0 mm/page_alloc.c:4283 __alloc_pages+0x1c7/0x510 mm/page_alloc.c:5515 vm_area_alloc_pages mm/vmalloc.c:2958 [inline] __vmalloc_area_node mm/vmalloc.c:3026 [inline] __vmalloc_node_range+0x6f7/0xff0 mm/vmalloc.c:3196 alloc_thread_stack_node kernel/fork.c:312 [inline] dup_task_struct kernel/fork.c:977 [inline] copy_process+0x1094/0x6700 kernel/fork.c:2087 kernel_clone+0xb8/0x800 kernel/fork.c:2673 __do_sys_clone+0xa1/0xe0 kernel/fork.c:2807 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1449 [inline] free_pcp_prepare+0x5e4/0xd20 mm/page_alloc.c:1499 free_unref_page_prepare mm/page_alloc.c:3380 [inline] free_unref_page+0x19/0x4d0 mm/page_alloc.c:3476 kasan_depopulate_vmalloc_pte+0x5c/0x70 mm/kasan/shadow.c:372 apply_to_pte_range mm/memory.c:2633 [inline] apply_to_pmd_range mm/memory.c:2677 [inline] apply_to_pud_range mm/memory.c:2713 [inline] apply_to_p4d_range mm/memory.c:2749 [inline] __apply_to_page_range+0x501/0xbc0 mm/memory.c:2783 kasan_release_vmalloc+0xa7/0xc0 mm/kasan/shadow.c:486 __purge_vmap_area_lazy+0x6de/0x2270 mm/vmalloc.c:1753 drain_vmap_area_work+0x49/0xc0 mm/vmalloc.c:1782 process_one_work+0x865/0x13d0 kernel/workqueue.c:2289 worker_thread+0x598/0xec0 kernel/workqueue.c:2436 kthread+0x294/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Memory state around the buggy address: ffffc90002b0fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90002b0fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90002b0fd00: f1 f1 f1 f1 00 f2 f2 f2 00 00 f2 f2 00 00 00 00 ^ ffffc90002b0fd80: 00 f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 00 ffffc90002b0fe00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================