Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758110AbYAJBTU (ORCPT ); Wed, 9 Jan 2008 20:19:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755825AbYAJBTJ (ORCPT ); Wed, 9 Jan 2008 20:19:09 -0500 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:37768 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755695AbYAJBTH (ORCPT ); Wed, 9 Jan 2008 20:19:07 -0500 Date: Wed, 9 Jan 2008 19:19:04 -0600 (CST) From: Brent Casavant Reply-To: Brent Casavant To: Herbert Xu cc: penguin-kernel@i-love.sakura.ne.jp, netdev@vger.kernel.org, davem@davemloft.net, linux-kernel@vger.kernel.org Subject: Re: AF_UNIX MSG_PEEK bug? In-Reply-To: Message-ID: References: User-Agent: Alpine 1.00 (BSF 882 2007-12-20) Organization: "Silicon Graphics, Inc." MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1122 Lines: 28 On Thu, 10 Jan 2008, Herbert Xu wrote: > The POSIX text for MSG_WAITALL actually says that when used in > conjunction with MSG_PEEK it may not return the full data. That's fine. The problem is that the peek operation returns less data than requested even when sufficient data is available on the receive queue. > However, if you really want this to > happen it would help if you had attached a patch :) A patch is definitely in progress. I'm a little confused as to the difference between unix_detach_fds() and scm_fp_dup() in the MSG_PEEK versus !MSG_PEEK paths in unix_stream_recvmsg(), however once I figure that out a patch should be forthcoming. Brent -- Brent Casavant All music is folk music. I ain't bcasavan@sgi.com never heard a horse sing a song. Silicon Graphics, Inc. -- Louis Armstrong -- 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/