From: David Miller <davem@davemloft.net>
To: sam@ravnborg.org
Cc: mikpelinux@gmail.com, matorola@gmail.com,
sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: strace-4.18 test suite oopses sparc64 4.12 and 4.13-rc kernels
Date: Wed, 02 Aug 2017 16:27:35 -0700 (PDT) [thread overview]
Message-ID: <20170802.162735.793721374402820186.davem@davemloft.net> (raw)
In-Reply-To: <20170802213647.GA5506@ravnborg.org>
From: Sam Ravnborg <sam@ravnborg.org>
Date: Wed, 2 Aug 2017 23:36:47 +0200
> And memset calls down to bzero, where %o0=buf, %o1=len
>
> %o0 = 0xc
> %o1 = 0xfff000123c897a80
> %o2 = 0x0
> %o3 = 0xc
>
> So from this we know that:
> res = 0xfff000123c897a80
> to + (n - 0xfff000123c897a80)) = 0xc
>
> The value "fff000123c897a80" really looks like a constructed address
> from somewhere in the strace code, and where this constructed address
> is used to provoke some unusual behaviour.
> The "fff0" part may be a sparc thing.
>
> So far the analysis seems to match the intial conclusion that
> we in this special case try to zero out the remaining memory
> based on the return value of raw_copy_from_user.
> And therefore we use the return value (res) which triggers the oops.
Yes, the return value is bogus.
> So rather than manipulating with the assembler code as suggested
> in the previous mail this simpler patch could be tested:
...
> - memset(to + (n - res), 0, res);
> + void: /*memset(to + (n - res), 0, res);*/
Need a semicolon rather than a colon there :-)
next prev parent reply other threads:[~2017-08-02 23:27 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-27 19:45 Mikael Pettersson
2017-07-28 5:10 ` David Miller
2017-07-28 8:45 ` Mikael Pettersson
2017-07-28 18:27 ` David Miller
2017-07-28 18:37 ` David Miller
2017-07-29 10:52 ` Anatoly Pugachev
2017-07-29 12:02 ` Mikael Pettersson
2017-07-31 17:14 ` Mikael Pettersson
2017-07-31 21:48 ` Anatoly Pugachev
2017-07-31 21:51 ` David Miller
2017-07-31 22:01 ` Anatoly Pugachev
2017-07-31 22:06 ` David Miller
2017-08-01 7:29 ` Mikael Pettersson
2017-08-01 20:58 ` Sam Ravnborg
2017-08-02 21:36 ` Sam Ravnborg
2017-08-02 23:27 ` David Miller [this message]
2017-08-03 20:02 ` Mikael Pettersson
2017-08-03 21:57 ` David Miller
2017-08-04 5:44 ` Sam Ravnborg
2017-08-04 8:02 ` Mikael Pettersson
2017-08-04 16:48 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170802.162735.793721374402820186.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=matorola@gmail.com \
--cc=mikpelinux@gmail.com \
--cc=sam@ravnborg.org \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®