Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751186AbWHTTp4 (ORCPT ); Sun, 20 Aug 2006 15:45:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751191AbWHTTp4 (ORCPT ); Sun, 20 Aug 2006 15:45:56 -0400 Received: from dsl027-180-168.sfo1.dsl.speakeasy.net ([216.27.180.168]:16090 "EHLO sunset.davemloft.net") by vger.kernel.org with ESMTP id S1751186AbWHTTpy (ORCPT ); Sun, 20 Aug 2006 15:45:54 -0400 Date: Sun, 20 Aug 2006 12:46:05 -0700 (PDT) Message-Id: <20060820.124605.71096208.davem@davemloft.net> To: w@1wt.eu Cc: ak@suse.de, solar@openwall.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] getsockopt() early argument sanity checking From: David Miller In-Reply-To: <20060820101528.GE602@1wt.eu> References: <20060819230532.GA16442@openwall.com> <200608201034.43588.ak@suse.de> <20060820101528.GE602@1wt.eu> X-Mailer: Mew version 4.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) 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: 573 Lines: 14 From: Willy Tarreau Date: Sun, 20 Aug 2006 12:15:28 +0200 > Others will consider it totally useless because it does not cover > all cases, but I think it is against the general principle of > precaution we try to apply in security. Reading in a value from userspace twice for questionable "security" is just bogus. - 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/