Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3514110ybi; Mon, 10 Jun 2019 11:31:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwb+6hteGkcvzTgJ7LP0B9M5AQzw6uqRtgJVSNMKs3HxcT6isVfMUB/GE/6VN/bwLrcmii5 X-Received: by 2002:a65:484d:: with SMTP id i13mr16417813pgs.27.1560191485706; Mon, 10 Jun 2019 11:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560191485; cv=none; d=google.com; s=arc-20160816; b=gmJxcX83DapDE1g+rzJIRGVlD4Uqvio7eMy8piNllGD92eKpycB8S1zB1JDiilwAnQ jvni0nQEEvqiaivhwA9ADQHZQhfS8wEja0VQMRjTZBpjYWcEvOLQIyo+1LDVbD7519Cz 9fSFMUaxupVMnA/s/s4oaQG2/bNR/OUvihfzyy7eAQ2kby1VqAPcdH5EiOpAIk2gcguf dGaplHU0nUdna3z1Mu9wzv5pcDHRvPCQmnKNL4PE+bsn4Hrhl/s/7tEWV7lmGU+E9ZTA KZz1AkYEYXtxgBAjWmlQEWs+H1QQi7wAY2OihG2fvM90mTLFMkvtoIjztI7O7esHuhp7 BdYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DlBscIHlEkZ1HnRfHIDi2NugoJONKC3sDj2YJUz1BZ4=; b=gEI3AhAs+UEbmRtI5EvPUHmYKxTSj3ieBQYKh0Ns9N34hjvy18Cr/Yj6P1vXyjUAQq azVEG68zdRlHBS79Pfo+QH+8VrZ/IUp8p41BsEDOx/HVqTcysPe6eR6l/DE/hACQ6JJT yDHZpvUkFhqL2/VhCV4A7xRq2tyKeD3Kt4ti6j3yenx2Sl6/HTBNlkZHiz3CV49RPVpX Ufc+SySg5oHyTuwFyGcGKp0D2JDGiKS15Y5dZskf+2fXfgAdtAvmfXdQZmOxvpAg9Erl rZ3UBv1TpYdx4Tt5XCXmFmkz142ef4fqoaI1YqKYY0nT6tSYaLSQVOQxWNUYx9h+B2gH /wmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jV6eylv2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si11062467plb.337.2019.06.10.11.31.10; Mon, 10 Jun 2019 11:31:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jV6eylv2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388109AbfFJSaf (ORCPT + 99 others); Mon, 10 Jun 2019 14:30:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:34906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387425AbfFJSae (ORCPT ); Mon, 10 Jun 2019 14:30:34 -0400 Received: from gmail.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0570D2082E; Mon, 10 Jun 2019 18:30:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560191434; bh=ohK4n4b1EpBzFuYCAPxK1UhSnRZ6JiT2DsSBhq0Kuec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jV6eylv2gneDFF28UAnW0Bl5g/y+cDC7sNrwqd9k01Zh3l57SQM9oA2oeMbq3B4Ue qmByOcsZd7IJiV9Tp4/RTv2yrB7z7NnJwLFAswEvrKqfhD/3AwnWkJx/09oR1eEwkY 7NJ1Its8t1y+v+W2XHpMTyIIQRQ52ngBiyqb4Kdg= Date: Mon, 10 Jun 2019 11:30:32 -0700 From: Eric Biggers To: David Howells , Al Viro Cc: Mark Rutland , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: "Dentry still in use" splats in v5.2-rc3 Message-ID: <20190610183031.GE63833@gmail.com> References: <20190605135401.GB30925@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190605135401.GB30925@lakrids.cambridge.arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 05, 2019 at 02:54:01PM +0100, Mark Rutland wrote: > Hi All, > > While fuzzing arm64 v5.2-rc3, Syzkaller started hitting splats of the > form: > > BUG: Dentry (____ptrval____){i=1,n=/} still in use (2) [unmount of bpf bpf] > > ... which I can reliably reproduce with the following C program > (partially minimized from what Syzkaller auto-generated). > > It looks like any filesystem will do. I've seen splats with "bpf", > "hugetlbfs", "rpc_pipefs", and "tmpfs", and can reproduce the problem > with any of these. > > Any ideas? > > I'm using the config from my fuzzing/5.2-rc3 branch on kernel.org [1]. > > Thanks, > Mark. > > ---- > #include > #include > > /* > * NOTE: these are the arm64 numbers > */ > #ifndef __NR_fsconfig > #define __NR_fsconfig 431 > #endif > #ifndef __NR_fsmount > #define __NR_fsmount 432 > #endif > #ifndef __NR_fsopen > #define __NR_fsopen 430 > #endif > > int main(void) > { > int fs, mnt; > > fs = syscall(__NR_fsopen, "bpf", 0); > syscall(__NR_fsconfig, fs, 6, 0, 0, 0); > mnt = syscall(__NR_fsmount, fs, 0, 0); > fchdir(mnt); > > close(fs); > close(mnt); > } > David and Al, is sys_fsmount() missing a call to mntget()? - Eric