From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 19:56:15 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 19:56:06 -0500 Received: from pizda.ninka.net ([216.101.162.242]:35714 "EHLO pizda.ninka.net") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 19:55:49 -0500 Date: Wed, 16 Jan 2002 16:54:48 -0800 (PST) Message-Id: <20020116.165448.26534238.davem@redhat.com> To: balbir_soni@hotmail.com Cc: linux-kernel@vger.kernel.org Subject: Re: [BUG] Suspected bug in getpeername and getsockname From: "David S. Miller" In-Reply-To: In-Reply-To: X-Mailer: Mew version 2.1 on Emacs 21.1 / 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 You totally missed what move_addr_to_user() does, which is in fact truncate the copied len to what the user supplied. Also, the comments in move_addr_to_user even quote the bits of 1003.1g you a referring to. In short, the bug you suggest is not there.