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]
Date:   Thu, 21 May 2020 16:46:31 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Roopa Prabhu <roopa@...ulusnetworks.com>
Cc:     dsahern@...il.com, davem@...emloft.net, netdev@...r.kernel.org,
        nikolay@...ulusnetworks.com, jiri@...lanox.com,
        idosch@...lanox.com, petrm@...lanox.com, lkp@...ts.01.org
Subject: [vxlan] dcf6d31edc: BUG:spinlock_bad_magic_on_CPU

Greeting,

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

commit: dcf6d31edcdfcc2f6a71a4588ee6916ba8d98abe ("[PATCH net-next v2 4/5] vxlan: support for nexthop notifiers")
url: https://github.com/0day-ci/linux/commits/Roopa-Prabhu/Support-for-fdb-ECMP-nexthop-groups/20200520-223707


in testcase: boot

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

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 <rong.a.chen@...el.com>


[   22.242861] BUG: spinlock bad magic on CPU#0, swapper/0/1
[   22.243939]  lock: init_net+0x380/0x1c40, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0
[   22.245630] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.7.0-rc5-01820-gdcf6d31edcdfc #1
[   22.247289] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   22.248922] Call Trace:
[   22.249548]  dump_stack+0x8f/0xcb
[   22.250296]  do_raw_spin_lock+0x71/0xc0
[   22.251109]  _raw_spin_lock_irqsave+0x4e/0x60
[   22.251996]  ? atomic_notifier_chain_register+0x14/0x70
[   22.253022]  atomic_notifier_chain_register+0x14/0x70
[   22.254042]  ops_init+0x40/0x170
[   22.254661]  ? rdinit_setup+0x2b/0x2b
[   22.255384]  register_pernet_operations+0x11b/0x240
[   22.256288]  ? veth_init+0x11/0x11
[   22.257004]  register_pernet_subsys+0x24/0x40
[   22.257935]  vxlan_init_module+0x23/0x87
[   22.258759]  do_one_initcall+0x5d/0x320
[   22.259535]  ? rdinit_setup+0x2b/0x2b
[   22.260285]  ? rcu_read_lock_sched_held+0x52/0x80
[   22.261177]  kernel_init_freeable+0x260/0x2da
[   22.262086]  ? rest_init+0x250/0x250
[   22.262846]  kernel_init+0xa/0x110
[   22.263564]  ret_from_fork+0x3a/0x50
[   22.269764] 8021q: adding VLAN 0 to HW filter on device eth0
[   22.271101] IP-Config: Failed to open gretap0
[   22.271862] IP-Config: Failed to open erspan0
[   22.284305] Sending DHCP requests .
[   24.278845] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX
[   24.283720] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   24.780278] ., OK
[   24.781519] IP-Config: Got DHCP answer from 10.0.2.2, my address is 10.0.2.15
[   24.782786] IP-Config: Complete:
[   24.783513]      device=eth0, hwaddr=52:54:00:12:34:56, ipaddr=10.0.2.15, mask=255.255.255.0, gw=10.0.2.2
[   24.785342]      host=vm-snb-ssd-68, domain=, nis-domain=(none)
[   24.786511]      bootserver=10.0.2.2, rootserver=10.0.2.2, rootpath=
[   24.786513]      nameserver0=10.0.2.3
[   24.811488] Freeing unused decrypted memory: 2040K
[   24.813873] Freeing unused kernel image (initmem) memory: 2492K
[   24.818291] Write protecting the kernel read-only data: 28672k
[   24.821352] Freeing unused kernel image (text/rodata gap) memory: 2040K
[   24.823377] Freeing unused kernel image (rodata/data gap) memory: 1060K
[   24.824693] rodata_test: all tests were successful
[   24.825746] Run /init as init process
[   24.826612]   with arguments:
[   24.827378]     /init
[   24.828001]   with environment:
[   24.828766]     HOME=/
[   24.829415]     TERM=linux
[   24.830060]     user=lkp
[   24.830743]     job=/lkp/jobs/scheduled/vm-snb-ssd-68/boot-1-yocto-x86_64-minimal-20190520.cgz-dcf6d31edcdfcc2f6a71a4588ee6916ba8d98abe-20200521-9044-sbd554-2.yaml
[   24.833493]     ARCH=x86_64
[   24.834158]     kconfig=x86_64-rhel-7.6-kselftests
[   24.835146]     branch=linux-devel/devel-catchup-202005210110
[   24.836298]     commit=dcf6d31edcdfcc2f6a71a4588ee6916ba8d98abe
[   24.837463]     BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.6-kselftests/gcc-7/dcf6d31edcdfcc2f6a71a4588ee6916ba8d98abe/vmlinuz-5.7.0-rc5-01820-gdcf6d31edcdfc
[   24.839809]     max_uptime=600
[   24.840536]     RESULT_ROOT=/result/boot/1/vm-snb-ssd/yocto-x86_64-minimal-20190520.cgz/x86_64-rhel-7.6-kselftests/gcc-7/dcf6d31edcdfcc2f6a71a4588ee6916ba8d98abe/3
[   24.843303]     LKP_SERVER=inn
[   24.844014]     prompt_ramdisk=0
[   24.844775]     vga=normal
Starting udev
[   24.930760] udevd[202]: starting version 3.2.7
[   24.932154] random: udevd: uninitialized urandom read (16 bytes read)
[   24.933434] random: udevd: uninitialized urandom read (16 bytes read)
[   24.934660] random: udevd: uninitialized urandom read (16 bytes read)
[   24.937351] udevd[202]: specified group 'kvm' unknown
[   24.940415] udevd[203]: starting eudev-3.2.7
[   24.966274] udevd[203]: specified group 'kvm' unknown
[   25.028617] piix4_smbus 0000:00:01.3: SMBus Host Controller at 0x700, revision 0
[   25.082190] input: PC Speaker as /devices/platform/pcspkr/input/input5
[   25.085091] Floppy drive(s): fd0 is 2.88M AMI BIOS
[   25.100857] FDC 0 is a S82078B
[   25.112734] scsi host0: Virtio SCSI HBA
[   25.114776] scsi 0:0:1:0: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.116769] scsi 0:0:1:10: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.121143] scsi 0:0:1:9: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.123826] parport_pc 00:04: reported by Plug and Play ACPI
[   25.125347] scsi 0:0:1:8: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.127387] scsi 0:0:1:7: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.134463] scsi 0:0:1:6: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.136315] scsi 0:0:1:5: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.138160] scsi 0:0:1:4: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.139900] scsi 0:0:1:3: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.141513] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[   25.142995] scsi 0:0:1:2: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.144867] scsi 0:0:1:1: Direct-Access     QEMU     QEMU HARDDISK    2.5+ PQ: 0 ANSI: 5
[   25.175988] libata version 3.00 loaded.
[   25.183494] ata_piix 0000:00:01.1: version 2.13
[   25.194549] random: fast init done
[   25.197091] bochs-drm 0000:00:02.0: vgaarb: deactivate vga console
[   25.204962] Console: switching to colour dummy device 80x25
[   25.206691] [drm] Found bochs VGA, ID 0xb0c0.
[   25.207289] [drm] Framebuffer size 16384 kB @ 0xfd000000, mmio @ 0xfebf0000.
[   25.208765] scsi host1: ata_piix
[   25.210258] [TTM] Zone  kernel: Available graphics memory: 4065162 KiB
[   25.212273] scsi host2: ata_piix
[   25.212865] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc080 irq 14
[   25.213868] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc088 irq 15
[   25.214810] [TTM] Zone   dma32: Available graphics memory: 2097152 KiB
[   25.215581] [TTM] Initializing pool allocator
[   25.216166] [TTM] Initializing DMA pool allocator


To reproduce:

        # build kernel
	cd linux
	cp config-5.7.0-rc5-01820-gdcf6d31edcdfc .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

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



Thanks,
Rong Chen


View attachment "config-5.7.0-rc5-01820-gdcf6d31edcdfc" of type "text/plain" (205292 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ