From: Ricardo Robaina <rrobaina@redhat.com>
To: kernel test robot <lkp@intel.com>
Cc: audit@vger.kernel.org, linux-kernel@vger.kernel.org,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
oe-kbuild-all@lists.linux.dev, paul@paul-moore.com,
eparis@redhat.com, fw@strlen.de, pablo@netfilter.org,
kadlec@netfilter.org
Subject: Re: [PATCH v4 1/2] audit: add audit_log_packet_ip4 and audit_log_packet_ip6 helper functions
Date: Mon, 3 Nov 2025 08:03:22 -0300 [thread overview]
Message-ID: <CAABTaaCf+5mY8gze4Ojy2fttEuuEtjj3Zm1dHScXVfWtKAQbSQ@mail.gmail.com> (raw)
In-Reply-To: <202511012016.TaXzGDDi-lkp@intel.com>
I didn't get these warning messages in my local build. I'll fix it and
submit a new version.
On Sat, Nov 1, 2025 at 10:15 AM kernel test robot <lkp@intel.com> wrote:
>
> Hi Ricardo,
>
> kernel test robot noticed the following build errors:
>
> [auto build test ERROR on pcmoore-audit/next]
> [also build test ERROR on netfilter-nf/main nf-next/master linus/master v6.18-rc3 next-20251031]
> [If your patch is applied to the wrong git tree, kindly drop us a note.
> And when submitting patch, we suggest to use '--base' as documented in
> https://git-scm.com/docs/git-format-patch#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Ricardo-Robaina/audit-add-audit_log_packet_ip4-and-audit_log_packet_ip6-helper-functions/20251031-220605
> base: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git next
> patch link: https://lore.kernel.org/r/cfafc5247fbfcd2561de16bcff67c1afd5676c9e.1761918165.git.rrobaina%40redhat.com
> patch subject: [PATCH v4 1/2] audit: add audit_log_packet_ip4 and audit_log_packet_ip6 helper functions
> config: m68k-defconfig (https://download.01.org/0day-ci/archive/20251101/202511012016.TaXzGDDi-lkp@intel.com/config)
> compiler: m68k-linux-gcc (GCC) 15.1.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251101/202511012016.TaXzGDDi-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202511012016.TaXzGDDi-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> net/netfilter/nft_log.c: In function 'nft_log_eval_audit':
> >> net/netfilter/nft_log.c:48:31: error: implicit declaration of function 'audit_log_packet_ip4'; did you mean 'audit_log_capset'? [-Wimplicit-function-declaration]
> 48 | fam = audit_log_packet_ip4(ab, skb) ? NFPROTO_IPV4 : -1;
> | ^~~~~~~~~~~~~~~~~~~~
> | audit_log_capset
> >> net/netfilter/nft_log.c:51:31: error: implicit declaration of function 'audit_log_packet_ip6'; did you mean 'audit_log_capset'? [-Wimplicit-function-declaration]
> 51 | fam = audit_log_packet_ip6(ab, skb) ? NFPROTO_IPV6 : -1;
> | ^~~~~~~~~~~~~~~~~~~~
> | audit_log_capset
>
>
> vim +48 net/netfilter/nft_log.c
>
> 28
> 29 static void nft_log_eval_audit(const struct nft_pktinfo *pkt)
> 30 {
> 31 struct sk_buff *skb = pkt->skb;
> 32 struct audit_buffer *ab;
> 33 int fam = -1;
> 34
> 35 if (!audit_enabled)
> 36 return;
> 37
> 38 ab = audit_log_start(NULL, GFP_ATOMIC, AUDIT_NETFILTER_PKT);
> 39 if (!ab)
> 40 return;
> 41
> 42 audit_log_format(ab, "mark=%#x", skb->mark);
> 43
> 44 switch (nft_pf(pkt)) {
> 45 case NFPROTO_BRIDGE:
> 46 switch (eth_hdr(skb)->h_proto) {
> 47 case htons(ETH_P_IP):
> > 48 fam = audit_log_packet_ip4(ab, skb) ? NFPROTO_IPV4 : -1;
> 49 break;
> 50 case htons(ETH_P_IPV6):
> > 51 fam = audit_log_packet_ip6(ab, skb) ? NFPROTO_IPV6 : -1;
> 52 break;
> 53 }
> 54 break;
> 55 case NFPROTO_IPV4:
> 56 fam = audit_log_packet_ip4(ab, skb) ? NFPROTO_IPV4 : -1;
> 57 break;
> 58 case NFPROTO_IPV6:
> 59 fam = audit_log_packet_ip6(ab, skb) ? NFPROTO_IPV6 : -1;
> 60 break;
> 61 }
> 62
> 63 if (fam == -1)
> 64 audit_log_format(ab, " saddr=? daddr=? proto=-1");
> 65
> 66 audit_log_end(ab);
> 67 }
> 68
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
>
next prev parent reply other threads:[~2025-11-03 11:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-31 13:59 [PATCH v4 0/2] audit: improve NETFILTER_PKT records Ricardo Robaina
2025-10-31 13:59 ` [PATCH v4 1/2] audit: add audit_log_packet_ip4 and audit_log_packet_ip6 helper functions Ricardo Robaina
2025-11-01 6:08 ` kernel test robot
2025-11-01 13:14 ` kernel test robot
2025-11-03 11:03 ` Ricardo Robaina [this message]
2025-10-31 13:59 ` [PATCH v4 2/2] audit: include source and destination ports to NETFILTER_PKT Ricardo Robaina
2025-11-01 4:03 ` kernel test robot
2025-11-03 11:05 ` Ricardo Robaina
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=CAABTaaCf+5mY8gze4Ojy2fttEuuEtjj3Zm1dHScXVfWtKAQbSQ@mail.gmail.com \
--to=rrobaina@redhat.com \
--cc=audit@vger.kernel.org \
--cc=coreteam@netfilter.org \
--cc=eparis@redhat.com \
--cc=fw@strlen.de \
--cc=kadlec@netfilter.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pablo@netfilter.org \
--cc=paul@paul-moore.com \
/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).