lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20220809083336.GA776@willie-the-truck>
Date:   Tue, 9 Aug 2022 09:33:37 +0100
From:   Will Deacon <will@...nel.org>
To:     Greg KH <gregkh@...uxfoundation.org>
Cc:     linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        Peter Collingbourne <pcc@...gle.com>, stable@...r.kernel.org,
        Ard Biesheuvel <ardb@...nel.org>,
        Catalin Marinas <catalin.marinas@....com>
Subject: Re: [PATCH][for-stable] arm64: set UXN on swapper page tables

On Mon, Aug 08, 2022 at 03:23:55PM +0200, Greg KH wrote:
> On Mon, Aug 08, 2022 at 01:53:21PM +0100, Will Deacon wrote:
> > From: Peter Collingbourne <pcc@...gle.com>
> > 
> > [ This issue was fixed upstream by accident in c3cee924bd85 ("arm64:
> >   head: cover entire kernel image in initial ID map") as part of a
> >   large refactoring of the arm64 boot flow. This simple fix is therefore
> >   preferred for -stable backporting ]
> > 
> > On a system that implements FEAT_EPAN, read/write access to the idmap
> > is denied because UXN is not set on the swapper PTEs. As a result,
> > idmap_kpti_install_ng_mappings panics the kernel when accessing
> > __idmap_kpti_flag. Fix it by setting UXN on these PTEs.
> > 
> > Fixes: 18107f8a2df6 ("arm64: Support execute-only permissions with Enhanced PAN")
> > Cc: <stable@...r.kernel.org> # 5.15
> > Link: https://linux-review.googlesource.com/id/Ic452fa4b4f74753e54f71e61027e7222a0fae1b1
> > Signed-off-by: Peter Collingbourne <pcc@...gle.com>
> > Acked-by: Will Deacon <will@...nel.org>
> > Cc: Ard Biesheuvel <ardb@...nel.org>
> > Cc: Catalin Marinas <catalin.marinas@....com>
> > Link: https://lore.kernel.org/r/20220719234909.1398992-1-pcc@google.com
> > Signed-off-by: Will Deacon <will@...nel.org>
> > ---
> >  arch/arm64/include/asm/kernel-pgtable.h | 4 ++--
> >  arch/arm64/kernel/head.S                | 2 +-
> >  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> So this should be added to 5.15.y, 5.18.y, and 5.19.y?  Or some subset?

Yes, all of them. Basically anything still being updated which is >= 5.15
and <= 5.19.

Thanks,

Will

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ