Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 22 Mar 2002 14:01:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 22 Mar 2002 14:01:16 -0500 Received: from brooklyn-bridge.emea.veritas.com ([62.172.234.2]:43840 "EHLO einstein.homenet") by vger.kernel.org with ESMTP id ; Fri, 22 Mar 2002 14:01:00 -0500 Date: Fri, 22 Mar 2002 19:05:17 +0000 (GMT) From: Tigran Aivazian X-X-Sender: To: Marcelo Tosatti cc: Subject: [patch] fix two panics in microcode driver In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463811838-856038803-1016822684=:1089" Content-ID: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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: 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: Content-Description: mc.patch Content-Disposition: ATTACHMENT; FILENAME="mc.patch" LS0tIGFyY2gvaTM4Ni9rZXJuZWwvbWljcm9jb2RlLmMuMAlGcmkgTWFyIDIy IDE4OjIyOjEyIDIwMDINCisrKyBhcmNoL2kzODYva2VybmVsL21pY3JvY29k ZS5jCUZyaSBNYXIgMjIgMTg6Mjc6MDMgMjAwMg0KQEAgLTU1LDYgKzU1LDgg QEANCiAgKgkJVGlncmFuIEFpdmF6aWFuIDx0aWdyYW5AdmVyaXRhcy5jb20+ LA0KICAqCQlTZXJpYWxpemUgdXBkYXRlcyBhcyByZXF1a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GxlbiA+PiBQQUdFX1NISUZUKSA+IG51 bV9waHlzcGFnZXMpIHsNCisJCXByaW50ayhLRVJOX0VSUiAibWljcm9jb2Rl OiB0b28gbXVjaCBkYXRhIChtYXggJWQgcGFnZXMpXG4iLCBudW1fcGh5c3Bh Z2VzKTsNCiAJCXJldHVybiAtRUlOVkFMOw0KIAl9DQogCWRvd25fd3JpdGUo Jm1pY3JvY29kZV9yd3NlbSk7DQo= ---1463811838-856038803-1016822684=:1089-- - To unsubscribe 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/