From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH RFC net-next 1/6] sock: MSG_PEEK support for sk_error_queue Date: Thu, 18 Jan 2018 07:51:03 -0800 Message-ID: <1516290663.3606.20.camel@gmail.com> References: <05d060dc1169649d84c37ad51b0f8fe54a2a3185.1516147540.git.sowmini.varadhan@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: davem@davemloft.net, rds-devel@oss.oracle.com, santosh.shilimkar@oracle.com To: Sowmini Varadhan , netdev@vger.kernel.org, willemdebruijn.kernel@gmail.com Return-path: Received: from mail-pg0-f68.google.com ([74.125.83.68]:37607 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932699AbeARP6w (ORCPT ); Thu, 18 Jan 2018 10:58:52 -0500 Received: by mail-pg0-f68.google.com with SMTP id z17so14572480pgc.4 for ; Thu, 18 Jan 2018 07:58:52 -0800 (PST) In-Reply-To: <05d060dc1169649d84c37ad51b0f8fe54a2a3185.1516147540.git.sowmini.varadhan@oracle.com> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2018-01-17 at 04:19 -0800, Sowmini Varadhan wrote: > Allow the application the ability to use MSG_PEEK with sk_error_queue > so that it can peek and re-read message in cases where MSG_TRUNC > may be encountered. > > Signed-off-by: Sowmini Varadhan Lets not add buggy feature that only fuzzers love to use to trigger awful bugs. No serious (performance sensitive) application use MSG_PEEK, because of extra syscall overhead.