Re: [tip:x86/urgent] x86/io: Mark target address as output in 'insb()' asm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [tip:x86/urgent] x86/io: Mark target address as output in 'insb()' asm
- From: Ingo Molnar <mingo@xxxxxxxxxx>
- Date: Wed, 12 Jul 2017 21:24:22 +0200
- Cc: Andrew Lutomirski <luto@xxxxxxxxxx>, Denys Vlasenko <dvlasenk@xxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, Josh Poimboeuf <jpoimboe@xxxxxxxxxx>, Kalle Valo <kvalo@xxxxxxxxxxxxxx>, Peter Anvin <hpa@xxxxxxxxx>, Linux Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Arnd Bergmann <arnd@xxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Brian Gerst <brgerst@xxxxxxxxx>, "linux-tip-commits@xxxxxxxxxxxxxxx" <linux-tip-commits@xxxxxxxxxxxxxxx>
- In-reply-to: <CA+55aFzrMBzQO4jDhaG2tbgWpFGqfK+-VXehG_tSCrFZTx4D5Q@mail.gmail.com>
- References: <20170710144425.2238584-1-arnd@arndb.de> <tip-ea1b2ee6eacc4413b1dfba566480c90d0da4ec81@git.kernel.org> <CA+55aFzrMBzQO4jDhaG2tbgWpFGqfK+-VXehG_tSCrFZTx4D5Q@mail.gmail.com>
- User-agent: NeoMutt/20170113 (1.7.2)
* Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Wed, Jul 12, 2017 at 6:10 AM, tip-bot for Arnd Bergmann
> <tipbot@xxxxxxxxx> wrote:
> >
> > Apparently the assember constraints are slightly off here, as marking the
> > 'addr' argument as a memory output seems appropriate here and gets rid
> > of the warning. For consistency I'm also adding it as input for outsb().
>
> The new constraints look very questionable to me.
Ok, I've removed the commit.
> The real fix is probably to just mark them as "clobbers memory" (ie
> just add "memory" to the clobber list).
>
> If you want to be fancy, you can try to do what <asm/uaccess.h> does,
> which is a disgusting hack, but has traditionally worked;
>
> struct __large_struct { unsigned long buf[100]; };
> #define __m(x) (*(struct __large_struct __user *)(x))
>
> and then use your approach with "m" and "=m".
Arnd, could you please try Linus's suggestions?
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Stable Commits]
[Linux Stable Kernel]
[Linux Kernel]
[Linux USB Devel]
[Linux Video &Media]
[Linux Audio Users]
[Yosemite News]
[Linux SCSI]