From: Randy Dunlap <rdunlap@infradead.org>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Steve French <smfrench@gmail.com>,
CIFS <linux-cifs@vger.kernel.org>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
LAK <linux-arm-kernel@lists.infradead.org>
Subject: Re: Fwd: [EXTERNAL] Re: ioctl.c:undefined reference to `__get_user_bad'
Date: Tue, 18 May 2021 18:48:04 -0700 [thread overview]
Message-ID: <a4d4033e-aa90-a90a-73e0-bca673dd3071@infradead.org> (raw)
In-Reply-To: <20210518100306.GS12395@shell.armlinux.org.uk>
On 5/18/21 3:03 AM, Russell King (Oracle) wrote:
> On Mon, May 17, 2021 at 02:06:33PM -0700, Randy Dunlap wrote:
>> [adding back linux-arm-kernel; what happened to it? ]
That was about what I thought was Steve F. dropping LAK on his response email.
> Nothing. I'm not interested in trying to do major disgusting
> contortions to make get_user() work for 8-byte values. If someone
> else wants to put the effort in and come up with an elegant solution
> that doesn't add warnings over the rest of the kernel, that's fine.
>
> As far as I remember, everything in __get_user_err() relies on
> __gu_val _not_ being 64-bit. If we use the same trick that we do
> in __get_user_check():
>
> __inttype(x) __gu_val = (x);
>
> then if get_user() is called with a 64-bit integer value and a
> pointer-to-32-bit location to fetch from, we'd end up passing a
> 64-bit integer into the __get_user_asm() which could access the
> wrong 32-bit half of the value in BE mode. Similar issue with
> 64-bit vs pointer-to-16-bit.
Yes, trying to handle get_user() of size 8 bytes is quite messy.
I have a few versions and they are all ugly and cause build warnings.
So we are down to what bugzilla calls WONTFIX. I'm OK with that.
Thanks.
--
~Randy
next prev parent reply other threads:[~2021-05-19 1:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <202105110829.MHq04tJz-lkp@intel.com>
[not found] ` <a022694d-426a-0415-83de-4cc5cd9d1d38@infradead.org>
[not found] ` <MN2PR21MB15184963469FEC9B13433964E42D9@MN2PR21MB1518.namprd21.prod.outlook.com>
2021-05-17 17:13 ` Fwd: [EXTERNAL] Re: ioctl.c:undefined reference to `__get_user_bad' Steve French
2021-05-17 21:04 ` Randy Dunlap
2021-05-17 21:06 ` Randy Dunlap
2021-05-18 10:03 ` Russell King (Oracle)
2021-05-19 1:48 ` Randy Dunlap [this message]
2021-05-19 9:11 ` Aurélien Aptel
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=a4d4033e-aa90-a90a-73e0-bca673dd3071@infradead.org \
--to=rdunlap@infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=smfrench@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).