Re: sparc: Fix mremap VA span checking.

From: David Miller
Date: Mon May 12 2008 - 07:25:15 EST


From: Jan Lieskovsky <jlieskov@xxxxxxxxxx>
Date: Mon, 12 May 2008 13:15:12 +0200

> I have investigated the code for MREMAP_FIXED in
> sparc_mremap in arch/sparc/kernel/sys_sparc.c, for sys64_mremap
> in arch/sparc64/kernel/sys_sparc.c and
> for sys32_mremap in arch/sparc64/kernel/sys_sparc32.c
> and there are similar conditional range checks ->
> attaching the patches against 2.6.25.3.

Thanks for the report, I'll take a look at this after getting
some sleep as it's late hear.

My first impression is that it might make sense to put an
arch_mmap_check() call at the appropriate spots instead of duplicating
this check so many times.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/