Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751664AbWCNABQ (ORCPT ); Mon, 13 Mar 2006 19:01:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751692AbWCNABQ (ORCPT ); Mon, 13 Mar 2006 19:01:16 -0500 Received: from vena.lwn.net ([206.168.112.25]:23966 "HELO lwn.net") by vger.kernel.org with SMTP id S1751677AbWCNABP (ORCPT ); Mon, 13 Mar 2006 19:01:15 -0500 Message-ID: <20060314000114.24716.qmail@lwn.net> To: Andrew Morton Cc: linux-kernel@vger.kernel.org Subject: Re: RFC: radix tree safety From: corbet@lwn.net (Jonathan Corbet) In-reply-to: Your message of "Mon, 13 Mar 2006 15:50:58 PST." <20060313155058.1389ee9a.akpm@osdl.org> Date: Mon, 13 Mar 2006 17:01:14 -0700 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 24 Andrew Morton wrote: > I don't really see the need - if someone goes and overindexes the data > structure's capacity then they have a bug and hopefully that'll turn up in > testing and will get fixed. > > Or am I missing something obvious which makes radix-trees particularly > dangerous or subtle?? There's nothing in the interface documentation which says that a tag is an index to anything. It's an integer value which can be attached to an item in a radix tree. One has to look into the source to see the limitation built into it. If we don't want the tests, fine, but it might make sense to fix the interface documentation, at least, to note that "tag" is not an arbitrary integer value. jon - 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/