From: Andrew Morton <akpm@linux-foundation.org>
To: netdev@vger.kernel.org
Cc: "bugme-daemon@kernel-bugs.osdl.org"
<bugme-daemon@kernel-bugs.osdl.org>,
garkein@mailueberfall.de
Subject: Re: [Bugme-new] [Bug 8726] New: MSG_TRUNC not regarded in unix_dgram_recvmsg()
Date: Mon, 9 Jul 2007 09:16:47 -0700 [thread overview]
Message-ID: <20070709091647.9fce4cc0.akpm@linux-foundation.org> (raw)
In-Reply-To: <bug-8726-10286@http.bugzilla.kernel.org/>
On Mon, 9 Jul 2007 04:01:58 -0700 (PDT) bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=8726
>
> Summary: MSG_TRUNC not regarded in unix_dgram_recvmsg()
> Product: Networking
> Version: 2.5
> KernelVersion: 2.6.19
> Platform: All
> OS/Version: Linux
> Tree: Mainline
> Status: NEW
> Severity: normal
> Priority: P1
> Component: Other
> AssignedTo: acme@ghostprotocols.net
> ReportedBy: garkein@mailueberfall.de
>
>
> Problem Description:
>
> In unix_dgram_recvmsg() in af_unix.c the flag MSG_TRUNC is not regarded as
> described in the recv(2) man page.
>
> This did work in older kernels (I have a working 2.6.13, but am not sure if
> that is a plain kernel.org one, nor if it was the last working revision).
> I believe the bug was introduced when the variable "copied" was removed from
> the code.
>
> IMHO, the line 1650:
>
> err = size;
>
> should read
>
> err = (flags & MSG_TRUNC) ? skb->len : size;
>
parent reply other threads:[~2007-07-09 16:16 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <bug-8726-10286@http.bugzilla.kernel.org/>]
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=20070709091647.9fce4cc0.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=bugme-daemon@kernel-bugs.osdl.org \
--cc=garkein@mailueberfall.de \
--cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.