Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1315153

Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only memory

Path csiph.com!news.redatomik.org!newsfeed.datemas.de!weretis.net!feeder4.news.weretis.net!storethat.news.telefonica.de!telefonica.de!news.panservice.it!bofh.it!news.nic.it!robomod
From David Brown <david.brown@linaro.org>
Newsgroups linux.kernel
Subject Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only memory
Date Fri, 22 Jan 2016 18:30:01 +0100
Message-ID <qTNH3-7bM-3@gated-at.bofh.it> (permalink)
References <qSIT8-33H-5@gated-at.bofh.it>
X-Original-To kernel-hardening@lists.openwall.com
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=JWXhENX96qgPoQjaE0WYesccSYjLGv0GWLdiYOD+bXA=; b=cI6zpexNtev4E4kGycyKZGh1F4EkcbEhM9wwhedpZLDaR74a33Ilx0UdmtA2ia2mFT iYrj7p+6HIOlU1ZT9yujSPdVyTgu/Ytby65LkxG5XF1eWgu2gDIuY47CKtJcNOmqA1oo jRpHKvZqnT8HLFqxI+DfV89IYwE4kUgA95DCc=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=JWXhENX96qgPoQjaE0WYesccSYjLGv0GWLdiYOD+bXA=; b=hIvTGZMlYPKiOCgnR25V972qD8FvzgD2d3Qf9r/heERSuJg25mmfo9wjvTo0gbgte9 eQVmXyJAdPwb4/dIcTCAjmrneF40mjw0mh1otBNA4FHG43yj4oVr7ed/lGNevikaB6ft mHiSupObOtlwsArp17eRqaVeSwHZ08oyjD1ShchqtUu6BTakS0Bgetj+UihcylQDzCqU zhFc/73/sX+eG8lCKHZ6Qw+tl6yBJDrJtY2kiiTgUT68JDVMACnDFxaNywXMxgLocIml rrF1vwMOTfAWchIUAY/Qv6dB2RPha+Usr+TZ862B/kEFQKOOpOx+NsjIWFS339TVc6LN dlcA==
X-Gm-Message-State AG10YOT7w9u4oqt98QEKMeAjsJhmu0yUGIaRZ+aLSCNRDR+cHjfFX7YXc7tFUV7DV/t1XC9y
X-Received by 10.202.91.195 with SMTP id p186mr3205007oib.51.1453483197084; Fri, 22 Jan 2016 09:19:57 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii; format=flowed
Content-Disposition inline
User-Agent Mutt/1.5.24 (2015-08-30)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 18
Organization linux.* mail to news gateway
X-Original-Cc Ingo Molnar <mingo@redhat.com>, Kees Cook <keescook@chromium.org>, Andy Lutomirski <luto@amacapital.net>, "H. Peter Anvin" <hpa@zytor.com>, Michael Ellerman <mpe@ellerman.id.au>, Mathias Krause <minipli@googlemail.com>, Thomas Gleixner <tglx@linutronix.de>, x86@kernel.org, Arnd Bergmann <arnd@arndb.de>, PaX Team <pageexec@freemail.hu>, Emese Revfy <re.emese@gmail.com>, linux-kernel@vger.kernel.org, linux-arch <linux-arch@vger.kernel.org>, Laura Abbott <lauraa@codeaurora.org>
X-Original-Date Fri, 22 Jan 2016 10:19:54 -0700
X-Original-Message-ID <20160122171954.GA3945@davidb.org>
X-Original-References <1453226922-16831-1-git-send-email-keescook@chromium.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1315153

Show key headers only | View raw


On Tue, Jan 19, 2016 at 10:08:34AM -0800, Kees Cook wrote:

>This introduces __ro_after_init as a way to mark such memory, and uses
>it on the x86 vDSO to kill an extant kernel exploitation method. Also
>adds a new kernel parameter to help debug future use and adds an lkdtm
>test to check the results.

I've tested these patches on 32-bit ARM using the provoke-crashes
test.  However, they do require CONFIG_ARM_KERNMEM_PERMS to be enabled
as well, which does incur additional memory usage.

Do we want to consider making CONFIG_ARM_KERNMEM_PERMS default y for
security reasons, and just document that memory-constrained systems
may want to turn it off?

I'll test the arm64 next.

David

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/8] introduce post-init read-only memory Kees Cook <keescook@chromium.org> - 2016-01-19 19:20 +0100
  [PATCH v4 7/8] lkdtm: verify that __ro_after_init works correctly Kees Cook <keescook@chromium.org> - 2016-01-19 19:20 +0100
  Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only  memory David Brown <david.brown@linaro.org> - 2016-01-22 18:30 +0100
    Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only  memory Laura Abbott <laura@labbott.name> - 2016-01-22 20:20 +0100
      Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only memory Kees Cook <keescook@chromium.org> - 2016-01-22 21:00 +0100
        Re: [kernel-hardening] [PATCH v4 0/8] introduce post-init read-only memory Geert Uytterhoeven <geert@linux-m68k.org> - 2016-01-23 10:50 +0100

csiph-web