[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1225258595.3865.1.camel@eswierk-laptop.arastra.com>
Date: Tue, 28 Oct 2008 22:36:35 -0700
From: Ed Swierk <eswierk@...stanetworks.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix range check on mmaped sysfs resource files
On Tue, 2008-10-28 at 22:24 -0700, Ed Swierk wrote:
> pci_mmap_fits() in 2.6.27.4 returns the wrong answer if the sysfs
> resource file size is not a multiple of the page size. vm_end and
> vm_start are already page-aligned, so size - start < nr, causing
> mmap() to return EINVAL.
>
> Signed-off-by: Ed Swierk <eswierk@...stanetworks.com>
...and here is the patch in a hopefully more readable form.
View attachment "linux-2.6.27-pci-sysfs-mmap-bug.patch" of type "text/x-patch" (608 bytes)
Powered by blists - more mailing lists