Panic in /proc

Maxim Konovalov maxim at macomnet.ru
Mon Feb 2 09:26:21 PST 2004


On Sat, 31 Jan 2004, 00:24-0800, Joel Ray Holveck wrote:

> Here's a way to panic FreeBSD 5.2, as any user:
>
>     dd if=/proc/curproc/map iseek=0x8000 bs=4096 of=/dev/null count=1
>
> I briefly examined the core.  It appears that pseudofs is trying to
> malloc an sbuf big enough to hold everything up to the 128 MB mark
> that we requested, which it intends to get procfs to fill.  Of course,
> the malloc fails, and the kernel panics.

Please fill a PR.

-- 
Maxim Konovalov, maxim at macomnet.ru, maxim at FreeBSD.org


More information about the freebsd-hackers mailing list