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


Groups > linux.kernel > #1648220

Re: [WARNING] x86/mm: Found insecure W+X mapping at address ..

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Kees Cook <keescook@chromium.org>
Newsgroups linux.kernel
Subject Re: [WARNING] x86/mm: Found insecure W+X mapping at address ..
Date Tue, 23 May 2017 18:00:01 +0200
Message-ID <tKko1-5cc-1@gated-at.bofh.it> (permalink)
References <tKkem-58v-23@gated-at.bofh.it>
X-Original-To Thomas Gleixner <tglx@linutronix.de>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ciXOKTmvkxPKCMMlbWNbNXXxm+N9Pjg9p+3hfOecA2s=; b=BZ/KN5zrZy2aKntj8+Ebfh3pTnOaDMoRV3Ps6J+WUrnU2ZpUIOdIaRTK6HIezaHB4y FnoqUf2YCu/ndxEihID8A7B3eNCMC2iYNTwQmlIeXQnoDa9+h57w66a6ZGEUMKiisVZy MPEP9Dq/CvNcmuK+TFvowk28f9GXwme6noEt2paKFkR42kfXjJiRiD1KKsz8iKHSSrfT D56xWuS2Qy1Ht+/Nm+lVycdVC2HhdnrckSi/VG2h6q0tWBmRhDhOpmBNtClhbAyY2COo m/ifklwIsmR8h3ywm6biVi0hiSLVIAgY0ndAo0ZqCr8MusvVL4UqUHEqi/O893+uwr39 75hA==
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ciXOKTmvkxPKCMMlbWNbNXXxm+N9Pjg9p+3hfOecA2s=; b=nx2yulWMWfKFg2qK2W9QL4ARYvsRzhs5sNGyRL4dDjUaenVLnVO+idNUKrzxU7zei/ LyCxafnRukuxU81oM1CyuOx5Ts9LRCR5Qvpf14N1ai82K55jQCAK2807qlFi/isSbVgo 0E4Zas1pLknlX9E0o88SIibPsbOimMB9tKZzM=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ciXOKTmvkxPKCMMlbWNbNXXxm+N9Pjg9p+3hfOecA2s=; b=s+zrVAPUTMxAiIc5pnt5vYCOz1SqkxkA/4C9Ur2Y6IY36NASoqHj6OKN7ggdo7thwK IoPSLBkVnOVsvAP4QcwbIJlXpormpO7Y91nNZCPpIdcPzHVmOin0B11BnEjy2aycRGtS 4A8Le0G/AzgW66xG5GAkavwSQ4biuBsvX5DmANXulh5ISShOBFCJ1Ucel6L0LKXYnJT2 ENa2BBGCkUlSsfOJamzPLWUdrZysgUljVHyLsHQr5w4P9vBBI4T2biF9g5KR3qeJYgbX 0Qz81SLZKIow0u5nwhoMsRcPxQaYLdoeYHLz/YVfnMOgxvoozUByx6glyXdwfyoMjcgA SRLA==
X-Gm-Message-State AODbwcClq/vuKF3i+kO7v/L0iRalDQZYDGa4YUHfqtJhmlpsSu9Adqyv vYz10K0XnGINVkn6MaR6QmE5IhCCAx2R
X-Received by 10.36.73.82 with SMTP id z79mr3726961ita.20.1495554888874; Tue, 23 May 2017 08:54:48 -0700 (PDT)
MIME-Version 1.0
X-Google-Sender-Auth 6eWHKsQO3cVxiEmDNppMNwc5Xjw
Content-Type text/plain; charset="UTF-8"
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 79
Organization linux.* mail to news gateway
X-Original-Cc LKML <linux-kernel@vger.kernel.org>, x86@linutronix.de, Masami Hiramatsu <mhiramat@kernel.org>, "Luis R. Rodriguez" <mcgrof@kernel.org>
X-Original-Date Tue, 23 May 2017 08:54:48 -0700
X-Original-Message-ID <CAGXu5jK-=c00ppm7h7ZgH7iVpRqRBLUQusYgm7yW4JDZ+r4RYw@mail.gmail.com>
X-Original-References <alpine.DEB.2.20.1705231734130.2740@nanos>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1648220

Show key headers only | View raw


On Tue, May 23, 2017 at 8:40 AM, Thomas Gleixner <tglx@linutronix.de> wrote:
> As of 4.12-rc1 one of my machines triggers the insecure W+X mapping.
>
> It's consistenly 9 entries close to the beginning of the module space,
> before the first actual module starts. See below.
>
> Any ideas which avoid bisecting would be appreciated.

Is this the same as:

https://lkml.org/lkml/2017/5/19/899

?

The location is very similar.

-Kees

>
> Thanks,
>
>         tglx
>
> ---[ Modules ]---
> 0xffffffffc0000000-0xffffffffc017d000        1524K                               pte
> 0xffffffffc017d000-0xffffffffc017e000           4K     RW                 GLB x  pte
> 0xffffffffc017e000-0xffffffffc017f000           4K                               pte
> 0xffffffffc017f000-0xffffffffc0180000           4K     RW                 GLB x  pte
> 0xffffffffc0180000-0xffffffffc0181000           4K                               pte
> 0xffffffffc0181000-0xffffffffc0182000           4K     RW                 GLB x  pte
> 0xffffffffc0182000-0xffffffffc0183000           4K                               pte
> 0xffffffffc0183000-0xffffffffc0184000           4K     RW                 GLB x  pte
> 0xffffffffc0184000-0xffffffffc0185000           4K                               pte
> 0xffffffffc0185000-0xffffffffc0186000           4K     RW                 GLB x  pte
> 0xffffffffc0186000-0xffffffffc0187000           4K                               pte
> 0xffffffffc0187000-0xffffffffc0188000           4K     RW                 GLB x  pte
> 0xffffffffc0188000-0xffffffffc0189000           4K                               pte
> 0xffffffffc0189000-0xffffffffc018a000           4K     RW                 GLB x  pte
> 0xffffffffc018a000-0xffffffffc018b000           4K                               pte
> 0xffffffffc018b000-0xffffffffc018c000           4K     RW                 GLB x  pte
> 0xffffffffc018c000-0xffffffffc018d000           4K                               pte
> 0xffffffffc018d000-0xffffffffc018e000           4K     RW                 GLB x  pte
>
> First module starts here:
>
> 0xffffffffc018e000-0xffffffffc0191000          12K                               pte
> 0xffffffffc0191000-0xffffffffc0192000           4K     ro                 GLB x  pte
>
> ---[ Modules ]---
> 0xffffffffc0000000-0xffffffffc0200000           2M                               pmd
> 0xffffffffc0200000-0xffffffffc02f8000         992K                               pte
> 0xffffffffc02f8000-0xffffffffc02f9000           4K     RW                 GLB x  pte
> 0xffffffffc02f9000-0xffffffffc02fa000           4K                               pte
> 0xffffffffc02fa000-0xffffffffc02fb000           4K     RW                 GLB x  pte
> 0xffffffffc02fb000-0xffffffffc02fc000           4K                               pte
> 0xffffffffc02fc000-0xffffffffc02fd000           4K     RW                 GLB x  pte
> 0xffffffffc02fd000-0xffffffffc02fe000           4K                               pte
> 0xffffffffc02fe000-0xffffffffc02ff000           4K     RW                 GLB x  pte
> 0xffffffffc02ff000-0xffffffffc0300000           4K                               pte
> 0xffffffffc0300000-0xffffffffc0301000           4K     RW                 GLB x  pte
> 0xffffffffc0301000-0xffffffffc0302000           4K                               pte
> 0xffffffffc0302000-0xffffffffc0303000           4K     RW                 GLB x  pte
> 0xffffffffc0303000-0xffffffffc0304000           4K                               pte
> 0xffffffffc0304000-0xffffffffc0305000           4K     RW                 GLB x  pte
> 0xffffffffc0305000-0xffffffffc0306000           4K                               pte
> 0xffffffffc0306000-0xffffffffc0307000           4K     RW                 GLB x  pte
> 0xffffffffc0307000-0xffffffffc0308000           4K                               pte
> 0xffffffffc0308000-0xffffffffc0309000           4K     RW                 GLB x  pte
>
> First module starts here:
>
> 0xffffffffc0309000-0xffffffffc030c000          12K                               pte
> 0xffffffffc030c000-0xffffffffc030d000           4K     ro                 GLB x  pte



-- 
Kees Cook
Pixel Security

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


Thread

[WARNING] x86/mm: Found insecure W+X mapping at address .. Thomas Gleixner <tglx@linutronix.de> - 2017-05-23 17:50 +0200
  Re: [WARNING] x86/mm: Found insecure W+X mapping at address .. Kees Cook <keescook@chromium.org> - 2017-05-23 18:00 +0200
    Re: [WARNING] x86/mm: Found insecure W+X mapping at address .. Thomas Gleixner <tglx@linutronix.de> - 2017-05-23 18:40 +0200
      Re: [WARNING] x86/mm: Found insecure W+X mapping at address .. Thomas Gleixner <tglx@linutronix.de> - 2017-05-23 22:50 +0200
        Re: [WARNING] x86/mm: Found insecure W+X mapping at address .. Steven Rostedt <rostedt@goodmis.org> - 2017-05-24 01:00 +0200
          Re: [WARNING] x86/mm: Found insecure W+X mapping at address .. Thomas Gleixner <tglx@linutronix.de> - 2017-05-24 08:30 +0200

csiph-web