[LTP] [PATCH 3/3] crypto/crypto_user01.c: new test for information leak bug
Eric Biggers
ebiggers@kernel.org
Tue Dec 11 06:37:55 CET 2018
On Mon, Dec 10, 2018 at 09:59:46AM +0100, Richard Palethorpe wrote:
> Hello,
>
> Petr Vorel <pvorel@suse.cz> writes:
>
> > Hi Eric, Richard,
> >
> >> > +#include <linux/rtnetlink.h>
> >> > +
> >> > +#include "tst_test.h"
> >> > +#include "tst_crypto.h"
> >> > +#include "tst_netlink.h"
> >
> >> It seems that on SLE11 there is a bug in the kernel headers which means
> >> compilation fails if you include linux/rtnetlink.h before
> >> linux/netlink.h. If you switch the order then it compiles OK.
> >
> > Correct, it suffers from bug:
> > https://www.spinics.net/lists/netdev/msg171764.html
> > How about adding include <linux/rtnetlink.h> into
> > include/tst_netlink.h?
>
> I think we would also have to include sys/socket.h in tst_netlink.h to
> really solve the problem.
>
> I am not sure if that is a good idea.
tst_netlink.h already has an implicit dependency on safe_net_fn.h which already
includes <sys/socket.h>. So it appears the real issue is including
<linux/rtnetlink.h> (which includes <linux/netlink.h>) before tst_test.h.
But various other <linux/*> headers include <linux/netlink.h> too, and I don't
think all should be included in tst_netlink.h, so I guess I'll just move the
include within the test .c file itself...
BTW, I have no system to reproduce this problem on, so you'll just have to tell
me whether it works. I tried CentOS 6, but this is already fixed there.
- Eric
More information about the ltp
mailing list