Re: [PATCH] fix size checks for mmap() on /proc/bus/pci files(resent)

From: Jesse Barnes
Date: Tue Nov 09 2010 - 11:42:19 EST


On Tue, 09 Nov 2010 10:43:07 +0100
Martin Wilck <martin.wilck@xxxxxxxxxxxxxx> wrote:

> Hi Jesse & linux-pci,
>
> may I kindly ask if anyone has had a look at this patch yet?
>
> https://patchwork.kernel.org/patch/270271/
> http://kerneltrap.org/mailarchive/linux-kernel/2010/10/21/4635039

Yes I looked at it, and then promptly lost it in my inbox.

Thanks for fixing this; /proc/bus/pci semantics are definitely
different than /sys so we definitely want this.

I don't really like the new int argument to pci_mmap_fits (it's not
obvious from reading callers what that arg would do), maybe you could
make it into an enum that better describes the API or semantic being
used for the check?

Thanks,
--
Jesse Barnes, Intel Open Source Technology Center
--
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/