lkml.org 
[lkml]   [1998]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: IDE Device blacklist in drivers/block/ide_modes.h
Derrik Pates wrote:
>
> I was going through old e-mails, and noticed that breakage of the
> blacklist comparison has been noted in the kernel.

Really? Anybody want to tell me about this?

> and noticed that the same issue was still present. I am including a diff
> against the kernel (This is against 2.1.78, but I believe it's simple

Diff is buggy. Do not use.
...
> ! if (strncmp(p->name, model, strlen(p->name)) == 0)
...
> ! len[0] = strlen(p->name);
> ! len[1] = strlen(model);

The problem is that "model" is not necessarily a zero-terminated string,
so doing a strlen() on it may segfault (unlikely), or result in a bad
comparism.

--
mlord@pobox.com
The Linux IDE guy

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.067 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site