Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755971AbaAVPUj (ORCPT ); Wed, 22 Jan 2014 10:20:39 -0500 Received: from order.stressinduktion.org ([87.106.68.36]:58054 "EHLO order.stressinduktion.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755238AbaAVPUh (ORCPT ); Wed, 22 Jan 2014 10:20:37 -0500 Date: Wed, 22 Jan 2014 16:20:36 +0100 From: Hannes Frederic Sowa To: Dan Ballard Cc: Lennart Poettering , kay.sievers@vrfy.org, Arnd Bergmann , "David S. Miller" , Eric Dumazet , Eliezer Tamir , Neil Horman , Li Zefan , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH 1/1] Per socket value for max datagram queue length Message-ID: <20140122152036.GB7269@order.stressinduktion.org> Mail-Followup-To: Dan Ballard , Lennart Poettering , kay.sievers@vrfy.org, Arnd Bergmann , "David S. Miller" , Eric Dumazet , Eliezer Tamir , Neil Horman , Li Zefan , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <13e8aad86903481261581de7c29444e3@mindstab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <13e8aad86903481261581de7c29444e3@mindstab.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 22, 2014 at 07:11:20AM -0800, Dan Ballard wrote: > diff --git a/net/core/sock.c b/net/core/sock.c > index 5393b4b..1ff69d1 100644 > --- a/net/core/sock.c > +++ b/net/core/sock.c > @@ -915,6 +915,10 @@ set_rcvbuf: > sk->sk_max_pacing_rate); > break; > > + case SO_MAX_DGRAM_QLEN: > + sk->sk_max_ack_backlog = val; > + break; > + Shouldn't the backlog be capped for unprivileged users to some configurable value? I even think that max_dgram_qlen should be the upper bound. I guess it is not that serious as socket read accounting does account all packets which sit in the backlog queue. Greetings, Hannes -- 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/