public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Jan Stancek <jstancek@redhat.com>
Cc: ltp-list@lists.sourceforge.net, Chuck Ebbert <cebbert.lkml@gmail.com>
Subject: Re: [LTP] recvfrom01: fix test for invalid message flags
Date: Thu, 8 Jan 2015 11:43:25 +0100	[thread overview]
Message-ID: <20150108104325.GA25712@rei> (raw)
In-Reply-To: <53591103.3121779.1420538854789.JavaMail.zimbra@redhat.com>

Hi!
> > Note that this introduces a failure on kernels before 3.17, which has
> > a bug fix for MSG_ERRQUEUE flag handling. This failure is a legitimate
> > bug on these older kernels. (They should not be returning success with
> > no data available.)
> 
> I hit a failure in this testcase while trying latest LTP before release.
> Are you sure this is a bug?
> 
> Looking at commit history and man-pages, this looks more like new feature to me,
> flag that has not been supported before and now it is.
> 
> "MSG_ERRQUEUE is illegal on SOCK_STREAM sockets." [1]
> "TCP timestamping introduced MSG_ERRQUEUE handling for TCP sockets." [2][3]
> 
> Until commit [3], tcp_recvmsg() has ignored this flag and it was also documented
> that way. So, I don't see why TFAIL is valid result on <3.17 for MSG_ERRQUEUE test:

I think that there is no harm in disabling that case for kernels prior 3.17.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2015-01-08 10:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 22:10 [LTP] recvfrom01: fix test for invalid message flags Chuck Ebbert
2014-10-27 10:20 ` Cyril Hrubis
2014-11-26 11:38   ` Cyril Hrubis
2015-01-06 10:07 ` Jan Stancek
2015-01-08 10:43   ` Cyril Hrubis [this message]

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=20150108104325.GA25712@rei \
    --to=chrubis@suse.cz \
    --cc=cebbert.lkml@gmail.com \
    --cc=jstancek@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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