Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Antonio Quartulli <antonio@openvpn.net>,
	netdev@vger.kernel.org, Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Donald Hunter <donald.hunter@gmail.com>,
	Shuah Khan <skhan@linuxfoundation.org>,
	sd@queasysnail.net, ryazanov.s.a@gmail.com,
	Andrew Lunn <andrew+netdev@lunn.ch>
Cc: oe-kbuild-all@lists.linux.dev, Simon Horman <horms@kernel.org>,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net-next v13 07/22] ovpn: implement basic TX path (UDP)
Date: Mon, 9 Dec 2024 12:45:15 +0800	[thread overview]
Message-ID: <202412081739.56GeY9xL-lkp@intel.com> (raw)
In-Reply-To: <20241206-b4-ovpn-v13-7-67fb4be666e2@openvpn.net>

Hi Antonio,

kernel test robot noticed the following build errors:

[auto build test ERROR on 152d00a913969514967ad3f962b3b1c8983eb2d7]

url:    https://github.com/intel-lab-lkp/linux/commits/Antonio-Quartulli/net-introduce-OpenVPN-Data-Channel-Offload-ovpn/20241207-054712
base:   152d00a913969514967ad3f962b3b1c8983eb2d7
patch link:    https://lore.kernel.org/r/20241206-b4-ovpn-v13-7-67fb4be666e2%40openvpn.net
patch subject: [PATCH net-next v13 07/22] ovpn: implement basic TX path (UDP)
config: nios2-randconfig-r131-20241208 (https://download.01.org/0day-ci/archive/20241208/202412081739.56GeY9xL-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241208/202412081739.56GeY9xL-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/202412081739.56GeY9xL-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ovpn/io.c:18:
   drivers/net/ovpn/skb.h: In function 'ovpn_ip_check_protocol':
>> drivers/net/ovpn/skb.h:46:56: error: invalid application of 'sizeof' to incomplete type 'struct ipv6hdr'
      46 |                 if (!pskb_network_may_pull(skb, sizeof(struct ipv6hdr)))
         |                                                        ^~~~~~


vim +46 drivers/net/ovpn/skb.h

    29	
    30	/* Return IP protocol version from skb header.
    31	 * Return 0 if protocol is not IPv4/IPv6 or cannot be read.
    32	 */
    33	static inline __be16 ovpn_ip_check_protocol(struct sk_buff *skb)
    34	{
    35		__be16 proto = 0;
    36	
    37		/* skb could be non-linear,
    38		 * make sure IP header is in non-fragmented part
    39		 */
    40		if (!pskb_network_may_pull(skb, sizeof(struct iphdr)))
    41			return 0;
    42	
    43		if (ip_hdr(skb)->version == 4) {
    44			proto = htons(ETH_P_IP);
    45		} else if (ip_hdr(skb)->version == 6) {
  > 46			if (!pskb_network_may_pull(skb, sizeof(struct ipv6hdr)))
    47				return 0;
    48			proto = htons(ETH_P_IPV6);
    49		}
    50	
    51		return proto;
    52	}
    53	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2024-12-09  4:45 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-06 21:18 [PATCH net-next v13 00/22] Introducing OpenVPN Data Channel Offload Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 01/22] net: introduce OpenVPN Data Channel Offload (ovpn) Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 02/22] ovpn: add basic netlink support Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 03/22] ovpn: add basic interface creation/destruction/management routines Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 04/22] ovpn: keep carrier always on for MP interfaces Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 05/22] ovpn: introduce the ovpn_peer object Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 06/22] ovpn: introduce the ovpn_socket object Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 07/22] ovpn: implement basic TX path (UDP) Antonio Quartulli
2024-12-09  4:45   ` kernel test robot [this message]
2024-12-06 21:18 ` [PATCH net-next v13 08/22] ovpn: implement basic RX " Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 09/22] ovpn: implement packet processing Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 10/22] ovpn: store tunnel and transport statistics Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 11/22] ovpn: implement TCP transport Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 12/22] ovpn: implement multi-peer support Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 13/22] ovpn: implement peer lookup logic Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 14/22] ovpn: implement keepalive mechanism Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 15/22] ovpn: add support for updating local UDP endpoint Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 16/22] ovpn: add support for peer floating Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 17/22] ovpn: implement peer add/get/dump/delete via netlink Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 18/22] ovpn: implement key add/get/del/swap " Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 19/22] ovpn: kill key and notify userspace in case of IV exhaustion Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 20/22] ovpn: notify userspace when a peer is deleted Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 21/22] ovpn: add basic ethtool support Antonio Quartulli
2024-12-06 21:18 ` [PATCH net-next v13 22/22] testing/selftests: add test tool and scripts for ovpn module Antonio Quartulli

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=202412081739.56GeY9xL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=antonio@openvpn.net \
    --cc=donald.hunter@gmail.com \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pabeni@redhat.com \
    --cc=ryazanov.s.a@gmail.com \
    --cc=sd@queasysnail.net \
    --cc=skhan@linuxfoundation.org \
    /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