Re: lvm in 2.5.1

andersg
2001-12-27T20:25:15Z

On Thu, Dec 27, 2001 at 11:45:02AM -0800, Andrew Morton wrote:

> Ah. Right you are. I was looking at the 2.4.17 source. That array
> was added in 2.5.x.
>
> So 2.4.x is OK.

this means the userspace and kernelspace lv_t differ in size.. so a
copy_to_user(..,sizeof(lv_t)) copies to much data and corrupts userspace..

hmm, enlarging the dummy[200] in the userspace version of lv_t seems to be a
nice quickndirty solution.

--

//anders/g