[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <9ae48b020810282224x31706492mdbaae102909ba63b@mail.gmail.com>
Date: Tue, 28 Oct 2008 22:24:14 -0700
From: "Ed Swierk" <eswierk@...stanetworks.com>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] Fix range check on mmaped sysfs resource files
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>
Download attachment "linux-2.6.27-pci-sysfs-mmap-bug.patch" of type "application/octet-stream" (607 bytes)
Powered by blists - more mailing lists