From: Richard Palethorpe Date: Mon, 10 Dec 2018 09:59:46 +0100 Subject: [LTP] [PATCH 3/3] crypto/crypto_user01.c: new test for information leak bug In-Reply-To: <20181207163442.GB14562@dell5510> References: <20181206181814.85583-1-ebiggers@kernel.org> <20181206181814.85583-4-ebiggers@kernel.org> <87o99xmmsw.fsf@rpws.prws.suse.cz> <20181207163442.GB14562@dell5510> Message-ID: <87lg4xn4e5.fsf@rpws.prws.suse.cz> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hello, Petr Vorel writes: > Hi Eric, Richard, > >> > +#include >> > + >> > +#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 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. > >> > +static void __check_for_leaks(const char *name, const char *value, >> > size_t vlen) >> >> IIRC we don't allow functions beginning with underscores because they >> are reserved by the compiler or C library. > Agree. > > > Kind regards, > Petr -- Thank you, Richard.