lkml.org 
[lkml]   [2009]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] dmi: sanity check BIOS tables
On 06/07/2009 01:01 AM, Alan Cox wrote:
> @@ -260,6 +276,11 @@ static void __init dmi_save_ipmi_device(const struct dmi_header *dm)
> struct dmi_device *dev;
> void * data;
>
> + if (((u8 *)dm) + dm->length > dmi_end) {

I think this should be >= too.

> + printk(KERN_ERR "dmi_save_ipmi_device: table overrun.\n");
> + return;
> + }
> +


\
 
 \ /
  Last update: 2009-06-07 10:59    [W:0.042 / U:4.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site