Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2878313ybg; Sun, 20 Oct 2019 02:15:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi1S6T++yAI9ZD04KwUc+bQVQ8NOzcBshme33H7p5EQWmjougVsVmgHs8ouDOoGI+dLrpa X-Received: by 2002:a50:fc86:: with SMTP id f6mr18853439edq.233.1571562922974; Sun, 20 Oct 2019 02:15:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571562922; cv=none; d=google.com; s=arc-20160816; b=t7QEWzhaHddzIvZfa2g1CuC8cSZ8ztfchkcsZ787a7sIxLZba9g1sg5uKQNjQT/Z6S XcJ2eGJ+exXXuyB/9fXyOyTlr+5x9g9JcfmJQJKKVcbTA53lelHst1vIMoH7iWwT7phN J0rNB5FltM1vB8kdYmTTFd/VQGLjgOzUckm+XAvexzoiKOqKHA0CEG9RoeXmY/NrBYwG 65/xj/r2mkjzJuR0PmHqnDtD72AuNzMYej3Fm3YmpQyWU5bUjCNWWy80qutJwcJIUfks CgwNLGNrA271d7vugpp/LPrMDw4bm6ju9ZTZQlZDIKZ/Rh1bYFt1CrvtfecnQYP+Fon2 VcQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:subject:cc:from:to :in-reply-to; bh=vJWKUnONAI2BKz/scG5/RZEmLz3Lm9E/9keemC0u9V4=; b=wHlciUwhiLv8iw+4q/Ll2PigSGW93jNo7LVu1Wrh784xlH0alBgcv/8o5Mo6pcE2iq hMsffe+T9PQkhoFCXqrFxMhaaqBSd9rWlaEDEJCLZ+hZVdxPXSJIp8Uqgok0Zgom99P3 j2rRp5ZE6P7w9ZRNqO1OmTAc60uoz5ZLP4kZXFx0IpdGJIHBFD3XV81+qRROWomoUy+P 3MI44Bx4WrfbMOqDs4gyVCjFIdT9xiLintmjLoe9CfFCKEa8GEhf5GTsp5dkBzxwaiHL kek0HiwBLCwbaPWCVr4bQ9sXejVYc7uRj7/TlG1PEyY5UAUOLFooRB0N/2eaRMvNbNN7 9EaA== ARC-Authentication-Results: i=1; mx.google.com; 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 b17si6238284ejp.326.2019.10.20.02.14.59; Sun, 20 Oct 2019 02:15:22 -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; 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 S1726265AbfJTJJ5 (ORCPT + 99 others); Sun, 20 Oct 2019 05:09:57 -0400 Received: from bilbo.ozlabs.org ([203.11.71.1]:32823 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfJTJJ4 (ORCPT ); Sun, 20 Oct 2019 05:09:56 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 46wv9b25JSz9sPK; Sun, 20 Oct 2019 20:09:55 +1100 (AEDT) X-powerpc-patch-notification: thanks X-powerpc-patch-commit: d10f60ae27d26d811e2a1bb39ded47df96d7499f In-Reply-To: <067a1b09f15f421d40797c2d04c22d4049a1cee8.1571071875.git.christophe.leroy@c-s.fr> To: Christophe Leroy , Benjamin Herrenschmidt , Paul Mackerras From: Michael Ellerman Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/32s: fix allow/prevent_user_access() when crossing segment boundaries. Message-Id: <46wv9b25JSz9sPK@ozlabs.org> Date: Sun, 20 Oct 2019 20:09:55 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-10-14 at 16:51:28 UTC, Christophe Leroy wrote: > Make sure starting addr is aligned to segment boundary so that when > incrementing the segment, the starting address of the new segment is > below the end address. Otherwise the last segment might get missed. > > Fixes: a68c31fc01ef ("powerpc/32s: Implement Kernel Userspace Access Protection") > Signed-off-by: Christophe Leroy Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/d10f60ae27d26d811e2a1bb39ded47df96d7499f cheers