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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202209302138.2da57ac7-oliver.sang@intel.com>
Date:   Fri, 30 Sep 2022 21:11:48 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Sevinj Aghayeva <sevinj.aghayeva@...il.com>
CC:     <lkp@...ts.01.org>, <lkp@...el.com>,
        <bridge@...ts.linux-foundation.org>, <netdev@...r.kernel.org>,
        "David S. Miller" <davem@...emloft.net>, <aroulin@...dia.com>,
        <sbrivio@...hat.com>, <roopa@...dia.com>,
        Eric Dumazet <edumazet@...gle.com>,
        Jakub Kicinski <kuba@...nel.org>,
        Paolo Abeni <pabeni@...hat.com>,
        Nikolay Aleksandrov <razor@...ckwall.org>,
        <linux-kernel@...r.kernel.org>,
        Sevinj Aghayeva <sevinj.aghayeva@...il.com>
Subject: [net]  f6390526ee:
 WARNING:at_net/core/dev.c:#unregister_netdevice_many


Greeting,

FYI, we noticed the following commit (built with gcc-11):

commit: f6390526ee0b0408d9ed03bd8607abd2a702cb36 ("[PATCH RFC net-next 4/5] net: bridge: handle link-type-specific changes in the bridge module")
url: https://github.com/intel-lab-lkp/linux/commits/Sevinj-Aghayeva/net-vlan-fix-bridge-binding-behavior-and-add-selftests/20220918-041944
base: https://git.kernel.org/cgit/linux/kernel/git/davem/net-next.git 44a8535fb87c5503ce01121278ac3058eef701ec
patch link: https://lore.kernel.org/netdev/8ef43d44ebdebe90783325cb68edb70a7c80c038.1663445339.git.sevinj.aghayeva@gmail.com

in testcase: hwsim
version: hwsim-x86_64-717e5d7-1_20220525
with following parameters:

	test: group-02



on test machine: 8 threads 1 sockets Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (Ivy Bridge) with 16G memory

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



If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <oliver.sang@...el.com>
| Link: https://lore.kernel.org/r/202209302138.2da57ac7-oliver.sang@intel.com


[  114.492414][ T4435] ------------[ cut here ]------------
[ 114.492544][ T4435] WARNING: CPU: 0 PID: 4435 at net/core/dev.c:10882 unregister_netdevice_many (net/core/dev.c:10882 (discriminator 1)) 
[  114.492717][ T4435] Modules linked in: 8021q garp mrp bridge stp llc cmac ccm mac80211_hwsim mac80211 cfg80211 rfkill libarc4 netconsole btrfs blake2b_generic xor raid6_pq zstd_compress libcrc32c intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp i915 sd_mod t10_pi coretemp crc64_rocksoft_generic crc64_rocksoft crc64 sg drm_buddy kvm_intel intel_gtt kvm irqbypass crct10dif_pclmul crc32_pclmul drm_display_helper crc32c_intel ghash_clmulni_intel ipmi_devintf ttm rapl ipmi_msghandler firewire_ohci drm_kms_helper ahci intel_cstate libahci firewire_core intel_uncore syscopyarea crc_itu_t sysfillrect sysimgblt libata mxm_wmi fb_sys_fops wmi video drm fuse ip_tables
[  114.493770][ T4435] CPU: 0 PID: 4435 Comm: hostapd Not tainted 6.0.0-rc4-00989-gf6390526ee0b #1
[  114.493948][ T4435] Hardware name:  /DZ77BH-55K, BIOS BHZ7710H.86A.0097.2012.1228.1346 12/28/2012
[ 114.494119][ T4435] RIP: 0010:unregister_netdevice_many (net/core/dev.c:10882 (discriminator 1)) 
[ 114.494234][ T4435] Code: 73 fb ff ff ba ce 1a 00 00 48 c7 c6 60 cd e2 83 48 c7 c7 a0 cd e2 83 c6 05 41 21 3f 02 01 e8 c4 52 6f 00 0f 0b e9 4d fb ff ff <0f> 0b e9 39 fb ff ff 4c 89 0c 24 e8 e3 37 b5 fe 4c 8b 0c 24 e9 40
All code
========
   0:	73 fb                	jae    0xfffffffffffffffd
   2:	ff                   	(bad)  
   3:	ff                   	(bad)  
   4:	ba ce 1a 00 00       	mov    $0x1ace,%edx
   9:	48 c7 c6 60 cd e2 83 	mov    $0xffffffff83e2cd60,%rsi
  10:	48 c7 c7 a0 cd e2 83 	mov    $0xffffffff83e2cda0,%rdi
  17:	c6 05 41 21 3f 02 01 	movb   $0x1,0x23f2141(%rip)        # 0x23f215f
  1e:	e8 c4 52 6f 00       	callq  0x6f52e7
  23:	0f 0b                	ud2    
  25:	e9 4d fb ff ff       	jmpq   0xfffffffffffffb77
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	e9 39 fb ff ff       	jmpq   0xfffffffffffffb6a
  31:	4c 89 0c 24          	mov    %r9,(%rsp)
  35:	e8 e3 37 b5 fe       	callq  0xfffffffffeb5381d
  3a:	4c 8b 0c 24          	mov    (%rsp),%r9
  3e:	e9                   	.byte 0xe9
  3f:	40                   	rex

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	e9 39 fb ff ff       	jmpq   0xfffffffffffffb40
   7:	4c 89 0c 24          	mov    %r9,(%rsp)
   b:	e8 e3 37 b5 fe       	callq  0xfffffffffeb537f3
  10:	4c 8b 0c 24          	mov    (%rsp),%r9
  14:	e9                   	.byte 0xe9
  15:	40                   	rex
[  114.494583][ T4435] RSP: 0018:ffffc900011df168 EFLAGS: 00010202
[  114.494718][ T4435] RAX: ffff8881603d6301 RBX: ffff8881603d6b00 RCX: ffffffff812f88d3
[  114.494871][ T4435] RDX: 1ffff11020451414 RSI: 0000000000000008 RDI: ffffffff84fb2aa0
[  114.495004][ T4435] RBP: ffffffffa07829c0 R08: 0000000000000000 R09: ffffffff84fb2aa7
[  114.495137][ T4435] R10: fffffbfff09f6554 R11: 0000000000000001 R12: ffff8881603d6b10
[  114.495273][ T4435] R13: dffffc0000000000 R14: ffff8881603d6b00 R15: ffff88810228a000
[  114.495406][ T4435] FS:  00007f67dc94a740(0000) GS:ffff88837d800000(0000) knlGS:0000000000000000
[  114.495599][ T4435] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  114.495733][ T4435] CR2: 00007f81b15f56f4 CR3: 00000001b56f4003 CR4: 00000000001706f0
[  114.495869][ T4435] Call Trace:
[  114.495931][ T4435]  <TASK>
[ 114.495989][ T4435] ? flush_backlog (net/core/dev.c:10803) 
[ 114.496077][ T4435] ? kfree (mm/slub.c:1780 mm/slub.c:3534 mm/slub.c:4562) 
[ 114.496153][ T4435] ? rcu_nocb_try_bypass (kernel/rcu/tree.c:2769) 
[ 114.496247][ T4435] ? vlan_vid_del (net/8021q/vlan_core.c:368 net/8021q/vlan_core.c:387) 
[ 114.496334][ T4435] vlan_device_event (net/8021q/vlan.c:528) 8021q
[ 114.496439][ T4435] ? br_del_if (net/bridge/br_if.c:743) bridge
[ 114.496572][ T4435] ? unregister_vlan_dev (net/8021q/vlan.c:362) 8021q
[ 114.496701][ T4435] ? br_switchdev_event (net/bridge/br.c:29) bridge
[ 114.496820][ T4435] ? netconsole_netdev_event (drivers/net/netconsole.c:735) netconsole
[ 114.496937][ T4435] raw_notifier_call_chain (kernel/notifier.c:92 kernel/notifier.c:455) 
[ 114.497035][ T4435] unregister_netdevice_many (net/core/dev.c:10861) 
[ 114.497136][ T4435] ? __kernfs_remove+0x5b7/0x840 
[ 114.497235][ T4435] ? flush_backlog (net/core/dev.c:10803) 
[ 114.497321][ T4435] ? kernfs_dir_pos (fs/kernfs/dir.c:1342) 
[ 114.497408][ T4435] ? __cond_resched (kernel/sched/core.c:8316) 
[ 114.497492][ T4435] unregister_netdevice_queue (net/core/dev.c:10792) 
[ 114.497611][ T4435] ? unregister_netdevice_many (net/core/dev.c:10781) 
[ 114.497747][ T4435] ? up_write (arch/x86/include/asm/atomic64_64.h:172 include/linux/atomic/atomic-long.h:95 include/linux/atomic/atomic-instrumented.h:1348 kernel/locking/rwsem.c:1356 kernel/locking/rwsem.c:1605) 
[ 114.497826][ T4435] _cfg80211_unregister_wdev (include/linux/netdevice.h:3030 net/wireless/core.c:1157) cfg80211
[ 114.497985][ T4435] ? mutex_unlock (arch/x86/include/asm/atomic64_64.h:190 include/linux/atomic/atomic-long.h:449 include/linux/atomic/atomic-instrumented.h:1790 kernel/locking/mutex.c:181 kernel/locking/mutex.c:540) 
[ 114.498070][ T4435] ieee80211_if_remove (net/mac80211/iface.c:2279) mac80211
[ 114.498223][ T4435] ieee80211_del_iface (net/mac80211/cfg.c:204) mac80211
[ 114.498367][ T4435] cfg80211_remove_virtual_intf (net/wireless/rdev-ops.h:62 net/wireless/util.c:2491) cfg80211
[ 114.498543][ T4435] genl_family_rcv_msg_doit (net/netlink/genetlink.c:731) 
[ 114.498670][ T4435] ? genl_family_rcv_msg_attrs_parse+0x240/0x240 
[ 114.498798][ T4435] ? security_capable (security/security.c:807 (discriminator 13)) 
[ 114.498888][ T4435] genl_rcv_msg (net/netlink/genetlink.c:778 net/netlink/genetlink.c:795) 
[ 114.498970][ T4435] ? genl_get_cmd (net/netlink/genetlink.c:784) 
[ 114.499054][ T4435] ? netlink_recvmsg (net/netlink/af_netlink.c:2000) 
[ 114.499142][ T4435] ? nl80211_stop_ap (net/wireless/nl80211.c:4295) cfg80211
[ 114.499290][ T4435] ? kasan_set_free_info (mm/kasan/generic.c:372) 
[ 114.499381][ T4435] ? __kasan_slab_free (mm/kasan/common.c:369 mm/kasan/common.c:329 mm/kasan/common.c:375) 
[ 114.499473][ T4435] ? kmem_cache_free (mm/slub.c:1780 mm/slub.c:3534 mm/slub.c:3551) 
[ 114.499589][ T4435] ? netlink_recvmsg (net/netlink/af_netlink.c:2000) 
[ 114.499700][ T4435] ? ____sys_recvmsg (net/socket.c:2701) 
[ 114.499789][ T4435] ? ___sys_recvmsg (net/socket.c:2744) 
[ 114.499876][ T4435] ? __sys_recvmsg (include/linux/file.h:31 net/socket.c:2775) 
[ 114.499961][ T4435] netlink_rcv_skb (net/netlink/af_netlink.c:2540) 
[ 114.500046][ T4435] ? genl_get_cmd (net/netlink/genetlink.c:784) 
[ 114.500132][ T4435] ? netlink_ack (net/netlink/af_netlink.c:2517) 
[ 114.500216][ T4435] ? netlink_recvmsg (net/netlink/af_netlink.c:514) 
[ 114.500306][ T4435] ? _copy_from_iter (lib/iov_iter.c:628 (discriminator 11)) 
[ 114.500400][ T4435] genl_rcv (net/netlink/genetlink.c:807) 
[ 114.500474][ T4435] netlink_unicast (net/netlink/af_netlink.c:1320 net/netlink/af_netlink.c:1345) 
[ 114.500607][ T4435] ? netlink_attachskb (net/netlink/af_netlink.c:1330) 
[ 114.500720][ T4435] ? check_heap_object (arch/x86/include/asm/bitops.h:207 arch/x86/include/asm/bitops.h:239 include/asm-generic/bitops/instrumented-non-atomic.h:142 include/linux/page-flags.h:487 mm/usercopy.c:193) 
[ 114.500812][ T4435] netlink_sendmsg (net/netlink/af_netlink.c:1921) 
[ 114.500898][ T4435] ? netlink_unicast (net/netlink/af_netlink.c:1841) 
[ 114.500987][ T4435] ? __import_iovec (lib/iov_iter.c:1771) 
[ 114.501073][ T4435] ? netlink_unicast (net/netlink/af_netlink.c:1841) 
[ 114.501161][ T4435] sock_sendmsg (net/socket.c:714 net/socket.c:734) 
[ 114.501242][ T4435] ____sys_sendmsg (net/socket.c:2482) 
[ 114.501330][ T4435] ? kernel_sendmsg (net/socket.c:2429) 
[ 114.501414][ T4435] ? __copy_msghdr (net/socket.c:2409) 
[ 114.501500][ T4435] ___sys_sendmsg (net/socket.c:2538) 
[ 114.501612][ T4435] ? __ia32_sys_recvmmsg (net/socket.c:2525) 
[ 114.501728][ T4435] ? __fsnotify_update_child_dentry_flags (fs/notify/fsnotify.c:180) 
[ 114.501846][ T4435] ? __generic_file_write_iter (mm/filemap.c:3866) 
[ 114.501948][ T4435] ? _copy_from_user (arch/x86/include/asm/uaccess_64.h:46 arch/x86/include/asm/uaccess_64.h:52 lib/usercopy.c:16) 
[ 114.502035][ T4435] ? netlink_setsockopt (net/netlink/af_netlink.c:1630) 
[ 114.502130][ T4435] ? __fget_light (arch/x86/include/asm/atomic.h:29 include/linux/atomic/atomic-instrumented.h:28 fs/file.c:1005) 
[ 114.502213][ T4435] __sys_sendmsg (include/linux/file.h:31 net/socket.c:2567) 
[ 114.502297][ T4435] ? __sys_sendmsg_sock (net/socket.c:2553) 
[ 114.502386][ T4435] ? __sys_setsockopt (net/socket.c:2254) 
[ 114.502477][ T4435] ? __x64_sys_setsockopt (net/socket.c:2260) 
[ 114.502598][ T4435] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) 
[ 114.502703][ T4435] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) 
[  114.502809][ T4435] RIP: 0033:0x7f67dca8d2c3
[ 114.502890][ T4435] Code: 64 89 02 48 c7 c0 ff ff ff ff eb b7 66 2e 0f 1f 84 00 00 00 00 00 90 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 89 54 24 1c 48
All code
========
   0:	64 89 02             	mov    %eax,%fs:(%rdx)
   3:	48 c7 c0 ff ff ff ff 	mov    $0xffffffffffffffff,%rax
   a:	eb b7                	jmp    0xffffffffffffffc3
   c:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  13:	00 00 00 
  16:	90                   	nop
  17:	64 8b 04 25 18 00 00 	mov    %fs:0x18,%eax
  1e:	00 
  1f:	85 c0                	test   %eax,%eax
  21:	75 14                	jne    0x37
  23:	b8 2e 00 00 00       	mov    $0x2e,%eax
  28:	0f 05                	syscall 
  2a:*	48 3d 00 f0 ff ff    	cmp    $0xfffffffffffff000,%rax		<-- trapping instruction
  30:	77 55                	ja     0x87
  32:	c3                   	retq   
  33:	0f 1f 40 00          	nopl   0x0(%rax)
  37:	48 83 ec 28          	sub    $0x28,%rsp
  3b:	89 54 24 1c          	mov    %edx,0x1c(%rsp)
  3f:	48                   	rex.W

Code starting with the faulting instruction
===========================================
   0:	48 3d 00 f0 ff ff    	cmp    $0xfffffffffffff000,%rax
   6:	77 55                	ja     0x5d
   8:	c3                   	retq   
   9:	0f 1f 40 00          	nopl   0x0(%rax)
   d:	48 83 ec 28          	sub    $0x28,%rsp
  11:	89 54 24 1c          	mov    %edx,0x1c(%rsp)
  15:	48                   	rex.W


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

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



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-6.0.0-rc4-00989-gf6390526ee0b" of type "text/plain" (167507 bytes)

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

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

View attachment "hwsim" of type "text/plain" (31814 bytes)

View attachment "job.yaml" of type "text/plain" (4651 bytes)

View attachment "reproduce" of type "text/plain" (3665 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ