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: <20190117085700.GA21853@shao2-debian>
Date:   Thu, 17 Jan 2019 16:57:00 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Ming Lei <ming.lei@...hat.com>
Cc:     Jens Axboe <axboe@...nel.dk>, Christoph Hellwig <hch@....de>,
        Omar Sandoval <osandov@...com>,
        LKML <linux-kernel@...r.kernel.org>, Jens Axboe <axboe@...com>,
        lkp@...org
Subject: [LKP] [block] 258cfdfaf7: kernel_BUG_at_block/bio.c

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

commit: 258cfdfaf7bd729e759a0a91fd00ac9794796ad3 ("block: use bio_for_each_bvec() to compute multi-page bvec count")
https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git for-next

in testcase: trinity
with following parameters:

	runtime: 300s

test-description: Trinity is a linux system call fuzz tester.
test-url: http://codemonkey.org.uk/projects/trinity/


on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 512M

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


+----------------------------------------------------+------------+------------+
|                                                    | cad1e6bb0e | 258cfdfaf7 |
+----------------------------------------------------+------------+------------+
| boot_successes                                     | 0          | 0          |
| boot_failures                                      | 30         | 32         |
| WARNING:at_mm/page_alloc.c:#__alloc_pages_nodemask | 30         | 32         |
| EIP:__alloc_pages_nodemask                         | 30         | 32         |
| Mem-Info                                           | 30         | 32         |
| kernel_BUG_at_block/bio.c                          | 0          | 32         |
| invalid_opcode:#[##]                               | 0          | 32         |
| EIP:bio_split                                      | 0          | 32         |
| Kernel_panic-not_syncing:Fatal_exception           | 0          | 32         |
+----------------------------------------------------+------------+------------+



[   17.426459] kernel BUG at block/bio.c:1816!
[   17.432022] invalid opcode: 0000 [#1] DEBUG_PAGEALLOC
[   17.432845] CPU: 0 PID: 1 Comm: swapper Tainted: G        W         5.0.0-rc2-00146-g258cfdf #266
[   17.432845] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   17.432845] EIP: bio_split+0x68/0x80
[   17.432845] Code: 0a 89 d8 e8 ca f1 01 00 8b 53 24 89 f0 e8 50 f7 ff ff f6 46 0d 04 89 d8 74 06 66 81 4b 0c 00 04 5b 5e 5f 5d c3 8d 74 26 00 90 <0f> 0b 8d b6 00 00 00 00 0f 0b 8d b6 00 00 00 00 31 c0 eb e2 8d 74
[   17.432845] EAX: c5455f80 EBX: 00000000 ECX: 00600000 EDX: 00000000
[   17.432845] ESI: 00000000 EDI: 00001000 EBP: b0171ac4 ESP: b0171ab8
[   17.432845] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 EFLAGS: 00210246
[   17.432845] CR0: 80050033 CR2: 00000000 CR3: 01ebe000 CR4: 000406d0
[   17.432845] Call Trace:
[   17.432845]  blk_queue_split+0x486/0x610
[   17.432845]  blk_mq_make_request+0x5d/0x480
[   17.432845]  ? blk_queue_enter+0x109/0x2e0
[   17.432845]  generic_make_request+0x19c/0x370
[   17.432845]  ? find_held_lock+0x34/0xc0
[   17.432845]  submit_bio+0x49/0x100
[   17.432845]  ? guard_bio_eod+0x5e/0x120
[   17.432845]  ? guard_bio_eod+0x78/0x120
[   17.432845]  submit_bh_wbc+0x10c/0x160
[   17.432845]  block_read_full_page+0x1f4/0x340
[   17.432845]  ? I_BDEV+0x10/0x10
[   17.432845]  ? __add_to_page_cache_locked+0x140/0x3b0
[   17.432845]  ? lru_cache_add+0x58/0x150
[   17.432845]  ? add_to_page_cache_lru+0xb3/0x1c0
[   17.432845]  ? blkdev_writepages+0x10/0x10
[   17.432845]  blkdev_readpage+0xf/0x20
[   17.432845]  do_read_cache_page+0x23b/0x4f0
[   17.432845]  ? blkdev_writepages+0x10/0x10
[   17.432845]  read_cache_page+0xe/0x10
[   17.432845]  read_dev_sector+0x25/0x100
[   17.432845]  read_lba+0x13b/0x260
[   17.432845]  efi_partition+0xda/0xae0
[   17.432845]  ? __alloc_pages_nodemask+0x10c/0xce0
[   17.432845]  ? string+0x69/0x80
[   17.432845]  ? string+0x69/0x80
[   17.432845]  ? vsnprintf+0x250/0x3c0
[   17.432845]  ? is_gpt_valid+0x4b0/0x4b0
[   17.432845]  check_partition+0x115/0x200
[   17.432845]  ? check_partition+0x115/0x200
[   17.432845]  rescan_partitions+0x72/0x370
[   17.432845]  ? up_write+0x16/0x30
[   17.432845]  __blkdev_get+0x25c/0x420
[   17.432845]  blkdev_get+0x104/0x310
[   17.432845]  ? put_device+0xf/0x20
[   17.432845]  ? put_device+0xf/0x20
[   17.432845]  __device_add_disk+0x42a/0x480
[   17.432845]  ? device_initialize+0xb1/0x100
[   17.432845]  ? __alloc_disk_node+0xf6/0x120
[   17.432845]  device_add_disk+0xa/0x10
[   17.432845]  null_add_dev+0x2a5/0x6f0
[   17.432845]  null_init+0x1d0/0x254
[   17.432845]  ? mtip_init+0x126/0x126
[   17.432845]  do_one_initcall+0x52/0x1b0
[   17.432845]  ? set_reset_devices+0x11/0x14
[   17.432845]  ? kernel_init_freeable+0x110/0x1fa
[   17.432845]  kernel_init_freeable+0x178/0x1fa
[   17.432845]  ? rest_init+0x100/0x100
[   17.432845]  kernel_init+0x8/0xe0
[   17.432845]  ret_from_fork+0x19/0x30
[   17.432845] Modules linked in:
[   17.566487] ---[ end trace 73ee84c97ef734a5 ]---


To reproduce:

        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.0.0-rc2-00146-g258cfdf" of type "text/plain" (127405 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ