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-next>] [day] [month] [year] [list]
Message-ID: <20190402104526.auvvpgcqxnsris5u@inn2.lkp.intel.com>
Date:   Tue, 2 Apr 2019 18:45:26 +0800
From:   kernel test robot <lkp@...el.com>
To:     Bart Van Assche <bvanassche@....org>
Cc:     Christoph Hellwig <hch@...radead.org>,
        Hannes Reinecke <hare@...e.com>,
        James Smart <james.smart@...adcom.com>,
        Ming Lei <ming.lei@...hat.com>,
        Jianchao Wang <jianchao.w.wang@...cle.com>,
        Dongli Zhang <dongli.zhang@...cle.com>,
        LKML <linux-kernel@...r.kernel.org>,
        Bart Van Assche <bart.vanassche@...disk.com>, lkp@...org
Subject: [block]  67dc83c6fb: WARNING:at_block/blk-core.c:#blk_cleanup_queue


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

commit: 67dc83c6fb5c64f9ff189c6060280b2b51de5af7 ("block: Fix a race between request queue cleanup and running queues")
https://github.com/bvanassche/linux for-next

in testcase: boot

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

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


+-------------------------------------------------+------------+------------+
|                                                 | 8fe43c33b5 | 67dc83c6fb |
+-------------------------------------------------+------------+------------+
| boot_successes                                  | 0          | 0          |
| boot_failures                                   | 8          | 4          |
| BUG:kernel_reboot-without-warning_in_test_stage | 8          |            |
| WARNING:at_block/blk-core.c:#blk_cleanup_queue  | 0          | 4          |
| RIP:blk_cleanup_queue                           | 0          | 4          |
+-------------------------------------------------+------------+------------+



[   12.540233] WARNING: CPU: 0 PID: 43 at block/blk-core.c:353 blk_cleanup_queue+0xcc/0xe0
[   12.543429] Modules linked in: ata_piix(+) soundcore pcspkr serio_raw virtio_scsi(+) i2c_piix4 libata parport_pc(+) parport floppy ip_tables
[   12.547500] CPU: 0 PID: 43 Comm: kworker/u4:1 Not tainted 5.1.0-rc3-00003-g67dc83c #1
[   12.550262] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   12.553131] Workqueue: events_unbound async_run_entry_fn
[   12.557769] RIP: 0010:blk_cleanup_queue+0xcc/0xe0
[   12.559477] Code: ff ff ff 48 83 7b 40 00 74 08 48 89 df e8 3c e6 00 00 48 8d bb 90 00 00 00 5b 5d e9 4e 6c 5c 00 48 89 df e8 f6 8e 00 00 eb ab <0f> 0b eb 87 0f 0b eb c9 66 90 66 2e 0f 1f 84 00 00 00 00 00 66 66
[   12.565472] RSP: 0018:ffffc9000087bc88 EFLAGS: 00010202
[   12.567275] RAX: 0000000000000002 RBX: ffff88807f430000 RCX: 0000000000000000
[   12.569670] RDX: 0000000000000000 RSI: 000000000000009f RDI: 0000000000000000
[   12.572034] RBP: ffff88807f430550 R08: ffff88807f4305a0 R09: ffffc9000087bc20
[   12.574226] R10: ffffea0004b9db00 R11: 0000000000040000 R12: ffff88807f41a178
[   12.576522] R13: ffff88807f41a000 R14: ffff88807fd62f00 R15: 0000000000000000
[   12.578795] FS:  0000000000000000(0000) GS:ffff88813fc00000(0000) knlGS:0000000000000000
[   12.581573] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   12.583424] CR2: 00007fffcab9e0a8 CR3: 000000007fc64000 CR4: 00000000000006f0
[   12.585691] Call Trace:
[   12.586740]  __scsi_remove_device+0x62/0x150
[   12.588186]  scsi_probe_and_add_lun+0x4cb/0xd90
[   12.589749]  __scsi_scan_target+0xf8/0x620
[   12.591299]  ? __switch_to_asm+0x34/0x70
[   12.592726]  ? __switch_to_asm+0x40/0x70
[   12.594123]  ? __switch_to_asm+0x34/0x70
[   12.595514]  ? __switch_to_asm+0x34/0x70
[   12.596907]  ? __switch_to_asm+0x40/0x70
[   12.598273]  scsi_scan_channel+0x5a/0x80
[   12.599743]  scsi_scan_host_selected+0xe3/0x150
[   12.601384]  do_scan_async+0x17/0x1a0
[   12.602686]  async_run_entry_fn+0x39/0x160
[   12.604252]  process_one_work+0x19c/0x3c0
[   12.605671]  worker_thread+0x3c/0x3b0
[   12.606985]  ? process_one_work+0x3c0/0x3c0
[   12.608461]  kthread+0x11e/0x140
[   12.609669]  ? kthread_park+0x90/0x90
[   12.611061]  ret_from_fork+0x35/0x40
[   12.612411] ---[ end trace 8695afb133911ff2 ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.1.0-rc3-00003-g67dc83c .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 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.1.0-rc3-00003-g67dc83c" of type "text/plain" (169522 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ