From: kernel test robot <lkp@intel.com>
To: Sharath Chandra Vurukala <quic_sharathv@quicinc.com>,
davem@davemloft.net, dsahern@kernel.org, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, quic_kapandey@quicinc.com,
quic_subashab@quicinc.com
Subject: Re: [PATCH] net: Add locking to protect skb->dev access in ip_output
Date: Thu, 24 Jul 2025 08:46:54 +0800 [thread overview]
Message-ID: <202507240835.DPHAwhlJ-lkp@intel.com> (raw)
In-Reply-To: <20250723082201.GA14090@hu-sharathv-hyd.qualcomm.com>
Hi Sharath,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
[also build test ERROR on next-20250723]
[cannot apply to net/main linus/master horms-ipvs/master v6.16-rc7]
[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/Sharath-Chandra-Vurukala/net-Add-locking-to-protect-skb-dev-access-in-ip_output/20250723-162406
base: net-next/main
patch link: https://lore.kernel.org/r/20250723082201.GA14090%40hu-sharathv-hyd.qualcomm.com
patch subject: [PATCH] net: Add locking to protect skb->dev access in ip_output
config: i386-randconfig-003-20250724 (https://download.01.org/0day-ci/archive/20250724/202507240835.DPHAwhlJ-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250724/202507240835.DPHAwhlJ-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/202507240835.DPHAwhlJ-lkp@intel.com/
All errors (new ones prefixed by >>):
net/ipv4/ip_output.c: In function 'ip_output':
>> net/ipv4/ip_output.c:438:9: error: 'ret_val' undeclared (first use in this function); did you mean 'pte_val'?
438 | ret_val = NF_HOOK_COND(NFPROTO_IPV4, NF_INET_POST_ROUTING,
| ^~~~~~~
| pte_val
net/ipv4/ip_output.c:438:9: note: each undeclared identifier is reported only once for each function it appears in
net/ipv4/ip_output.c:444:1: warning: control reaches end of non-void function [-Wreturn-type]
444 | }
| ^
vim +438 net/ipv4/ip_output.c
425
426 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb)
427 {
428 struct net_device *dev, *indev = skb->dev;
429
430 IP_UPD_PO_STATS(net, IPSTATS_MIB_OUT, skb->len);
431
432 rcu_read_lock();
433
434 dev = skb_dst(skb)->dev;
435 skb->dev = dev;
436 skb->protocol = htons(ETH_P_IP);
437
> 438 ret_val = NF_HOOK_COND(NFPROTO_IPV4, NF_INET_POST_ROUTING,
439 net, sk, skb, indev, dev,
440 ip_finish_output,
441 !(IPCB(skb)->flags & IPSKB_REROUTED));
442 rcu_read_unlock();
443 return ret_val;
444 }
445 EXPORT_SYMBOL(ip_output);
446
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2025-07-24 0:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-23 8:22 [PATCH] net: Add locking to protect skb->dev access in ip_output Sharath Chandra Vurukala
2025-07-23 15:08 ` Eric Dumazet
2025-07-24 6:15 ` Sharath Chandra Vurukala
2025-07-24 8:03 ` Eric Dumazet
2025-07-29 11:45 ` Sharath Chandra Vurukala
2025-07-24 0:46 ` kernel test robot [this message]
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=202507240835.DPHAwhlJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=quic_kapandey@quicinc.com \
--cc=quic_sharathv@quicinc.com \
--cc=quic_subashab@quicinc.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.