Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4456869ybi; Mon, 3 Jun 2019 11:10:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMLHgjR95Z5UqScAdspN71HfK46UR55JHtQT9r9fQn6IUNc7ZOpHGBikyihESKA+0J9M2R X-Received: by 2002:a63:fc61:: with SMTP id r33mr30209253pgk.294.1559585407605; Mon, 03 Jun 2019 11:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559585407; cv=none; d=google.com; s=arc-20160816; b=OnjNuZ/eOjxxVYAz4kwCuFUBwKD4UFCXCelds16T89jdRhcdxOJR5OcqCDN6B0BFD9 IZZOfdY1Q7TwMNUjr1DTLeGmf9JWg0dzS7VwFkPrlxwpMyeINEa9mAu6KspD1eJXm9hj tyC95oAV02krWja/QO/z1Jw0yV2fp/bPXuI56C1Rtc8TsnkayBaPpLigejZaAf8CMIWm PQj23SDltgkSIFT92ZIvjRIcdW8SFDmmy+M3s4DPrqEaznxMhJR3yJZyxoWdXYro4peu YriNrgkHc4/EmBU3cMWFcZwn/LYgT6V9cRrbBpg0w67HUlejV0/QY8AaSlUTqWYY8gMh xtiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=2MwbLnfgH8HLFZ7YZiwwnwA2Cf4KCn8Tc6YtdsgHXPA=; b=0REQBLf+ntt58UkkKDXkPgNswgApzQOwm7kMJEXN32CIaF7o0sGan8F5OuKgTUruIM rIYGn5X0ExoXzUhlvP7/WZjTr8MCipBKAyzD2DCTewNXGA6/i4U/KuoUd2517wC8WqDk m7OUvKUHaaMKhfgaB2Y8hdKV6F3tExwYM3JWUqI1RJ/JgIJSMRSkz3NhaeJhGXGmqWci rlBlBXjzD7590Nuqw2q8GRobhD3Yhw0Zb6zRaO8atfuIukTxBWyWHAzJL58cbNVQ1N+t anmacClAmxagr94Ug0yTcgjKKGwtQOXyJYuhzTrkPNyWCkE/XEdHY6gQh4kE+guQ5Jn1 PegQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@draconx-ca.20150623.gappssmtp.com header.s=20150623 header.b=qKZGGQt+; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 132si19465099pfu.263.2019.06.03.11.09.48; Mon, 03 Jun 2019 11:10:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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=@draconx-ca.20150623.gappssmtp.com header.s=20150623 header.b=qKZGGQt+; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726190AbfFCSJn (ORCPT + 99 others); Mon, 3 Jun 2019 14:09:43 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41010 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbfFCSJn (ORCPT ); Mon, 3 Jun 2019 14:09:43 -0400 Received: by mail-lf1-f66.google.com with SMTP id 136so2802558lfa.8 for ; Mon, 03 Jun 2019 11:09:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=draconx-ca.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2MwbLnfgH8HLFZ7YZiwwnwA2Cf4KCn8Tc6YtdsgHXPA=; b=qKZGGQt+lNAAZIuXDYax/S2sBVt0az6QjzM/EiDq+8Qe3QVehyXxTWrSyF3/mWwK0m yuY8Pk0HjXkGLLKrOZL5Iqz9w9MVBwoXIcT2NXQb7jDPnX0uOa8/Z82rnFNCc55B8l0R marr2RegBOgKTNSSHE/KOG+4rhNiFJO+kMeZ9zdOTJHcz1vN0zW1G+XczdJNQhxzrWbX JOvuk6VoBrpZ23mM24J/Us2I/eTkydIPNYyepROkz092O2EyBz9uYhr5O9vVQzFEqNLs g2i0m/ChfmKIya4xs/Lfcki67BSbhu+3HmAm7DRIM7zToKqBeKG/KTmsYiCvgQihNrlw 42WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2MwbLnfgH8HLFZ7YZiwwnwA2Cf4KCn8Tc6YtdsgHXPA=; b=S6p337EJWIphFfwc+jyR0ewFGmsYvvzTvTqdPxdY+6R78yjDvKDUyB5KHlspzXi3JG +iCdbPHLkna2K4+ENiU1upDoqqFWlMoXaa0WevzRcdhoGM7Pz8iNBe/T6KzIhsd7sWWO DecdHMz2JOX9xibqorjcQo3Z0n5pXtjRhwnWmKHBUVbjzpmzpX+dHpyFK5njJO91/T4K JFn6zePBE0SiY5LOBx7MPDejLFvd7UkBf0oP3lnwfw5GoHwwqeXgcSi/XrbHW505OaX3 qvzKIzga77IpCUmFVvsAwvFsQ6/TxDCJkWyEvWfhHrj0yDjvoyGszLqxYlqk73tAeRPw WgTQ== X-Gm-Message-State: APjAAAV9wJoF03q8RD9Ggaois4RQRGk1gMOvioRjrJbwiKHp/QbJ2BxD 7JYgFE1m3yPrdNpUSIMIQTuD2ZdBnAIDuOYD1nVuEA== X-Received: by 2002:ac2:44b1:: with SMTP id c17mr14379583lfm.87.1559585381637; Mon, 03 Jun 2019 11:09:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:9d89:0:0:0:0:0 with HTTP; Mon, 3 Jun 2019 11:09:41 -0700 (PDT) X-Originating-IP: [162.243.96.244] In-Reply-To: References: <20190529151003.hzmesyoiopnbcgkb@aura.draconx.ca> From: Nick Bowler Date: Mon, 3 Jun 2019 14:09:41 -0400 Message-ID: Subject: Re: PROBLEM: oops spew with Linux 5.1.5 (NFS regression?) To: Olga Kornievskaia Cc: Trond Myklebust , "linux-nfs@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Olga.Kornievskaia@netapp.com" Content-Type: text/plain; charset="UTF-8" Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On 2019-06-03, Nick Bowler wrote: > On 2019-05-29, Olga Kornievskaia wrote: >> On Wed, May 29, 2019 at 1:14 PM Trond Myklebust >>> OK, I think this is the same problem that Olga was seeing (Cced), and >>> it looks like I missed the use-after-free issue when the server returns >>> a credential error when she asked. >> >> I think this is actually different than what I encountered for the >> umount case but the trigger is the same -- failing validation. >> >> I tried to reproduce Nick's oops on 5.2-rc but haven't been able to >> (but I'm not confident I produced the right trigger conditions. will >> try 5.1). > > OK, I think I found something that triggers this fault. This happens > when certain local users try to stat a file or directory on an nfs > mount. Presumably these UIDs do not have appropriate permissions on > the server but I'm not sure exactly (I do not control the server). > > I can reproduce the oops with a command like this: > > # su -s/bin/sh -c 'stat /path/to/nfs/file' problematic_user > > which oopes every time (and SIGKILLs the stat command). (I have not yet > rebooted since the original report or tried with Trond's patch applied. > I will do that next, and also try 5.1.6). OK, armed with this reproducer I can confirm that the issue is still present in 5.1.6, and that applying Trond's patch on top of 5.1.6 appears to fix the problem. Thanks, Nick