[patch] fix two panics in microcode driver

Tigran Aivazian (tigran@veritas.com)
Fri, 22 Mar 2002 19:05:17 +0000 (GMT)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---1463811838-856038803-1016822684=:1089
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.LNX.4.33.0203221845151.1089@einstein.homenet>

Hi Marcelo,

When writing too little (0) or too much (>num_physpages) of microcode data
to the driver it will panic because of passing illegal size request to
vmalloc() (which has an explicit BUG() on these).

Fix is attached.

Regards,
Tigran

---1463811838-856038803-1016822684=:1089
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME="mc.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0203221844440.1089@einstein.homenet>
Content-Description: mc.patch
Content-Disposition: ATTACHMENT; FILENAME="mc.patch"

LS0tIGFyY2gvaTM4Ni9rZXJuZWwvbWljcm9jb2RlLmMuMAlGcmkgTWFyIDIy
IDE4OjIyOjEyIDIwMDINCisrKyBhcmNoL2kzODYva2VybmVsL21pY3JvY29k
ZS5jCUZyaSBNYXIgMjIgMTg6Mjc6MDMgMjAwMg0KQEAgLTU1LDYgKzU1LDgg
QEANCiAgKgkJVGlncmFuIEFpdmF6aWFuIDx0aWdyYW5AdmVyaXRhcy5jb20+
LA0KICAqCQlTZXJpYWxpemUgdXBkYXRlcyBhcyByZXF1aXJlZCBvbiBIVCBw
cm9jZXNzb3JzIGR1ZSB0byBzcGVjdWxhdGl2ZQ0KICAqCQluYXR1cmUgb2Yg
aW1wbGVtZW50YXRpb24uDQorICoJMS4xMQkyMiBNYXIgMjAwMSBUaWdyYW4g
QWl2YXppYW4gPHRpZ3JhbkB2ZXJpdGFzLmNvbT4NCisgKgkJRml4IHRoZSBw
YW5pYyB3aGVuIHdyaXRpbmcgemVyby1sZW5ndGggbWljcm9jb2RlIGNodW5r
Lg0KICAqLw0KIA0KICNpbmNs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ribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/