[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210117150244.GF30300@xsang-OptiPlex-9020>
Date: Sun, 17 Jan 2021 23:02:44 +0800
From: kernel test robot <oliver.sang@...el.com>
To: Miquel Raynal <miquel.raynal@...tlin.com>
Cc: LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org,
lkp@...el.com
Subject: [mtd] 35fe1b98a0:
WARNING:at_drivers/mtd/nand/raw/nand_base.c:#nand_set_ecc_soft_ops
Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: 35fe1b98a0082ad3f576bcc420c74dab435da307 ("mtd: nand: ecc-hamming: Create the software Hamming engine")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
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):
+--------------------------------------------------------------------+------------+------------+
| | 5180a62c12 | 35fe1b98a0 |
+--------------------------------------------------------------------+------------+------------+
| boot_successes | 0 | 0 |
| boot_failures | 6 | 8 |
| WARNING:at_drivers/mtd/nand/raw/nand_base.c:#nand_scan_tail | 6 | |
| RIP:nand_scan_tail | 6 | |
| WARNING:at_drivers/mtd/nand/raw/nand_base.c:#nand_set_ecc_soft_ops | 0 | 8 |
| RIP:nand_set_ecc_soft_ops | 0 | 8 |
+--------------------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang@...el.com>
[ 190.636042] WARNING: CPU: 1 PID: 1 at drivers/mtd/nand/raw/nand_base.c:5346 nand_set_ecc_soft_ops (kbuild/src/consumer/drivers/mtd/nand/raw/nand_base.c:5346)
[ 190.637207] Modules linked in:
[ 190.637720] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 5.10.0-rc6-00019-g35fe1b98a008 #1
[ 190.638697] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 190.639707] RIP: 0010:nand_set_ecc_soft_ops (kbuild/src/consumer/drivers/mtd/nand/raw/nand_base.c:5346)
[ 190.640334] Code: ff 89 ab 20 06 00 00 90 48 c7 c7 80 98 b9 9f 48 ff 05 88 cd 35 07 e8 e2 92 e5 00 48 ff 05 84 cd 35 07 90 48 ff 05 84 cd 35 07 <0f> 0b 48 ff 05 83 cd 35 07 48 ff 05 84 cd 35 07 90 48 ff 05 84 cd
All code
========
0: ff 89 ab 20 06 00 decl 0x620ab(%rcx)
6: 00 90 48 c7 c7 80 add %dl,-0x7f3838b8(%rax)
c: 98 cwtl
d: b9 9f 48 ff 05 mov $0x5ff489f,%ecx
12: 88 cd mov %cl,%ch
14: 35 07 e8 e2 92 xor $0x92e2e807,%eax
19: e5 00 in $0x0,%eax
1b: 48 ff 05 84 cd 35 07 incq 0x735cd84(%rip) # 0x735cda6
22: 90 nop
23: 48 ff 05 84 cd 35 07 incq 0x735cd84(%rip) # 0x735cdae
2a:* 0f 0b ud2 <-- trapping instruction
2c: 48 ff 05 83 cd 35 07 incq 0x735cd83(%rip) # 0x735cdb6
33: 48 ff 05 84 cd 35 07 incq 0x735cd84(%rip) # 0x735cdbe
3a: 90 nop
3b: 48 rex.W
3c: ff .byte 0xff
3d: 05 .byte 0x5
3e: 84 cd test %cl,%ch
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 48 ff 05 83 cd 35 07 incq 0x735cd83(%rip) # 0x735cd8c
9: 48 ff 05 84 cd 35 07 incq 0x735cd84(%rip) # 0x735cd94
10: 90 nop
11: 48 rex.W
12: ff .byte 0xff
13: 05 .byte 0x5
14: 84 cd test %cl,%ch
[ 190.642551] RSP: 0000:ffff888100337cb0 EFLAGS: 00010202
[ 190.643252] RAX: 0000000000000000 RBX: ffff888114a9c000 RCX: 0000000000000000
[ 190.644040] RDX: 0000000000000000 RSI: 0000000000000006 RDI: ffffed1020066f8c
[ 190.644888] RBP: 0000000000000100 R08: fffffbfff42297b9 R09: fffffbfff42297b9
[ 190.645793] R10: ffffffffa114bdc3 R11: 0000000000000000 R12: ffff888114a9c048
[ 190.646656] R13: ffff888114a9c01c R14: ffff888114a9c960 R15: ffff888114a9c898
[ 190.647518] FS: 0000000000000000(0000) GS:ffff8881f6b00000(0000) knlGS:0000000000000000
[ 190.648468] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 190.649184] CR2: 0000000000000000 CR3: 000000004da15000 CR4: 00000000000406a0
[ 190.650108] Call Trace:
[ 190.650486] nand_scan_tail (kbuild/src/consumer/drivers/mtd/nand/raw/nand_base.c:5786)
[ 190.655339] nand_scan_with_ids (kbuild/src/consumer/drivers/mtd/nand/raw/nand_base.c:6024)
[ 190.655897] ? nand_detect (kbuild/src/consumer/drivers/mtd/nand/raw/nand_base.c:6010)
[ 190.656430] ? debug_mutex_init (kbuild/src/consumer/kernel/locking/mutex-debug.c:90)
[ 190.656970] ns_init_module (kbuild/src/consumer/include/linux/mtd/rawnand.h:1385 kbuild/src/consumer/drivers/mtd/nand/raw/nandsim.c:2335)
[ 190.657583] ? ns_init (kbuild/src/consumer/drivers/mtd/nand/raw/nandsim.c:2256)
[ 190.658062] ? lock_is_held (kbuild/src/consumer/include/linux/lockdep.h:271)
[ 190.658551] ? rcu_read_lock_sched_held (kbuild/src/consumer/kernel/rcu/update.c:123)
[ 190.659158] ? rcu_read_lock_held (kbuild/src/consumer/kernel/rcu/update.c:118)
[ 190.659691] ? ns_init (kbuild/src/consumer/drivers/mtd/nand/raw/nandsim.c:2256)
[ 190.660132] do_one_initcall (kbuild/src/consumer/init/main.c:1217)
[ 190.660641] ? test_bit (kbuild/src/consumer/include/asm-generic/bitops/instrumented-non-atomic.h:136)
[ 190.661204] ? lock_is_held (kbuild/src/consumer/include/linux/lockdep.h:271)
[ 190.661756] ? rcu_read_lock_sched_held (kbuild/src/consumer/kernel/rcu/update.c:123)
[ 190.662361] ? rcu_read_lock_held (kbuild/src/consumer/kernel/rcu/update.c:118)
[ 190.662923] ? __kasan_check_read (kbuild/src/consumer/mm/kasan/common.c:71)
[ 190.663458] do_initcalls (kbuild/src/consumer/init/main.c:1290 kbuild/src/consumer/init/main.c:1306)
[ 190.663945] kernel_init_freeable (kbuild/src/consumer/init/main.c:1326 kbuild/src/consumer/init/main.c:1526)
[ 190.664505] ? rest_init (kbuild/src/consumer/init/main.c:1412)
[ 190.664971] kernel_init (kbuild/src/consumer/init/main.c:1415)
[ 190.665559] ret_from_fork (kbuild/src/consumer/arch/x86/entry/entry_64.S:302)
[ 190.666047] irq event stamp: 2431767
[ 190.666530] hardirqs last enabled at (2431775): console_unlock (kbuild/src/consumer/kernel/printk/printk.c:2528 (discriminator 1))
[ 190.667619] hardirqs last disabled at (2431782): console_unlock (kbuild/src/consumer/kernel/printk/printk.c:2443 (discriminator 1))
[ 190.668670] softirqs last enabled at (2431374): __do_softirq (kbuild/src/consumer/kernel/softirq.c:325)
[ 190.669779] softirqs last disabled at (2431369): asm_call_irq_on_stack (kbuild/src/consumer/arch/x86/entry/entry_64.S:796)
[ 190.670896] ---[ end trace 896c9586f418a848 ]---
[ 190.671536] [nandsim] error: Could not scan NAND Simulator device
[ 190.673236] HSI/SSI char device loaded
[ 190.674442] vcan: Virtual CAN interface driver
[ 190.675051] slcan: serial line CAN interface driver
[ 190.675671] slcan: 10 dynamic interface channels.
[ 190.676333] CAN device driver interface
[ 190.677294] usbcore: registered new interface driver ems_usb
[ 190.678591] usbcore: registered new interface driver esd_usb2
[ 190.679769] usbcore: registered new interface driver mcba_usb
[ 190.680898] usbcore: registered new interface driver peak_usb
[ 190.682179] usbcore: registered new interface driver ucan
[ 190.684824] sja1000 CAN netdevice driver
[ 190.685389] sja1000_isa: insufficient parameters supplied
[ 190.686523] e1000: Intel(R) PRO/1000 Network Driver
[ 190.687213] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 198.480484] PCI Interrupt Link [LNKC] enabled at IRQ 11
[ 198.502993] Writes: Total: 5831453 Max/Min: 1488300/1442479 Fail: 0
[ 198.988397] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 52:54:00:12:34:56
[ 198.989358] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
[ 198.993833] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 198.994651] ehci-pci: EHCI PCI platform driver
[ 198.995541] ehci-platform: EHCI generic platform driver
[ 198.997150] driver u132_hcd
[ 199.002168] ehci-fsl: Freescale EHCI Host controller driver
[ 199.003130] fotg210_hcd: FOTG210 Host Controller (EHCI) Driver
[ 199.004605] usbcore: registered new interface driver cdc_acm
[ 199.005256] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 199.006605] usbcore: registered new interface driver cdc_wdm
[ 199.009075] usbcore: registered new interface driver usbserial_generic
[ 199.010431] usbserial: USB Serial support registered for generic
[ 199.011654] usbcore: registered new interface driver ark3116
[ 199.012525] usbserial: USB Serial support registered for ark3116
[ 199.013671] usbcore: registered new interface driver belkin_sa
[ 199.014574] usbserial: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
[ 199.015956] usbcore: registered new interface driver cp210x
[ 199.017076] usbserial: USB Serial support registered for cp210x
[ 199.018120] usbcore: registered new interface driver cyberjack
[ 199.019082] usbserial: USB Serial support registered for Reiner SCT Cyberjack USB card reader
[ 199.020360] usbcore: registered new interface driver cypress_m8
[ 199.021292] usbserial: USB Serial support registered for DeLorme Earthmate USB
[ 199.022470] usbserial: USB Serial support registered for HID->COM RS232 Adapter
[ 199.023537] usbserial: USB Serial support registered for Nokia CA-42 V2 Adapter
[ 199.024696] usbcore: registered new interface driver usb_debug
[ 199.025692] usbserial: USB Serial support registered for debug
[ 199.026586] usbserial: USB Serial support registered for xhci_dbc
[ 199.027667] usbcore: registered new interface driver f81534a_ctrl
[ 199.028670] usbcore: registered new interface driver f81232
[ 199.030265] usbserial: USB Serial support registered for f81232
[ 199.031142] usbserial: USB Serial support registered for f81534a
[ 199.032180] usbcore: registered new interface driver f81534
[ 199.033073] usbserial: USB Serial support registered for Fintek F81532/F81534
[ 199.034276] usbcore: registered new interface driver ftdi_sio
[ 199.035230] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 199.036434] usbcore: registered new interface driver ipaq
[ 199.037312] usbserial: USB Serial support registered for PocketPC PDA
[ 199.038461] usbcore: registered new interface driver ir_usb
[ 199.039369] usbserial: USB Serial support registered for IR Dongle
[ 199.040350] usbcore: registered new interface driver keyspan
[ 199.041317] usbserial: USB Serial support registered for Keyspan - (without firmware)
[ 199.043015] usbserial: USB Serial support registered for Keyspan 1 port adapter
[ 199.044032] usbserial: USB Serial support registered for Keyspan 2 port adapter
[ 199.045104] usbserial: USB Serial support registered for Keyspan 4 port adapter
[ 199.046408] usbcore: registered new interface driver keyspan_pda
[ 199.047606] usbserial: USB Serial support registered for Keyspan PDA
[ 199.048578] usbserial: USB Serial support registered for Keyspan PDA - (prerenumeration)
[ 199.050318] usbcore: registered new interface driver kl5kusb105
[ 199.051302] usbserial: USB Serial support registered for KL5KUSB105D / PalmConnect
[ 199.052470] usbcore: registered new interface driver kobil_sct
[ 199.053816] usbserial: USB Serial support registered for KOBIL USB smart card terminal
[ 199.055025] usbcore: registered new interface driver mct_u232
[ 199.056025] usbserial: USB Serial support registered for MCT U232
[ 199.057072] usbcore: registered new interface driver metro_usb
[ 199.058072] usbserial: USB Serial support registered for Metrologic USB to Serial
[ 199.059231] usbcore: registered new interface driver mos7720
[ 199.060113] usbserial: USB Serial support registered for Moschip 2 port adapter
[ 199.061254] usbcore: registered new interface driver mos7840
[ 199.062237] usbserial: USB Serial support registered for Moschip 7840/7820 USB Serial Driver
[ 199.067782] usbcore: registered new interface driver navman
To reproduce:
# build kernel
cd linux
cp config-5.10.0-rc6-00019-g35fe1b98a008 .config
make HOSTCC=gcc-9 CC=gcc-9 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,
Oliver Sang
View attachment "config-5.10.0-rc6-00019-g35fe1b98a008" of type "text/plain" (123351 bytes)
View attachment "job-script" of type "text/plain" (4473 bytes)
Download attachment "dmesg.xz" of type "application/x-xz" (21124 bytes)
Powered by blists - more mailing lists