lists.openwall.net   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]
Message-ID: <20220123072951.GD19412@xsang-OptiPlex-9020>
Date:   Sun, 23 Jan 2022 15:29:51 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Miquel Raynal <miquel.raynal@...tlin.com>
Cc:     0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
        lkp@...ts.01.org, Alexander Aring <alex.aring@...il.com>,
        Stefan Schmidt <stefan@...enfreihafen.org>,
        linux-wpan@...r.kernel.org,
        "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org,
        Xue Liu <liuxuenetmail@...il.com>,
        Marcel Holtmann <marcel@...tmann.org>,
        Harry Morris <harrymorris12@...il.com>,
        David Girault <david.girault@...vo.com>,
        Romuald Despres <romuald.despres@...vo.com>,
        Frederic Blain <frederic.blain@...vo.com>,
        Nicolas Schodet <nico@...fr.eu.org>,
        Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
        Miquel Raynal <miquel.raynal@...tlin.com>
Subject: [net]  98ccce2328: WARNING:suspicious_RCU_usage



Greeting,

FYI, we noticed the following commit (built with clang-14):

commit: 98ccce23287c6bc2abd5e40992146fbd795a27d6 ("[wpan-next v2 1/9] net: ieee802154: hwsim: Ensure proper channel selection at probe time")
url: https://github.com/0day-ci/linux/commits/Miquel-Raynal/ieee802154-A-bunch-of-fixes/20220120-192335
base: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git 1d1df41c5a33359a00e919d54eaebfb789711fdc
patch link: https://lore.kernel.org/linux-wpan/20220120112115.448077-2-miquel.raynal@bootlin.com

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+---------------------------------------------------------------------------------------+------------+------------+
|                                                                                       | 1d1df41c5a | 98ccce2328 |
+---------------------------------------------------------------------------------------+------------+------------+
| boot_successes                                                                        | 11         | 0          |
| WARNING:suspicious_RCU_usage                                                          | 0          | 14         |
| drivers/net/ieee802154/mac802154_hwsim.c:#suspicious_rcu_dereference_protected()usage | 0          | 14         |
+---------------------------------------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>


[  125.631089][    T1] WARNING: suspicious RCU usage
[  125.632380][    T1] 5.16.0-11201-g98ccce23287c #1 Not tainted
[  125.633728][    T1] -----------------------------
[  125.634782][    T1] drivers/net/ieee802154/mac802154_hwsim.c:103 suspicious rcu_dereference_protected() usage!
[  125.637107][    T1]
[  125.637107][    T1] other info that might help us debug this:
[  125.637107][    T1]
[  125.639290][    T1]
[  125.639290][    T1] rcu_scheduler_active = 2, debug_locks = 1
[  125.641218][    T1] 1 lock held by swapper/0/1:
[ 125.642313][ T1] #0: ffff8881709ac188 (&dev->mutex){....}-{3:3}, at: __driver_attach (drivers/base/dd.c:1141) 
[  125.644487][    T1]
[  125.644487][    T1] stack backtrace:
[  125.646112][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.16.0-11201-g98ccce23287c #1 2e4e82a5ad58a18340e5b3bf7e4ce54853ca765f
[  125.648776][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[  125.649379][    T1] Call Trace:
[  125.649379][    T1]  <TASK>
[ 125.649379][ T1] dump_stack_lvl (lib/dump_stack.c:107) 
[ 125.649379][ T1] hwsim_hw_channel (drivers/net/ieee802154/mac802154_hwsim.c:103) 
[ 125.649379][ T1] hwsim_add_one (drivers/net/ieee802154/mac802154_hwsim.c:?) 
[ 125.649379][ T1] hwsim_probe (drivers/net/ieee802154/mac802154_hwsim.c:846) 
[ 125.649379][ T1] platform_probe (drivers/base/platform.c:1417) 
[ 125.649379][ T1] really_probe (drivers/base/dd.c:? drivers/base/dd.c:596) 
[ 125.649379][ T1] __driver_probe_device (drivers/base/dd.c:752) 
[ 125.649379][ T1] driver_probe_device (drivers/base/dd.c:782) 
[ 125.649379][ T1] __driver_attach (drivers/base/dd.c:1142) 
[ 125.649379][ T1] ? driver_attach (drivers/base/dd.c:1094) 
[ 125.649379][ T1] bus_for_each_dev (drivers/base/bus.c:300) 
[ 125.649379][ T1] bus_add_driver (drivers/base/bus.c:618) 
[ 125.649379][ T1] driver_register (drivers/base/driver.c:171) 
[ 125.649379][ T1] hwsim_init_module (drivers/net/ieee802154/mac802154_hwsim.c:897) 
[ 125.649379][ T1] do_one_initcall (include/linux/instrumented.h:71 include/linux/atomic/atomic-instrumented.h:27 include/linux/jump_label.h:266 include/linux/jump_label.h:276 include/trace/events/initcall.h:48 init/main.c:1298) 
[ 125.649379][ T1] ? mcr20a_driver_init (drivers/net/ieee802154/mac802154_hwsim.c:882) 
[ 125.649379][ T1] ? rcu_read_lock_sched_held (include/linux/lockdep.h:? kernel/rcu/update.c:125) 
[ 125.649379][ T1] do_initcall_level (init/main.c:1369) 
[ 125.649379][ T1] do_initcalls (init/main.c:1383) 
[ 125.649379][ T1] kernel_init_freeable (init/main.c:1612) 
[ 125.649379][ T1] ? rest_init (init/main.c:1491) 
[ 125.649379][ T1] kernel_init (init/main.c:1501) 
[ 125.649379][ T1] ? rest_init (init/main.c:1491) 
[ 125.649379][ T1] ret_from_fork (??:?) 
[  125.649379][    T1]  </TASK>
[  125.687993][    T1] mac802154_hwsim mac802154_hwsim: Added 2 mac802154 hwsim hardware radios
[  125.690601][    T1] VMware vmxnet3 virtual NIC driver - version 1.6.0.0-k-NAPI
[  125.692817][    T1] usbcore: registered new interface driver catc
[  125.694198][    T1] pegasus: Pegasus/Pegasus II USB Ethernet driver
[  125.696020][    T1] usbcore: registered new interface driver pegasus
[  125.699113][    T1] usbcore: registered new interface driver rtl8150
[  125.700638][    T1] hso: drivers/net/usb/hso.c: Option Wireless
[  125.702431][    T1] usbcore: registered new interface driver hso
[  125.703921][    T1] usbcore: registered new interface driver lan78xx
[  125.705783][    T1] usbcore: registered new interface driver asix
[  125.707474][    T1] usbcore: registered new interface driver ax88179_178a
[  125.709348][    T1] usbcore: registered new interface driver cdc_ether
[  125.710834][    T1] usbcore: registered new interface driver sr9700
[  125.712638][    T1] usbcore: registered new interface driver smsc75xx
[  125.714478][    T1] usbcore: registered new interface driver smsc95xx
[  125.716294][    T1] usbcore: registered new interface driver gl620a
[  125.717997][    T1] usbcore: registered new interface driver plusb
[  125.719663][    T1] usbcore: registered new interface driver rndis_host
[  125.721363][    T1] usbcore: registered new interface driver zaurus
[  125.723177][    T1] usbcore: registered new interface driver int51x1
[  125.724871][    T1] usbcore: registered new interface driver cdc_phonet
[  125.726603][    T1] usbcore: registered new interface driver ipheth
[  125.728344][    T1] usbcore: registered new interface driver sierra_net
[  125.730163][    T1] usbcore: registered new interface driver cx82310_eth
[  125.731980][    T1] usbcore: registered new interface driver cdc_ncm
[  125.733751][    T1] usbcore: registered new interface driver huawei_cdc_ncm
[  125.735587][    T1] usbcore: registered new interface driver lg-vl600
[  125.737320][    T1] usbcore: registered new interface driver cdc_mbim
[  125.739070][    T1] usbcore: registered new interface driver ch9200
[  125.741018][    T1] Fusion MPT base driver 3.04.20
[  125.742335][    T1] Copyright (c) 1999-2008 LSI Corporation
[  125.743734][    T1] Fusion MPT SPI Host driver 3.04.20
[  125.745365][    T1] Fusion MPT SAS Host driver 3.04.20
[  125.746920][    T1] Fusion MPT misc device (ioctl) driver 3.04.20
[  125.748844][    T1] mptctl: Registered with Fusion MPT base driver
[  125.750192][    T1] mptctl: /dev/mptctl @ (major,minor=10,220)
[  125.761147][    T1] uhci_hcd: USB Universal Host Controller Interface driver
[  125.764406][    T1] driver u132_hcd
[  125.766705][    T1] fotg210_hcd: FOTG210 Host Controller (EHCI) Driver
[  125.768277][    T1] Warning! fotg210_hcd should always be loaded before uhci_hcd and ohci_hcd, not after
[  125.771294][    T1] usbcore: registered new interface driver cdc_acm
[  125.772933][    T1] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[  125.777124][    T1] usbcore: registered new interface driver cdc_wdm
[  125.778822][    T1] usbcore: registered new interface driver usbtmc
[  125.781162][    T1] usbcore: registered new interface driver uas
[  125.783087][    T1] usbcore: registered new interface driver usb-storage
[  125.784949][    T1] usbcore: registered new interface driver ums-datafab
[  125.786607][    T1] usbcore: registered new interface driver ums-freecom
[  125.788273][    T1] usbcore: registered new interface driver ums-jumpshot
[  125.790014][    T1] usbcore: registered new interface driver ums-karma
[  125.791755][    T1] usbcore: registered new interface driver ums-onetouch
[  125.793556][    T1] usbcore: registered new interface driver ums-sddr09
[  125.795264][    T1] usbcore: registered new interface driver ums-sddr55
[  125.796911][    T1] usbcore: registered new interface driver microtekX6
[  125.798914][    T1] usbcore: registered new interface driver usbserial_generic
[  125.800876][    T1] usbserial: USB Serial support registered for generic
[  125.802814][    T1] usbcore: registered new interface driver aircable
[  125.804535][    T1] usbserial: USB Serial support registered for aircable
[  125.806275][    T1] usbcore: registered new interface driver ark3116


To reproduce:

        # build kernel
	cd linux
	cp config-5.16.0-11201-g98ccce23287c .config
	make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=clang-14 CC=clang-14 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



---
0DAY/LKP+ Test Infrastructure                   Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org       Intel Corporation

Thanks,
Oliver Sang


View attachment "config-5.16.0-11201-g98ccce23287c" of type "text/plain" (183480 bytes)

View attachment "job-script" of type "text/plain" (4655 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (25612 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ