diff options
| author | Zachary Amsden <[email protected]> | 2006-01-06 00:11:55 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-01-06 08:33:35 -0800 |
| commit | 5fe9fe3c6f9a1ae7aa224bb7a66eb9aad9e4abef (patch) | |
| tree | ec120ce6e72700fe49720127bc76228c51bd406b /scripts/basic/split-include.c | |
| parent | 3fae1c37eea98097de34ba665796fea93b29f4aa (diff) | |
[PATCH] x86: Pnp byte granularity
The one remaining caller of set_limit, the PnP BIOS code, calls into the PnP
BIOS, passing kernel parameters in and out. These parameteres may be passed
from arbitrary kernel virtual memory, so they deserve strict protection to
stop a bad BIOS from smashing beyond the object size.
Unfortunately, the use of set_limit was badly botching this by setting the
limit in terms of pages, when it really should have byte granularity.
When doing this, I discovered my BIOS had the buggy code during the "get
system device node" call:
mov ax, es:[bx]
Which is harmless, but has a trivial workaround.
Signed-off-by: Zachary Amsden <[email protected]>
Cc: "Seth, Rohit" <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions