From: Thomas Graf <tgraf@suug.ch>
To: David Miller <davem@davemloft.net>
Cc: jbenc@redhat.com, netdev@vger.kernel.org, pablo@netfilter.org
Subject: Re: [PATCH net] netlink: fix netlink_ack with large messages
Date: Sat, 9 Nov 2013 00:04:34 +0000 [thread overview]
Message-ID: <20131109000434.GD28793@casper.infradead.org> (raw)
In-Reply-To: <20131108.150741.966018155704146843.davem@davemloft.net>
On 11/08/13 at 03:07pm, David Miller wrote:
> From: Jiri Benc <jbenc@redhat.com>
> Date: Thu, 7 Nov 2013 19:57:45 +0100
>
> > Commit c05cdb1b864f ("netlink: allow large data transfers from user-space")
> > does not handle cases where netlink_ack is used to report an error. In such
> > case, the original message is copied to the ack message, which needs to be
> > large enough.
> >
> > Signed-off-by: Jiri Benc <jbenc@redhat.com>
>
> I have two problems with this change.
>
> First of all, if netlink_ack() has this problem, do not extend the
> netlink_alloc_large_skb() usage to dumps too as your patch is
> doing here.
>
> Secondly, it seems sort of over the top to quote such enormous
> messages, and in fact wasteful. We have the sequence number in
> the netlink header, so the user can tell exactly which message
> we are erroring.
>
> Just quoting such huge requests in ACKs by default doesn't seem
> to make any sense. I would say that we should have a way to
> turn off the quoting, or at least limit it, and turn this knob
> off for things like nftables that can hit these kinds of cases.
I agree it seems over the top for pure ACKs but we also use
netlink_ack() to report errors where it makes sense to quote
the full message.
next prev parent reply other threads:[~2013-11-09 0:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-07 18:57 [PATCH net] netlink: fix netlink_ack with large messages Jiri Benc
2013-11-08 20:07 ` David Miller
2013-11-09 0:04 ` Thomas Graf [this message]
2013-11-09 5:00 ` David Miller
2013-11-09 13:43 ` Jamal Hadi Salim
2013-11-09 18:03 ` Pablo Neira Ayuso
2013-11-12 15:29 ` Jiri Benc
2013-11-12 19:35 ` David Miller
2013-11-13 11:25 ` Jiri Benc
2013-11-13 20:43 ` David Miller
2013-11-09 19:27 ` David Miller
2013-11-09 19:49 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131109000434.GD28793@casper.infradead.org \
--to=tgraf@suug.ch \
--cc=davem@davemloft.net \
--cc=jbenc@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).