Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp697305pxf; Thu, 1 Apr 2021 11:09:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKrDHXVT/UjrKGvJFbjjTfmHSJP7DJQirRdJJGLP3tN6jkWWvVcZ39S0chjy8+8U1VCq9z X-Received: by 2002:a05:6402:3c7:: with SMTP id t7mr11411969edw.196.1617300570471; Thu, 01 Apr 2021 11:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617300570; cv=none; d=google.com; s=arc-20160816; b=okDS6ifzN3SyYG88dJ2iz/tGgkf1wBTkrWMdHEBHAc+jkciWgv0tcT67HUtIMGJ67L rnVvs08zTV/Y2MOS6GNawxBvgEwbkaqaiIeyL9Am2GWO3ioHEuKkEoWcL1RwuZe4jSRw QocFGaC0UA1y9BQdAa1HezlOOeODbeQRE6FEurg3vKKiYfGFrhv8kPsdOgmKlNqoRmRm fYdfVNqUvW2jkrvFhd1l9vrLXJ1GpTjNNkUMV/Q27+BUStbhzMDnmTUK9UJEltxsl8jB xiP0+z+qdo0G9R419Nby3CDIewJutMwkDJVNaee3nCBzhCLswpuOYmRkF+Gp9wuiQwS6 ySJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=48dyaiUyVqMwLE0OwYdfA5ySCjDx5Xf12eY4xzzdxXs=; b=h3uA+trebK8reAT5XFwr62w/p7p12h9V9/puW9C7/AsX4Lvu8JXXbuRU/jvJQkPQSE 1QcF5/h6UUsJkkkRTOBse17iElYERpb059Dz5Tw8nugnbxVvrQZ0AxmrfpAItz3WUArU KgRPEBW0eRVJEFjrocCCCzUTbaKlZRDDVK1sQNPtI6KfhchRzWT8fgU9To4QdEHhwa2b 0J/bEfjtDzRh5lgrlIjAawpWOl771xRMf8RA34Zk4VnJbN2NoLWeHQer2vatn0XMzF8u +ZYYVzVli+rWOXuk68kE38ThqAzrRKup/8DXdazu5hNqu0eZMpBym8PEwuOWJ0RUYAW/ HS9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="Q/SR523A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lv19si5261516ejb.553.2021.04.01.11.09.07; Thu, 01 Apr 2021 11:09:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b="Q/SR523A"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237915AbhDASE5 (ORCPT + 99 others); Thu, 1 Apr 2021 14:04:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235783AbhDARtN (ORCPT ); Thu, 1 Apr 2021 13:49:13 -0400 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48FCEC02FEA1 for ; Thu, 1 Apr 2021 09:09:20 -0700 (PDT) Received: by mail-io1-xd34.google.com with SMTP id k25so2724863iob.6 for ; Thu, 01 Apr 2021 09:09:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=48dyaiUyVqMwLE0OwYdfA5ySCjDx5Xf12eY4xzzdxXs=; b=Q/SR523Ar1LWM4oiRWdcYVGDmBiu+zeFT7gA4UE9r2y+wh90OYXx0JJGDPcwMu5adH uaxbD0Pu9f5900tZeP3hEe5v2db7lKqxdaDTGAE/r7ppii0REDgnpsq6WNA0PbdjmASs de+PdzOIIxIaRBSOh6zS9hLprKOaCN962rHWHBbcMLKOPqJaWZnw7i9AAS1x73820wX4 8sdjPlS3OXDG74thkV/VB4/we1prlMFDH0VAhEh7RXO01Mzf/ywd8gl8j+WVw6mGPw+B rI1wrqE5kG1B24gee8UOlunMIzDWGoXzeN2be49I1Kr/MgV80/4Up2UOB+FRq0EsQwSm ieQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=48dyaiUyVqMwLE0OwYdfA5ySCjDx5Xf12eY4xzzdxXs=; b=e4o2vHlhDn/DLg64SWfFg47bGU9FjZBE6imvMohbMIBJA5iFvB0vUurP+1ZiElLj+g 1GqsLwRCMvvZPblNej81dXfxwUukTv2Bp8SV29Bf2tkd8C8FwNGcXLZVbMNan7fBiXEE V21WXRRw6Hl79+EFj/jy3c52WuZpjGFsQLrL6O1ce3KkZjRaGuW74WX9BUvu95NMpTzR dnx6gYsGcR9xx/Pwl2pN9lp+7MgSjugaRZYYF9AYTAmpNY06W98a30rDdz1vZ0n8c/C9 kkGgTJIBy/dIJLmdN+gecxILkhOcLVtSbL0jixX63DM117vANcVklip0evLZWjrNQLxj c9AQ== X-Gm-Message-State: AOAM531I7d1bYRqK9dLJn7vfnuTgmwgK0JH6W3eLxfI1Fh+03+GJgZ0z nCY1LXCwqrTtpUc4beRi/0CzGQ== X-Received: by 2002:a5e:c102:: with SMTP id v2mr7178492iol.137.1617293359632; Thu, 01 Apr 2021 09:09:19 -0700 (PDT) Received: from [192.168.1.30] ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id b4sm2637045ilj.11.2021.04.01.09.09.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Apr 2021 09:09:19 -0700 (PDT) Subject: Re: [syzbot] WARNING in mntput_no_expire (2) To: Christian Brauner , syzbot Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk, io-uring@vger.kernel.org References: <0000000000003a565e05bee596f2@google.com> <20210401154515.k24qdd2lzhtneu47@wittgenstein> From: Jens Axboe Message-ID: <90e7e339-eaec-adb2-cfed-6dc058a117a3@kernel.dk> Date: Thu, 1 Apr 2021 10:09:18 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210401154515.k24qdd2lzhtneu47@wittgenstein> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/1/21 9:45 AM, Christian Brauner wrote: > On Thu, Apr 01, 2021 at 02:09:20AM -0700, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit: d19cc4bf Merge tag 'trace-v5.12-rc5' of git://git.kernel.o.. >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=1018f281d00000 >> kernel config: https://syzkaller.appspot.com/x/.config?x=d1a3d65a48dbd1bc >> dashboard link: https://syzkaller.appspot.com/bug?extid=c88a7030da47945a3cc3 >> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12f50d11d00000 >> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=137694a1d00000 >> >> IMPORTANT: if you fix the issue, please add the following tag to the commit: >> Reported-by: syzbot+c88a7030da47945a3cc3@syzkaller.appspotmail.com >> >> ------------[ cut here ]------------ >> WARNING: CPU: 1 PID: 8409 at fs/namespace.c:1186 mntput_no_expire+0xaca/0xcb0 fs/namespace.c:1186 >> Modules linked in: >> CPU: 1 PID: 8409 Comm: syz-executor035 Not tainted 5.12.0-rc5-syzkaller #0 >> Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 >> RIP: 0010:mntput_no_expire+0xaca/0xcb0 fs/namespace.c:1186 >> Code: ff 48 c7 c2 e0 cb 78 89 be c2 02 00 00 48 c7 c7 a0 cb 78 89 c6 05 e5 6d e5 0b 01 e8 ff e1 f6 06 e9 3f fd ff ff e8 c6 a5 a8 ff <0f> 0b e9 fc fc ff ff e8 ba a5 a8 ff e8 55 dc 94 ff 31 ff 89 c5 89 >> RSP: 0018:ffffc9000165fc78 EFLAGS: 00010293 >> RAX: 0000000000000000 RBX: 1ffff920002cbf95 RCX: 0000000000000000 >> RDX: ffff88802072d4c0 RSI: ffffffff81cb4b8a RDI: 0000000000000003 >> RBP: ffff888011656900 R08: 0000000000000000 R09: ffffffff8fa978af >> R10: ffffffff81cb4884 R11: 0000000000000000 R12: 0000000000000008 >> R13: ffffc9000165fcc8 R14: dffffc0000000000 R15: 00000000ffffffff >> FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 >> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> CR2: 000055a722053160 CR3: 000000000bc8e000 CR4: 00000000001506e0 >> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 >> DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 >> Call Trace: >> mntput fs/namespace.c:1232 [inline] >> cleanup_mnt+0x523/0x530 fs/namespace.c:1132 >> task_work_run+0xdd/0x1a0 kernel/task_work.c:140 >> exit_task_work include/linux/task_work.h:30 [inline] >> do_exit+0xbfc/0x2a60 kernel/exit.c:825 >> do_group_exit+0x125/0x310 kernel/exit.c:922 >> __do_sys_exit_group kernel/exit.c:933 [inline] >> __se_sys_exit_group kernel/exit.c:931 [inline] >> __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:931 >> do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 >> entry_SYSCALL_64_after_hwframe+0x44/0xae >> RIP: 0033:0x446af9 >> Code: Unable to access opcode bytes at RIP 0x446acf. >> RSP: 002b:00000000005dfe48 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 >> RAX: ffffffffffffffda RBX: 00000000004ce450 RCX: 0000000000446af9 >> RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 >> RBP: 0000000000000001 R08: ffffffffffffffbc R09: 0000000000000000 >> R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004ce450 >> R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 > > [+Cc Jens + io_uring] > > Hm, this reproducer uses io_uring and it's the io_uring_enter() that > triggers this reliably. With this reproducer I've managed to reproduce > the issue on v5.12-rc4, and v5.12-rc3, v5.12-rc2 and v5.12-rc1. > It's not reproducible at > 9820b4dca0f9c6b7ab8b4307286cdace171b724d > which is the commit immediately before the first v5.12 io_uring merge. > It's first reproducible with the first io_uring merge for v5.12, i.e. > 5bbb336ba75d95611a7b9456355b48705016bdb1 Thanks, that's good info. I'll take a look at it and see if I can reproduce. -- Jens Axboe