Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3336840yba; Tue, 16 Apr 2019 09:18:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhhPc2sBBJAbh2+i/BxwYhI18gtgd9f5fO9HoAIdPFerNqSipZl0q8osZoiJ0C4TRXwOsM X-Received: by 2002:a62:e215:: with SMTP id a21mr82212407pfi.30.1555431512606; Tue, 16 Apr 2019 09:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555431512; cv=none; d=google.com; s=arc-20160816; b=q9NDANVof1z+5znX/08rpPXNrdehMOj6EtWez7H2ATOAOfFiynp99d4fvPFzd7L4Dy O/ydVAYOZsFarS2+cz76TPjTMtZ3xuHYXLhOfTGv0aXsJ7Ug4Kb1ogUFxMfX0bhWvTSY hS1U21r9U8E2zDjE2oD6qnojku+eujc0k5HhKSW03Ogtv49++g+SwuIG/+67S6K18doP jXCN1++auDjaMlkIEPwy4Kyc2mwPI07cWE66kvgUmhBFCuduBOCKrA4YxluUKjRKJuQN 7yEZjISB1J55EVRdOI/E8ODbe0FOqUiKUe7r+DHDnVVJuxSPtjMokV6CPceB2D2TPzsu adgg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=V2Gvpl6BGIA50/J1TX+cezdKN7xZ09Bpr+WtIIhOiv4=; b=YyJmpdBt79NMFXLd78OWX6Y5/L+CDle/2ACFM0zri6dCRPMWHRgcZqz3VWgnAViMpx 5m0DWfYvHRgc1AAVEazRx2vH8YCFZfgcZDIit8fUHeTY8DWY3aVVMCoy6fXJ2//F6CO4 pJJMe62o85KY81w3DH1IoPpsF06nR/iezKzjbhZ/iZV8DyUuSyi3uX2+XFx5vARYd2mG xM9+qxsopfq6jyCMlkwABXa6tDeNhdBEjMvKJT5MrYzqbqgP+YwfleHDDioSmdC8vkXA ofYK1CCrNKoXLkRg8rSBRMwtx1T3MerHEGLGPpOai9LyyvxnV5yp0ZxL51FVKwO/wTyu QZgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XzbrhfFZ; 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 i24si48189309pgh.434.2019.04.16.09.18.15; Tue, 16 Apr 2019 09:18:32 -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=@linux-foundation.org header.s=google header.b=XzbrhfFZ; 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 S1729901AbfDPQRQ (ORCPT + 99 others); Tue, 16 Apr 2019 12:17:16 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:44504 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbfDPQRQ (ORCPT ); Tue, 16 Apr 2019 12:17:16 -0400 Received: by mail-lj1-f196.google.com with SMTP id h16so19631544ljg.11 for ; Tue, 16 Apr 2019 09:17:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V2Gvpl6BGIA50/J1TX+cezdKN7xZ09Bpr+WtIIhOiv4=; b=XzbrhfFZ8OS7iWU4+Ot2qCi8GDzOl8LZ+PFEFwbbzp+ZEfUBCTsRIpNXElHDgsIV2L /GZceDRcsSgDdjbXqwKZCKwqhqI6RM1jNizxdsPnFcPXot7htZ3epCEvP28wpbOGCkjM nPkDoXjHG1od/d361Iu2znwwPWcNKfzjg4IFA= 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=V2Gvpl6BGIA50/J1TX+cezdKN7xZ09Bpr+WtIIhOiv4=; b=eoioDBMYcep9WvNJKcJFTeu3W13Vvah78LYC3lZkikJhfjsfenLosUWaqPBn5FnMg2 GZAq0sMSK6eaC912GSO/Gr1NHzucnKks5mOJhNarzHccwQH54PkWszOdyjlRPtJh/QW5 9SvnaiVzyYFfcTkLEw6kZr3v68SZilG4tt8iF95q1NFOADftLL47m8rHn1sVzDMc7c9/ ZsS65y0JYVH0A2Os3fJmPxpyBGMRc+utNzFaxRHCjnpHE62BXi3cLT2mBgVctGJpKCrF XDlW+ughzpQWhSpGpyqDxgC+wz9s4/i8ZR9EkS1o2ceukVRIg/8xiKiM5vNJsjADm+af zTUg== X-Gm-Message-State: APjAAAWF6CoFOJrkArdE/+x9ifUAbO2LaiQSoBpxKxqXw4YDK5/+h8ub AC9SQSONHctuFf2G2tlkBGjvypmSWPs= X-Received: by 2002:a2e:5dd2:: with SMTP id v79mr43376702lje.22.1555431433455; Tue, 16 Apr 2019 09:17:13 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id f1sm10169443ljc.73.2019.04.16.09.17.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 09:17:12 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id f18so19650305lja.10 for ; Tue, 16 Apr 2019 09:17:11 -0700 (PDT) X-Received: by 2002:a2e:8108:: with SMTP id d8mr18152714ljg.57.1555431431532; Tue, 16 Apr 2019 09:17:11 -0700 (PDT) MIME-Version: 1.0 References: <20190415051919.GA31481@infradead.org> <20190416110906.6c773aff@mschwideX1> <20190416140658.2cb73a3f@mschwideX1> In-Reply-To: <20190416140658.2cb73a3f@mschwideX1> From: Linus Torvalds Date: Tue, 16 Apr 2019 09:16:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 5.1-rc5 To: Martin Schwidefsky Cc: Christoph Hellwig , Linux List Kernel Mailing , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, linux-s390 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 5:08 AM Martin Schwidefsky wrote: > > This is not nice, would a patch like the following be acceptable? Umm. We actually already *have* this function. It's called "gup_fast_permitted()" and it's used by x86-64 to verify the proper address range. Exactly like s390 needs.. Could you please use that instead? Linus