diff options
author | Alan Cox <alan@redhat.com> | 2008-10-10 11:46:45 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-12 11:19:04 +0200 |
commit | c613ec1a7ff3714da11c7c48a13bab03beb5c376 (patch) | |
tree | 4e6cc1466bcd1e5b420c29ad9652c0a2893c150f /drivers/s390/scsi/zfcp_dbf.c | |
parent | x86: avoid dereferencing beyond stack + THREAD_SIZE (diff) | |
download | linux-c613ec1a7ff3714da11c7c48a13bab03beb5c376.tar.xz linux-c613ec1a7ff3714da11c7c48a13bab03beb5c376.zip |
x86, early_ioremap: fix fencepost error
The x86 implementation of early_ioremap has an off by one error. If we get
an object which ends on the first byte of a page we undermap by one page and
this causes a crash on boot with the ASUS P5QL whose DMI table happens to fit
this alignment.
The size computation is currently
last_addr = phys_addr + size - 1;
npages = (PAGE_ALIGN(last_addr) - phys_addr)
(Consider a request for 1 byte at alignment 0...)
Closes #11693
Debugging work by Ian Campbell/Felix Geyer
Signed-off-by: Alan Cox <alan@rehat.com>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/s390/scsi/zfcp_dbf.c')
0 files changed, 0 insertions, 0 deletions