tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: RFC: New userspace fetch/store API



On Sun, Feb 24, 2019 at 08:39:53AM -0800, Jason Thorpe wrote:
 > > Given that the predominant use of these is to fetch from user-supplied
 > > pointers, which can be crap, it would best to include an alignment
 > > check; otherwise ~all call sites will require explicit checks, which
 > > in addition to being error-prone start running into annoying
 > > portability questions.
 > 
 > Great suggestion, and you know, this gives me an idea ? the arch-specific ba\

Given that the alignment check _is_ free on some architectures, and
that dealing with alignment in machine-independent C is problematic,
that doesn't seem like the right way...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index