Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1480732
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jiri Olsa <jolsa@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: perf test "object code reading" segfaulting via usercopy check |
| Date | Sun, 11 Sep 2016 05:20:02 +0200 |
| Message-ID | <sg3tg-F4-1@gated-at.bofh.it> (permalink) |
| References | <sfw4h-4M9-1@gated-at.bofh.it> <sfwdX-4Pt-15@gated-at.bofh.it> <sfwdY-4Pt-17@gated-at.bofh.it> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| User-Agent | Mutt/1.7.0 (2016-08-17) |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.22 |
| X-Greylist | Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sun, 11 Sep 2016 03:16:10 +0000 (UTC) |
| 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 | 37 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Adrian Hunter <adrian.hunter@intel.com>, Jiri Olsa <jolsa@kernel.org>, Wang Nan <wangnan0@huawei.com>, Josh Poimboeuf <jpoimboe@redhat.com>, Kees Cook <keescook@chromium.org>, Namhyung Kim <namhyung@kernel.org>, Ingo Molnar <mingo@kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org> |
| X-Original-Date | Sun, 11 Sep 2016 05:16:06 +0200 |
| X-Original-Message-ID | <20160911031606.GA2025@krava> |
| X-Original-References | <20160909153626.GD32585@kernel.org> <20160909154125.GA11319@krava> <20160909154720.GF32585@kernel.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1480732 |
Show key headers only | View raw
On Fri, Sep 09, 2016 at 12:47:20PM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Sep 09, 2016 at 05:41:25PM +0200, Jiri Olsa escreveu: > > On Fri, Sep 09, 2016 at 12:36:26PM -0300, Arnaldo Carvalho de Melo wrote: > > > Hi Adrian, > > > > > > I noticed that 'perf test "object code reading"' is segfaulting > > > here: > > > > > > [root@jouet linux]# perf test -F "object code reading" > > > 21: Test object code reading :Segmentation fault > > > [root@jouet linux]# > > > > > > dmesg output below, trying to figure this out... > > > > heya, > > it's the new hardened user copy check.. I sent patches for that: > > > > http://marc.info/?l=linux-kernel&m=147332143929289&w=2 > > http://marc.info/?l=linux-kernel&m=147332145229291&w=2 > > Cool, but that is for the kernel, without thinking too much about it, is > there a way to change that 'perf test' entry to avoid doing what > triggers the segfault? > > My first thought was that it was reading 4K all the way to the end, > where it should instead read just what is remaining, but I haven't > checked this theory at all. it's actually reading within the bounds of kernel text that triggers that, it's the new CONFIG_HARDENED_USERCOPY feature: f5509cc18daa mm: Hardened usercopy check the change log, there's list of conditions and one of them is: - object must not overlap with kernel text jirka
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
perf test "object code reading" segfaulting via usercopy check Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-09-09 17:40 +0200
Re: perf test "object code reading" segfaulting via usercopy check Jiri Olsa <jolsa@redhat.com> - 2016-09-09 17:50 +0200
Re: perf test "object code reading" segfaulting via usercopy check Arnaldo Carvalho de Melo <acme@kernel.org> - 2016-09-09 17:50 +0200
Re: perf test "object code reading" segfaulting via usercopy check Jiri Olsa <jolsa@redhat.com> - 2016-09-11 05:20 +0200
csiph-web