Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756871AbXJCPqw (ORCPT ); Wed, 3 Oct 2007 11:46:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754151AbXJCPqp (ORCPT ); Wed, 3 Oct 2007 11:46:45 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:56571 "EHLO the-village.bc.nu" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751341AbXJCPqo (ORCPT ); Wed, 3 Oct 2007 11:46:44 -0400 Date: Wed, 3 Oct 2007 16:51:28 +0100 From: Alan Cox To: Linus Torvalds Cc: Ingo Molnar , Linux Kernel Mailing List , Greg KH , Alexander Viro , Peter Zijlstra Subject: Re: [bug] crash when reading /proc/mounts (was: Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..) Message-ID: <20071003165128.46e232ab@the-village.bc.nu> In-Reply-To: References: <20071003084607.GC32218@elte.hu> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 971 Lines: 23 > and btw, there is no question what-so-ever about whether your compiler > might be doing a legal optimization - the compiler really is wrong, and is Pedant: valid. Almost all optimizations are legal, nobody has yet written laws about compilers. Sorry but I'm forever fixing misuse of the word "illegal" in printks, docs and the like and it gets annoying after a bit. > total shit. You need to make a gcc bug-report. Because this is not a > question of "the standard is ambiguous", Agreed - the standard is not ambiguous here. (For reference the standard says that a valid pointer must point at an object _OR_ one past the end of the object (in the latter case it is not dereferencable)). So its a compiler bug. Alan - 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/