Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3853887pxv; Tue, 13 Jul 2021 05:28:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiBpd+pFhDodNTSbbbXf2rY3yWe/QPg5DA7/kvyU3DXN9VAU5sw9RuaQLGfAcDLEhcBVls X-Received: by 2002:a17:906:6c8f:: with SMTP id s15mr5395078ejr.498.1626179328221; Tue, 13 Jul 2021 05:28:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626179328; cv=none; d=google.com; s=arc-20160816; b=SrAYdOAwSB0FCUas7EwMABg8LYOgaRIYkx4cHpVCc7YMOBnZZtbIiX47yNh4SE4LKR 0EFslaADlJtpSFWqiK8B4EXwthrwgtlS1KhbHqlt7zcyZ+1bY1owrmiyLEVL8FgQbL+k zAVfAGtRbtYmjt7cG011qSfFbYnsrGoBAQqpQ3bzxKQCM19SrlW26oO3rIA3DFRxHlFu acxbv25e1Aj1UuZMgWO58ggA28DxvFwoH2f4gIudPR1Qs2NRKa7fOtNiPfd/y6l7TA3f VnYOY5/Ty6FOb8GebOSszM1k3MW/UMUpXMHjDU1EQfrv/OkasZadslI2LNPMf9FZYMNX lPPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OacGeq25oX7gTagxZjVzlTDfmbhAnDqzHfJ1lJ0V89I=; b=p5Xf+yghMngM9Vfq3wzh2h1rdREvQJeyoFFk60VHl3u5S/oAK7rOGf+eLgeUszHsBm D7XOdAFmJ7jH7HTJ7zlyZfpaAxf+9SI92nhjgpLxdpdKqXbRaN/f/lZSFMkTa2axlcW8 qQBR4MQLVZx6mDXbbEcZFe9BJJt3talyBz4opzf20jW4KJz1NslHk+IMyJ4jxe89dMnN zO6XYdUw9y3GhLr8g/yJZQACxU6lgyaThj7uTvM+qhwd9CVJ5uYLZhcfqzhdKek17g7i XWy1MSWmrZB3zSFiS31jHOHpdK9t1XlSaNZs0szd4muavEv+3UupJOrs5KnBhhFjgAce DMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dneg.com header.s=google header.b=Upovnbup; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-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 kf22si4185797ejc.5.2021.07.13.05.28.15; Tue, 13 Jul 2021 05:28:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@dneg.com header.s=google header.b=Upovnbup; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236068AbhGMMbB (ORCPT + 99 others); Tue, 13 Jul 2021 08:31:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236042AbhGMMbB (ORCPT ); Tue, 13 Jul 2021 08:31:01 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3193BC0613DD for ; Tue, 13 Jul 2021 05:28:11 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id c17so41048828ejk.13 for ; Tue, 13 Jul 2021 05:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dneg.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OacGeq25oX7gTagxZjVzlTDfmbhAnDqzHfJ1lJ0V89I=; b=UpovnbupOtT9ct8oeISdpcypp4s+IA4uxUI3fxAKt05GTbORoKZAGvKyOq+frcwUtQ oaf9V4S4XflW4anEyd38X7UL4V82ZwUnpaXhXmJyLATYKA87gdqnj52U3+ZtfC9NqKDc 2UQ+915DpaMtt/NQ8VV/WP3J8PCcEtiFIviCzdz+Vhf5phuXzKb0GULKRE+OTvoVtBm2 EX98AVHkFvRDdNynfZvUwOT294BHT6qxuDCNSYNSLv9PEJV/mxefmyxN0rmkc40njSLV Ngvl86W8M75uuOob/d8YUNHEz6DjyYxRnkQ7E7CTIVbCsFhhD74CEz3LVmmFTPDhPdBS YtaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OacGeq25oX7gTagxZjVzlTDfmbhAnDqzHfJ1lJ0V89I=; b=ovYvNeYTUONLwFx//B2s2tSrFNstW2PRQ7zw7O6S9TNK1cGL5Pmx5sD3dO6i0zWyF2 nkgXgf96iUOQ+rG6vue7kgSc4iWYWqVoRRA4ZUplyqxfybHwmilK/eODfvDFzn2fwMYH dmK0aooIKICj9a/sxThmzTOnkjf6bmUJb4WYd4xynHt1HOXsq/0iFfjfwDq1zcHmdKBZ WsEJfp1qJvrbXYG0i6ky/wlGZRJYiM8siYOx+5YpH7gTKYii1v46+LGXmIBGNv3kEF5w F7f2tUO9f9f+R0gm0xipSSBmEWcx7g3nmSxXYOtDl5KT+Fa/Fg4/l882gMzqt+GTEos2 MHwQ== X-Gm-Message-State: AOAM5324NrgksIB993fG8dshomQwj3yb9L2mAKxaZUwdekfX1DLzb0Dw DZw8SpUYX1sCVBIDUT47T3QGUFu74O5fpNPFNCiqQg== X-Received: by 2002:a17:906:c49:: with SMTP id t9mr5211421ejf.405.1626179289792; Tue, 13 Jul 2021 05:28:09 -0700 (PDT) MIME-Version: 1.0 References: <162458475606.28671.1835069742861755259@noble.neil.brown.name> <162510089174.7211.449831430943803791@noble.neil.brown.name> <162513954601.3001.5763461156445846045@noble.neil.brown.name> <162535340922.16506.4184249866230493262@noble.neil.brown.name> <162562036711.12832.7541413783945987660@noble.neil.brown.name> <162569314954.31036.11087071768390664533@noble.neil.brown.name> <162569993532.31036.942509527308749032@noble.neil.brown.name> In-Reply-To: <162569993532.31036.942509527308749032@noble.neil.brown.name> From: Daire Byrne Date: Tue, 13 Jul 2021 13:27:33 +0100 Message-ID: Subject: Re: [PATCH/rfc v2] NFS: introduce NFS namespaces. To: NeilBrown Cc: Trond Myklebust , Anna Schumaker , linux-nfs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, 8 Jul 2021 at 00:19, NeilBrown wrote: > sorry - my bad.. > > I think I've found it. Rather than sending the whole patch, here is the > incremental fix. But not clearing this pointer, I risk the value in it > being freed twice. That might lead to what you saw. > > Thanks, > NeilBrown > > > > diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c > index 7c644a31d304..9e34af223ce6 100644 > --- a/fs/nfs/fs_context.c > +++ b/fs/nfs/fs_context.c > @@ -1451,6 +1451,7 @@ static int nfs_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc) > ctx->nfs_server.export_path = NULL; > ctx->nfs_server.hostname = NULL; > ctx->fscache_uniq = NULL; > + ctx->namespace = NULL; > ctx->clone_data.fattr = NULL; > fc->fs_private = ctx; > return 0; > Yep, I think that has done the trick. I haven't crashed it with the same workload yet.... I can do some more thorough testing now. Thanks! Daire