All of lore.kernel.org
 help / color / mirror / Atom feed
* [rt-devel:linux-5.16.y-rt-rebase 64/127] drivers/staging/gdm724x/gdm_lte.c:86 gdm_lte_rx() error: dereferencing freed memory 'skb'
@ 2022-01-17  4:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-17  4:41 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2263 bytes --]

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: Sebastian Andrzej Siewior <bigeasy@linutronix.de>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.16.y-rt-rebase
head:   23316ccdc3157a7b74ddbe4e31d031f96a5b6586
commit: 7a7b4bc238bc31705cdf97a438a9b83cb3f5a870 [64/127] net: dev: Makes sure netif_rx() can be invoked in any context.
:::::: branch date: 4 days ago
:::::: commit date: 4 days ago
config: ia64-randconfig-m031-20220116 (https://download.01.org/0day-ci/archive/20220117/202201171233.GrY6YbJw-lkp(a)intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/staging/gdm724x/gdm_lte.c:86 gdm_lte_rx() error: dereferencing freed memory 'skb'

vim +/skb +86 drivers/staging/gdm724x/gdm_lte.c

61e12104764512 Won Kang 2013-07-25  76  
61e12104764512 Won Kang 2013-07-25  77  static int gdm_lte_rx(struct sk_buff *skb, struct nic *nic, int nic_type)
61e12104764512 Won Kang 2013-07-25  78  {
61e12104764512 Won Kang 2013-07-25  79  	int ret;
61e12104764512 Won Kang 2013-07-25  80  
61e12104764512 Won Kang 2013-07-25  81  	ret = netif_rx_ni(skb);
61e12104764512 Won Kang 2013-07-25  82  	if (ret == NET_RX_DROP) {
61e12104764512 Won Kang 2013-07-25  83  		nic->stats.rx_dropped++;
61e12104764512 Won Kang 2013-07-25  84  	} else {
61e12104764512 Won Kang 2013-07-25  85  		nic->stats.rx_packets++;
61e12104764512 Won Kang 2013-07-25 @86  		nic->stats.rx_bytes += skb->len + ETH_HLEN;
61e12104764512 Won Kang 2013-07-25  87  	}
61e12104764512 Won Kang 2013-07-25  88  
61e12104764512 Won Kang 2013-07-25  89  	return 0;
61e12104764512 Won Kang 2013-07-25  90  }
61e12104764512 Won Kang 2013-07-25  91  

:::::: The code at line 86 was first introduced by commit
:::::: 61e121047645122c47714fcda684d0ee67f444af staging: gdm7240: adding LTE USB driver

:::::: TO: Won Kang <wkang77@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-17  4:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17  4:41 [rt-devel:linux-5.16.y-rt-rebase 64/127] drivers/staging/gdm724x/gdm_lte.c:86 gdm_lte_rx() error: dereferencing freed memory 'skb' kernel test robot

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.