Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp589109ima; Wed, 24 Oct 2018 06:17:15 -0700 (PDT) X-Google-Smtp-Source: AJdET5djNr5CQL5ZVh3ACjZfCXv2sl8v3ohQQj6nFxS8VAxaBOpzZHbBtQ7XYVGQpZJDEiMBG1i/ X-Received: by 2002:a65:4683:: with SMTP id h3mr2398412pgr.225.1540387035541; Wed, 24 Oct 2018 06:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540387035; cv=none; d=google.com; s=arc-20160816; b=j+Uv5PWhszWfh1j5uXeOOGCmrJmeTkItAdNu335W1eJMCrbK6JOgZWZ4XZrog1hpoY Y7oQ3JSF+X2UjMPbvvOJOJtJX1h/JH6QtDUkHmS9iYI123yLLVp8YPfhHRlELA6s5qvE e7POpYkPJNz5SPVqTRQX/PAYS9tbTFgh4ZwafCc7kFbs8npsbm9bkpRdPgV6t18M/6LL kHDEcDbUBWXwbOjgF1Mw+mkx3U+U3rXfoWXaa/zXzxjoptqbxrAkr93mWt7S2x8GtdWz WwxTioJ6PLQHHpK/ljcYaFkP5/S7feOYZ5Q+KX2bWwt1oadil82YfRzezBEx+oQLbMMW q1KA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=bBxSB3Vz4tdzpwUC7MA6Ml58QKYOxyWCVP1GvRwfYsc=; b=Zf46gsLyTWZtrtIBltpsYEs/ov3DYFWwKWkoqPX9CzZFvF3o9bVteyyk6Hv7IfeuEe j6N/nOBtMp0hNWcywjO+zVdW033rZ2WtGClGBIwCqOhXjG4C31YKwgzrQLBb+nq0eY7L nnbcRIECZKTvdVCotZnC/u8+UmEtR6p4mi2VdITw5k3cEZhhZXnwpxE0+DUO5bHcbTsR JoH/O2Ipm63Ivnp4GWIW+Jm701WeX7XMC0NY2ytBXDh0QYhu5+Crc11hKCHMTLLbDEyu 6ycmUtoeZxcXZCJkrVH4J7yF8N9stTg2NS1exC4ep+uM9xQbq0felHhicEw5Oaq8wvHI QcqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b="dau/jQwL"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21-v6si4369400plr.70.2018.10.24.06.16.54; Wed, 24 Oct 2018 06:17:15 -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=fail header.i=@thunk.org header.s=ef5046eb header.b="dau/jQwL"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbeJXVoQ (ORCPT + 99 others); Wed, 24 Oct 2018 17:44:16 -0400 Received: from imap.thunk.org ([74.207.234.97]:52676 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726285AbeJXVoQ (ORCPT ); Wed, 24 Oct 2018 17:44:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=bBxSB3Vz4tdzpwUC7MA6Ml58QKYOxyWCVP1GvRwfYsc=; b=dau/jQwLkN6wuQgTUvkpNkl8Og zH5tTWa8mClAXqMJdAJJeADvHDnFBQw1RRfmGh4tpKOwx4aqp4Eo4w9EbKraOjKGREhFyZtb6D/90 j025dQxVqvnT5sAB0GqyL4C6QbwTUuk5nP9qrvpDZsxRpNz/YcxDM6WQpusoPdjdtpdg=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1gFJ0e-0007sP-Sx; Wed, 24 Oct 2018 13:15:40 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id D180F7A56C1; Wed, 24 Oct 2018 09:15:34 -0400 (EDT) Date: Wed, 24 Oct 2018 09:15:34 -0400 From: "Theodore Y. Ts'o" To: NeilBrown Cc: Andy Lutomirski , Andreas Dilger , Peter Zijlstra , Dmitry Safonov , "H. Peter Anvin" , Denys Vlasenko , Linus Torvalds , Borislav Petkov , Ingo Molnar , Brian Gerst , LKML , Thomas Gleixner , linux-tip-commits@vger.kernel.org, jsimmons@infradead.org Subject: Re: in_compat_syscall() returns from kernel thread for X86_32. Message-ID: <20181024131534.GD11606@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , NeilBrown , Andy Lutomirski , Andreas Dilger , Peter Zijlstra , Dmitry Safonov , "H. Peter Anvin" , Denys Vlasenko , Linus Torvalds , Borislav Petkov , Ingo Molnar , Brian Gerst , LKML , Thomas Gleixner , linux-tip-commits@vger.kernel.org, jsimmons@infradead.org References: <1460987025-30360-1-git-send-email-dsafonov@virtuozzo.com> <87h8hkc9fd.fsf@notabene.neil.brown.name> <871s8ndg6a.fsf@notabene.neil.brown.name> <871s8g6roy.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871s8g6roy.fsf@notabene.neil.brown.name> User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 24, 2018 at 12:47:57PM +1100, NeilBrown wrote: > > I doubt it was copied - more likely independent evolution. > But on reflection, I see that it is probably reasonable that it > shouldn't be used this way - or at all in this context. > I'll try to understand what the issues really are and see if I can > find a solution that doesn't depend on this interface. > Thanks for your help. At least for ext4, the primary problem is that we want to use a 64-bit telldir/seekdir cookie if all 64-bits will make it to user space, and a 32-bit telldir cookie if only 32 bits will make it userspace. This impacts NFS as well because if there are people who are still using NFSv2, which has 32-bit directory offsets, we need to constrain the telldir/seekdir cookies we give to NFS to be a 32 has as opposed to a 64-bit hash. - Ted