tree: git://toccata2.tricolour.ca/linux-2.6-rgb.git ghak90-contid.v10.4
head: f35b133bb86541fa01252242812fcb2ca4baa23d
commit: 80794c1061dee5488007857266263cb6430b352f [14/17] fixup! audit: add support for
containerid to network namespaces
config: arm64-randconfig-r033-20201113 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
9a85643cd357e412cff69067bb5c4840e228c2ab)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add audit-next git://toccata2.tricolour.ca/linux-2.6-rgb.git
git fetch --no-tags audit-next ghak90-contid.v10.4
git checkout 80794c1061dee5488007857266263cb6430b352f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> net/netfilter/nft_log.c:77:39: warning: variable 'net' is
uninitialized when used here [-Wuninitialized]
record =
audit_log_netns_contid_list(net, context);
^~~
net/netfilter/nft_log.c:70:17: note: initialize the variable 'net' to silence
this warning
struct net *net;
^
= NULL
1 warning generated.
vim +/net +77 net/netfilter/nft_log.c
63
64 static void nft_log_eval_audit(const struct nft_pktinfo *pkt)
65 {
66 struct sk_buff *skb = pkt->skb;
67 struct audit_buffer *ab;
68 int fam = -1;
69 struct audit_context *context;
70 struct net *net;
71 int record;
72
73 if (!audit_enabled)
74 return;
75
76 context = audit_alloc_local(GFP_ATOMIC);
77 record = audit_log_netns_contid_list(net, context);
78 ab = audit_log_start(context, GFP_ATOMIC, AUDIT_NETFILTER_PKT);
79 if (!ab)
80 goto errout;
81
82 audit_log_format(ab, "mark=%#x", skb->mark);
83
84 switch (nft_pf(pkt)) {
85 case NFPROTO_BRIDGE:
86 switch (eth_hdr(skb)->h_proto) {
87 case htons(ETH_P_IP):
88 fam = audit_ip4(ab, skb) ? NFPROTO_IPV4 : -1;
89 break;
90 case htons(ETH_P_IPV6):
91 fam = audit_ip6(ab, skb) ? NFPROTO_IPV6 : -1;
92 break;
93 }
94 break;
95 case NFPROTO_IPV4:
96 fam = audit_ip4(ab, skb) ? NFPROTO_IPV4 : -1;
97 break;
98 case NFPROTO_IPV6:
99 fam = audit_ip6(ab, skb) ? NFPROTO_IPV6 : -1;
100 break;
101 }
102
103 if (fam == -1)
104 audit_log_format(ab, " saddr=? daddr=? proto=-1");
105
106 if (record)
107 audit_log_format(ab, " record=%d", record);
108 audit_log_end(ab);
109 net = xt_net(&pkt->xt);
110 errout:
111 audit_free_context(context);
112 }
113
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org