Re: [PATCH 0/9] mm: Hardened usercopy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Kees Cook <keescook@xxxxxxxxxxxx>
- Subject: Re: [PATCH 0/9] mm: Hardened usercopy
- From: Andy Lutomirski <luto@xxxxxxxxxxxxxx>
- Date: Sat, 9 Jul 2016 14:27:25 -0700
- Cc: Christoph Lameter <cl@xxxxxxxxx>, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Brad Spengler <spender@xxxxxxxxxxxxxx>, Pekka Enberg <penberg@xxxxxxxxxx>, Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx>, Casey Schaufler <casey@xxxxxxxxxxxxxxxx>, Will Deacon <will.deacon@xxxxxxx>, Rik van Riel <riel@xxxxxxxxxx>, Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>, Dmitry Vyukov <dvyukov@xxxxxxxxxx>, "linux-ia64@xxxxxxxxxxxxxxx" <linux-ia64@xxxxxxxxxxxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, linux-arch <linux-arch@xxxxxxxxxxxxxxx>, David Rientjes <rientjes@xxxxxxxxxx>, Mathias Krause <minipli@xxxxxxxxxxxxxx>, "kernel-hardening@xxxxxxxxxxxxxxxxxx" <kernel-hardening@xxxxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Laura Abbott <labbott@xxxxxxxxxxxxxxxxx>, "linux-mm@xxxxxxxxx" <linux-mm@xxxxxxxxx>, Jan Kara <jack@xxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Andrea Arcangeli <aarcange@xxxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, linuxppc-dev@xxxxxxxxxxxxxxxx, Vitaly Wool <vitalywool@xxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, Borislav Petkov <bp@xxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, PaX Team <pageexec@xxxxxxxxxxx>, Joonsoo Kim <iamjoonsoo.kim@xxxxxxx>, sparclinux@xxxxxxxxxxxxxxx
- In-reply-to: <1467843928-29351-1-git-send-email-keescook@chromium.org>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1467843928-29351-1-git-send-email-keescook@chromium.org>
On Jul 6, 2016 6:25 PM, "Kees Cook" <keescook@xxxxxxxxxxxx> wrote:
>
> Hi,
>
> This is a start of the mainline port of PAX_USERCOPY[1]. After I started
> writing tests (now in lkdtm in -next) for Casey's earlier port[2], I
> kept tweaking things further and further until I ended up with a whole
> new patch series. To that end, I took Rik's feedback and made a number
> of other changes and clean-ups as well.
>
I like the series, but I have one minor nit to pick. The effect of
this series is to harden usercopy, but most of the code is really
about infrastructure to validate that a pointed-to object is valid.
Might it make sense to call the infrastructure part something else?
After all, this could be extended in the future for memcpy or even for
some GCC plugin to check pointers passed to ordinary (non-allocator)
functions.
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]