[LTP] [PATCH v1] read_all :catch alignment faults while reading sys entries seen in commit :bc21785b7336619fb6a67f1fff5afdaf229acc

Cyril Hrubis chrubis@suse.cz
Wed Jan 3 16:13:22 CET 2024


Hi!
> > So the intention is to read the buffer in smaller chunks? I guess that
> > it's hard to tell without having seen the kernel bugfix.
> 
> My bad i provided the wrong commit id in the commit message for the 
> kernel bugfix, 
> https://github.com/torvalds/linux/commit/1bbc21785b7336619fb6a67f1fff5afdaf229acc 

So it looks like the problem happens when we attempt to read the memory
with unaligned offset, so I suppose that single:

pread(fd, buf, 16, 1);

Should trigger the problem, or do I miss something?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list