Re: OOPS with 2.1.92

Alexander Kjeldaas (astor@guardian.no)
Sun, 5 Apr 1998 15:52:38 +0200


--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=us-ascii

On Sun, Apr 05, 1998 at 03:31:00AM -0500, Jason Burrell wrote:
>
> I managed to get a NULL pointer dereference in the kernel. It occured
> while doing a system update under Debian's package manager. The AMD script
> segfaulted, the error appeared, and all went on as normal from there.
>
>

It seems like proc_permission oopses on a NULL fs_struct pointer
(possibly because find_task_by_pid returns a zombie process). The
attached patch might help (for fs/proc/inode.c):

astor

-- 
 Alexander Kjeldaas, Guardian Networks AS, Trondheim, Norway
 http://www.guardian.no/

--nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=proc_diff

--- inode.c.old Sun Apr 5 15:46:24 1998 +++ inode.c Sun Apr 5 15:47:59 1998 @@ -199,7 +199,7 @@ p = find_task_by_pid(pid); if (p != NULL) - de = p->fs->root; + de = p->fs ? p->fs->root : NULL; read_unlock(&tasklist_lock); if (p == NULL)

--nFreZHaLTZJo0R7j--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu