Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 27 Oct 2001 15:16:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 27 Oct 2001 15:16:17 -0400 Received: from leibniz.math.psu.edu ([146.186.130.2]:15513 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Sat, 27 Oct 2001 15:16:07 -0400 Date: Sat, 27 Oct 2001 15:16:39 -0400 (EDT) From: Alexander Viro To: linux-kernel@vger.kernel.org cc: Linus Torvalds , Richard Gooch Subject: Re: more devfs fun In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org It just gets better and better... in get_removable_partition() if (strcmp (de->name, "disc") == 0) return check_disc_changed (de); with if ( name && (namelen < 1) ) namelen = strlen (name); if ( ( new = kmalloc (sizeof *new + namelen, GFP_KERNEL) ) == NULL ) return NULL; ... if (name) memcpy (new->name, name, namelen); in create_entry(). IOW, ->name is not NUL-terminated. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/