Re: lvm in 2.5.1

From: andersg@0x63.nu
Date: Thu Dec 27 2001 - 15:24:51 EST


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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Dec 31 2001 - 21:00:15 EST