2003-02-17 16:06:31

by Robert Williamson

[permalink] [raw]
Subject: [PATCH] BUG() call in vmalloc.c causes segmentation fault.


In the function __vmalloc() in mm/vmalloc.c. The function
is parsing the "size" parameter passed to it. If the request
is of zero bytes or if it is greater than num_physpages,
then __vmalloc calls BUG(). The NULL pointer is never
returned, which causes the segmentation fault. This BUG()
call was correctly removed for 2.5.

- Robbie

(See attached file: vmalloc.c.patch)

Robert V. Williamson <[email protected]>
Linux Test Project
IBM Linux Technology Center
Phone: (512) 838-9295 T/L: 678-9295
Fax: (512) 838-4603
Web: http://ltp.sourceforge.net
IRC: #ltp on freenode.irc.net
====================
"Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former." -Albert Einstein


Attachments:
vmalloc.c.patch (346.00 B)

2003-02-17 18:53:34

by Robert Williamson

[permalink] [raw]
Subject: Re: [PATCH] BUG() call in vmalloc.c causes segmentation fault.

I forgot to mention that this patch was against 2.4.21-pre4.

- Robbie

Robert V. Williamson <[email protected]>
Linux Test Project
IBM Linux Technology Center
Phone: (512) 838-9295 T/L: 678-9295
Fax: (512) 838-4603
Web: http://ltp.sourceforge.net
IRC: #ltp on freenode.irc.net
====================
"Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former." -Albert Einstein