All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>,
	mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org
Cc: linuxram@us.ibm.com, Sandipan Das <sandipan@linux.ibm.com>
Subject: Re: [PATCH] powerpc/book3s64/pkeys: Fix pkey_access_permitted w.r.t execute disable pkey
Date: Thu, 16 Jul 2020 22:47:47 +1000 (AEST)	[thread overview]
Message-ID: <159490364649.3801815.17176115155878100262.b4-ty@ellerman.id.au> (raw)
In-Reply-To: <20200712132047.1038594-1-aneesh.kumar@linux.ibm.com>

On Sun, 12 Jul 2020 18:50:47 +0530, Aneesh Kumar K.V wrote:
> Even if the IAMR value deny the execute access, current kernel return true
> w.r.t pkey_access_permitted() for execute permission check if the AMR
> read pkey bit is cleared.
> 
> This results in repeated page fault loop with a test like below.
> 
>  #define _GNU_SOURCE
>  #include <errno.h>
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <signal.h>
>  #include <inttypes.h>
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/book3s64/pkeys: Fix pkey_access_permitted() for execute disable pkey
      https://git.kernel.org/powerpc/c/192b6a780598976feb7321ff007754f8511a4129

cheers

      reply	other threads:[~2020-07-16 12:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-12 13:20 [PATCH] powerpc/book3s64/pkeys: Fix pkey_access_permitted w.r.t execute disable pkey Aneesh Kumar K.V
2020-07-16 12:47 ` Michael Ellerman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=159490364649.3801815.17176115155878100262.b4-ty@ellerman.id.au \
    --to=patch-notifications@ellerman.id.au \
    --cc=aneesh.kumar@linux.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=linuxram@us.ibm.com \
    --cc=mpe@ellerman.id.au \
    --cc=sandipan@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.