linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* load_unaligned_zeropad() on x86-64
@ 2020-11-14 15:53 David Laight
  2020-11-14 18:02 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: David Laight @ 2020-11-14 15:53 UTC (permalink / raw)
  To: linux-kernel, x86, 'Linus Torvalds'

The change e419b4cc585680940bc42f8ca8a071d6023fb1bb added
asm code for load_unaligned_zeropad().

However it doesn't look right for 64bit.
It masks the address with ~3 not ~7 so the second
access could still cross a page boundary and fault.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-14 23:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-14 15:53 load_unaligned_zeropad() on x86-64 David Laight
2020-11-14 18:02 ` Linus Torvalds
2020-11-14 23:17   ` David Laight

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).