lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 11 Oct 2021 02:26:25 +0800
From:   kernel test robot <>
To:     Pablo Neira Ayuso <>
        Lukas Wunner <>
Subject: [l1k:nft_egress_v6 5/6] net/netfilter/nft_fwd_netdev.c:32:9: error:
 'skb' undeclared

tree: nft_egress_v6
head:   bacabad3aa520ee674afbdc348b2010e583ab20c
commit: fcf97a4df9fc1f01e3030ab439787f54af1a1088 [5/6] netfilter: nft_fwd_netdev: Support egress hook
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add l1k
        git fetch --no-tags l1k nft_egress_v6
        git checkout fcf97a4df9fc1f01e3030ab439787f54af1a1088
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <>

All errors (new ones prefixed by >>):

   net/netfilter/nft_fwd_netdev.c: In function 'nft_fwd_netdev_eval':
>> net/netfilter/nft_fwd_netdev.c:32:9: error: 'skb' undeclared (first use in this function)
      32 |         skb->skb_iif = skb->dev->ifindex;
         |         ^~~
   net/netfilter/nft_fwd_netdev.c:32:9: note: each undeclared identifier is reported only once for each function it appears in

vim +/skb +32 net/netfilter/nft_fwd_netdev.c

    24	static void nft_fwd_netdev_eval(const struct nft_expr *expr,
    25					struct nft_regs *regs,
    26					const struct nft_pktinfo *pkt)
    27	{
    28		struct nft_fwd_netdev *priv = nft_expr_priv(expr);
    29		int oif = regs->data[priv->sreg_dev];
    31		/* This is used by ifb only. */
  > 32		skb->skb_iif = skb->dev->ifindex;
    33		skb_set_redirected(pkt->skb, nft_hook(pkt) == NF_NETDEV_INGRESS);
    35		nf_fwd_netdev_egress(pkt, oif);
    36		regs->verdict.code = NF_STOLEN;
    37	}

0-DAY CI Kernel Test Service, Intel Corporation

Download attachment ".config.gz" of type "application/gzip" (60777 bytes)

Powered by blists - more mailing lists