Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8362567rwb; Wed, 23 Nov 2022 20:57:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7e2L0oqKp0R7JCMqLAEEovTHn0wnVvnU0m9jm1pJxL4/znMG4FUz9qPxfzCP/M6E463uip X-Received: by 2002:a17:906:6c86:b0:78d:4ba6:f65a with SMTP id s6-20020a1709066c8600b0078d4ba6f65amr26720077ejr.186.1669265856031; Wed, 23 Nov 2022 20:57:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669265856; cv=none; d=google.com; s=arc-20160816; b=J1qbDa54xbLZMIUkzNRYFNG3o1WA9RNYHE4oqOAv4C2MKsy5gawUYM3xvW5LvJ0Wyh KZPh1G6rmrPvcKd5NLyjEY+JwMXwXbFPj/U9ev4a2RyhuADwxSxEG2QO3THeHS6LM4A4 6Dy8HzaLHYmufFFuIUyzqgONHTAjXoHB6rPka8DnBpeXb+lhk2M5cMi07s7quMcCnIu6 GKs3/cMmYvpDQOeoMEAZQjz2yrlZQRatPBENH+6GpkwcbUmGGShtnCjdth7IUqxmF+IH wugDKanZN7xpJrB+VyfesGnbvTKAJRV7YmOR7DuPRrDUjCMXo+HcPvDu3YRSledyk6DP rC+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=ZLpWs4bB+dTvlttaOpG/dYbHkM/jQ6IX2jBeOEssUPU=; b=Z+3yWt8oEnwqLIObKP2dckU/CExOhlJqvbxpEIqijUU7qLczcPbp71cpMgo+DdpLwq b2Dv/M+yNRvr48twhjVvAUkpRx9kKNSe79jd4/AmPZK+EJjzZs/9v7Wd2l6MpZUbdH0C nxv5c4GMcYv/zx4fFBWg8pc9M4m0ZFd38cbVhMTufxO1EKZ+CJjeVLp7XEdqvZjnHoRx YceIXZFpy8FRh9z8NzGh97X8fmOrQxtBNiZC2BGroaLNiOFOxkf0wDPSoBNFA8+xWL8K ZSMQ73JUUHN/vzQjtEtZ0Mt6i7wKffkxnDh98HdJDINSd0e3MKGYHZDFKVHMZwkXjEcA gchQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020aa7c443000000b0045d9ceae669si112808edr.404.2022.11.23.20.57.14; Wed, 23 Nov 2022 20:57:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229490AbiKXEvt (ORCPT + 89 others); Wed, 23 Nov 2022 23:51:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiKXEvm (ORCPT ); Wed, 23 Nov 2022 23:51:42 -0500 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BA39C72FB for ; Wed, 23 Nov 2022 20:51:41 -0800 (PST) Received: by mail-io1-f70.google.com with SMTP id w27-20020a05660205db00b006dbce8dc263so382157iox.16 for ; Wed, 23 Nov 2022 20:51:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZLpWs4bB+dTvlttaOpG/dYbHkM/jQ6IX2jBeOEssUPU=; b=XNT5w2jsbfa5A4jNA8GNqP/qBAIaV8w5KoMjGAPdt+qy/Jy8B39GCtt1qq3vdjr07W BeSoux/9DHdJDbZ79bYQEOzuNoyC6Q/5XRNbt982/oUXGYTWwJpDqGRMRIjDEmP/RJ7F AweHpKjhsoWobIfmYvEqdMVwKQbP1uHGOl4UTiHHjw/qA7T5rdT1deoFqq0DvXeVoqDU IGliMWje4fpCa7ikJB/AwGrs/Oryn3sa0iQlVcnansNZ7t2drFnrti00izfYdBnqVElp wQAgJ/jbOpc/OcP0iNT5XHOX9W0qvX0Y5eXIilipoyWeH1mEg2NnohaLbthVejPQo9Vb kLRw== X-Gm-Message-State: ANoB5plZjufeUANa+V16tk6yuh6lJiUk1T2Y56xYAfhj+P1D34coDEI6 125ShjpKtnXSOP9Ehvkx8O77ln9DFsyycDnOXQ3cgMr66Cnk MIME-Version: 1.0 X-Received: by 2002:a92:2c03:0:b0:302:a769:f7b6 with SMTP id t3-20020a922c03000000b00302a769f7b6mr5191746ile.120.1669265500935; Wed, 23 Nov 2022 20:51:40 -0800 (PST) Date: Wed, 23 Nov 2022 20:51:40 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000381c1405ee3029c0@google.com> Subject: [syzbot] general protection fault in ovl_dentry_upper From: syzbot To: linux-kernel@vger.kernel.org, linux-unionfs@vger.kernel.org, miklos@szeredi.hu, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: fe24a97cf254 Merge tag 'input-for-v6.1-rc5' of git://git.k.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15a02765880000 kernel config: https://syzkaller.appspot.com/x/.config?x=6f9416d398342c83 dashboard link: https://syzkaller.appspot.com/bug?extid=a4055c78774bbf3498bb compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10a320fd880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10e6b6ed880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/d4424ef25058/disk-fe24a97c.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/61c4ed6a96dd/vmlinux-fe24a97c.xz kernel image: https://storage.googleapis.com/syzbot-assets/d1b8ff061e4e/bzImage-fe24a97c.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+a4055c78774bbf3498bb@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc0000000092: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000490-0x0000000000000497] CPU: 0 PID: 16299 Comm: syz-executor309 Not tainted 6.1.0-rc5-syzkaller-00307-gfe24a97cf254 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:ovl_upperdentry_dereference fs/overlayfs/ovl_entry.h:150 [inline] RIP: 0010:ovl_dentry_upper+0x40/0x60 fs/overlayfs/util.c:213 Code: fe 49 83 c6 68 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 7f 28 e9 fe bb 90 04 00 00 49 03 1e 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 61 28 e9 fe 48 8b 03 5b 41 5e 41 RSP: 0018:ffffc9000ef3fa50 EFLAGS: 00010202 RAX: 0000000000000092 RBX: 0000000000000490 RCX: ffff888020328000 RDX: 0000000000000000 RSI: 0000000000000040 RDI: ffff888075528758 RBP: dffffc0000000000 R08: ffffffff81f2119e R09: ffffed100eaa50fa R10: ffffed100eaa50fa R11: 1ffff1100eaa50f9 R12: 0000000000000040 R13: ffffc9000ef3fc20 R14: ffff8880755287c0 R15: dffffc0000000000 FS: 00007f7e44d61700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7e44df1800 CR3: 000000007c404000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ovl_dentry_revalidate_common fs/overlayfs/super.c:146 [inline] ovl_dentry_revalidate+0x4b/0x380 fs/overlayfs/super.c:159 d_revalidate fs/namei.c:856 [inline] lookup_fast+0x26c/0x480 fs/namei.c:1634 walk_component+0x55/0x410 fs/namei.c:1989 lookup_last fs/namei.c:2450 [inline] path_lookupat+0x17d/0x450 fs/namei.c:2474 filename_lookup+0x274/0x650 fs/namei.c:2503 user_path_at_empty+0x40/0x1a0 fs/namei.c:2876 user_path_at include/linux/namei.h:57 [inline] __do_sys_name_to_handle_at fs/fhandle.c:107 [inline] __se_sys_name_to_handle_at+0xf8/0x610 fs/fhandle.c:93 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f7e44db0159 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 00 00 90 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:00007f7e44d612f8 EFLAGS: 00000246 ORIG_RAX: 000000000000012f RAX: ffffffffffffffda RBX: 0000000000000034 RCX: 00007f7e44db0159 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000003 RBP: 00007f7e44e394a8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7e44e394a0 R13: 00007f7e44e394ac R14: 00007f7e44e06074 R15: 0030656c69662f2e Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ovl_upperdentry_dereference fs/overlayfs/ovl_entry.h:150 [inline] RIP: 0010:ovl_dentry_upper+0x40/0x60 fs/overlayfs/util.c:213 Code: fe 49 83 c6 68 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 7f 28 e9 fe bb 90 04 00 00 49 03 1e 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 61 28 e9 fe 48 8b 03 5b 41 5e 41 RSP: 0018:ffffc9000ef3fa50 EFLAGS: 00010202 RAX: 0000000000000092 RBX: 0000000000000490 RCX: ffff888020328000 RDX: 0000000000000000 RSI: 0000000000000040 RDI: ffff888075528758 RBP: dffffc0000000000 R08: ffffffff81f2119e R09: ffffed100eaa50fa R10: ffffed100eaa50fa R11: 1ffff1100eaa50f9 R12: 0000000000000040 R13: ffffc9000ef3fc20 R14: ffff8880755287c0 R15: dffffc0000000000 FS: 00007f7e44d61700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000564e6292d008 CR3: 000000007c404000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 49 83 c6 68 add $0x68,%r14 4: 4c 89 f0 mov %r14,%rax 7: 48 c1 e8 03 shr $0x3,%rax b: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 10: 74 08 je 0x1a 12: 4c 89 f7 mov %r14,%rdi 15: e8 7f 28 e9 fe callq 0xfee92899 1a: bb 90 04 00 00 mov $0x490,%ebx 1f: 49 03 1e add (%r14),%rbx 22: 48 89 d8 mov %rbx,%rax 25: 48 c1 e8 03 shr $0x3,%rax * 29: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 61 28 e9 fe callq 0xfee92899 38: 48 8b 03 mov (%rbx),%rax 3b: 5b pop %rbx 3c: 41 5e pop %r14 3e: 41 rex.B --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches