From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6376CC43381 for ; Thu, 21 Feb 2019 01:15:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2719F2086D for ; Thu, 21 Feb 2019 01:15:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UH4FChUl" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726090AbfBUBPj (ORCPT ); Wed, 20 Feb 2019 20:15:39 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35603 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbfBUBPj (ORCPT ); Wed, 20 Feb 2019 20:15:39 -0500 Received: by mail-wr1-f68.google.com with SMTP id t18so28191768wrx.2 for ; Wed, 20 Feb 2019 17:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=abpqlNO2DxDPlAbkTCOCHjbSslG7feUGUOM0tPvsCg8=; b=UH4FChUldgA0PDZjJ8+xLpReU5ONaqwc1+gILUZ8em2OLO378eXYlqbAiI7PkWH4g1 aLjVo5naj84O1P8i7xPcAq5ZVJC5+cOP7N98C4o36DqsoSIAQ+bz9AWJwXtH8QKSnPp7 R0pDfhTf8LpCBahM9lzxS7xuBnm3o0TzAcJYhYT+cdKPE5gk/b868iM7UrWL+yMF8Gm7 5mm06PFJVfl0j/FXScxZGO/GSAPDV/M3AbD1YR8OdscDy45x2TIzC3JCfVfz6yNq4YZh k88I9r81PKd+q8a2SgkEcdVzF3xZXziUScUPOdLMmfIjWI3Qzh3r8/I4LQMGaezn5RjD Z09w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=abpqlNO2DxDPlAbkTCOCHjbSslG7feUGUOM0tPvsCg8=; b=A0gsBRk5h4RxsJG6T81wzetjrn6tf0nslnV72OZiqnbI2ltNhadsKjC4qrnUUMH9uP HVdZB+OvjHVdaFFl1V5TzniV7Lnpo6EWbWB5Gp6MDP8dkHbd+Vp2KRgCkvxNCczuj0yT qE3PCyg2BpmmUmsGVwsa8y2T1/3H33rrty0En6KZJ5Nvcd/aHHVPhpwhzlbZtp+knuxV G5aAxA0oaEMwIni+B+NMNv1NGD0rRfyePma1xSPu8+ctginK6mQedAEMHQNf6R0fPMG+ mROVLG4du1Al0bvC2yYs+YjF3TqrnbNzFfY1NkwLnrSQQUvCvp+QU6PVyhnKAl5W1aNB Fxpg== X-Gm-Message-State: AHQUAubbiJiKGgWLnWeJE7NZxRPSMQmOHCKVH6Rf8EL68R7Ptp78IrOH YdwK7Z42fBhqNgFYS4RzhT+SUNMD65KfQjLWl3g= X-Google-Smtp-Source: AHgI3IaCZs53a9oaOEwgoEW7FgAQ/j72rt4Vp0zUo30RkRdBsU2UKuWiJ7h8/dNGkayGjlxlfafB10ho67yNdJfjGQU= X-Received: by 2002:adf:ee82:: with SMTP id b2mr28672086wro.185.1550711736771; Wed, 20 Feb 2019 17:15:36 -0800 (PST) MIME-Version: 1.0 From: Ming Lei Date: Thu, 21 Feb 2019 09:15:25 +0800 Message-ID: Subject: [BUG] DM: kernel BUG at block/bio.c:1872! To: Mike Snitzer , "open list:DEVICE-MAPPER (LVM)" Cc: linux-block Content-Type: text/plain; charset="UTF-8" Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi, Just saw the following kernel panic on today's -next by running generic/081 of xfstests. [ 307.026552] run fstests generic/081 at 2019-02-20 17:01:42 [ 307.647611] ------------[ cut here ]------------ [ 307.648318] kernel BUG at block/bio.c:1872! [ 307.648950] invalid opcode: 0000 [#1] PREEMPT SMP PTI [ 307.649695] CPU: 0 PID: 20837 Comm: mkfs.ext4 Not tainted 5.0.0-rc7_abf446c90405_master-next-20190220 #1 [ 307.651039] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.10.2-2.fc27 04/01/2014 [ 307.652267] RIP: 0010:bio_split+0xf/0x70 [ 307.652828] Code: e8 64 e1 02 00 85 c0 79 0a 48 89 df 31 db e8 cc f9 ff ff 48 89 d8 5b 5d 41 5c c3 0f 1f 44 00 00 85 f6 41 54 55 89 f5 53 7f 02 <0f> 0b 89 d6 8b 57 30 c1 ea 09 39 ea 77 02 0f 0b 48 89 ca 49 89 fc [ 307.655473] RSP: 0018:ffffc90000a13ae8 EFLAGS: 00010246 [ 307.656230] RAX: ffff88807e8997d0 RBX: ffff888073660a00 RCX: ffff88807e899de0 [ 307.657250] RDX: 0000000000000c00 RSI: 0000000000000000 RDI: ffff888073660a00 [ 307.658263] RBP: 0000000000000000 R08: 00000000f461fd9b R09: 0000000000000006 [ 307.659268] R10: ffffc90000a13a38 R11: ffff88817662fcf8 R12: ffffc90000955040 [ 307.660288] R13: ffff8880710a0000 R14: ffff88807f14c580 R15: 0000000000000000 [ 307.661303] FS: 00007f503aa59780(0000) GS:ffff888079200000(0000) knlGS:0000000000000000 [ 307.662447] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 307.663243] CR2: 00005611c738e408 CR3: 000000007ecec006 CR4: 0000000000760ef0 [ 307.664264] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 307.665275] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 307.666268] PKRU: 55555554 [ 307.666654] Call Trace: [ 307.667014] __split_and_process_bio+0x10a/0x244 [dm_mod] [ 307.667814] ? get_page_from_freelist+0xa91/0x1031 [ 307.668526] ? bd_set_size+0x1d/0x37 [ 307.669061] dm_process_bio+0x321/0x335 [dm_mod] [ 307.669728] ? generic_make_request_checks+0x4b1/0x55a [ 307.670481] dm_make_request+0x66/0x7f [dm_mod] [ 307.671161] generic_make_request+0x1b6/0x322 [ 307.671784] ? submit_bio+0x103/0x11f [ 307.672332] submit_bio+0x103/0x11f [ 307.672841] ? bio_associate_blkg+0x4d/0x53 [ 307.673468] submit_bio_wait+0x53/0x7f [ 307.674036] blkdev_issue_discard+0x7c/0xc2 [ 307.674656] ? blk_ioctl_discard+0xd1/0xf3 [ 307.675252] blk_ioctl_discard+0xd1/0xf3 [ 307.675827] blkdev_ioctl+0x315/0x8be [ 307.676365] block_ioctl+0x3c/0x3f [ 307.676856] vfs_ioctl+0x1e/0x2b [ 307.677345] do_vfs_ioctl+0x531/0x559 [ 307.677888] ? handle_mm_fault+0x1a8/0x1f9 [ 307.678480] ksys_ioctl+0x3e/0x5d [ 307.678974] __x64_sys_ioctl+0x16/0x19 [ 307.679536] do_syscall_64+0x84/0x13f [ 307.680066] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 307.680813] RIP: 0033:0x7f50398c7267 [ 307.681349] Code: b3 66 90 48 8b 05 19 3c 2c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e9 3b 2c 00 f7 d8 64 89 01 48 [ 307.684000] RSP: 002b:00007ffc3fd8fb68 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 307.685098] RAX: ffffffffffffffda RBX: 00005611c738d020 RCX: 00007f50398c7267 [ 307.686130] RDX: 00007ffc3fd8fb70 RSI: 0000000000001277 RDI: 0000000000000003 [ 307.687156] RBP: 00007f503a842660 R08: 00005611c7388fc0 R09: 0000000000000000 [ 307.688196] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 307.689222] R13: 0000000000040000 R14: 0000000000000000 R15: 0000000000000000 [ 307.690252] Modules linked in: dm_snapshot dm_bufio xfs libcrc32c dm_flakey isofs dm_service_time dm_multipath iTCO_wdt iTCO_vendor_support i2c_i801 i2c_core lpc_ich mfd_core ip_tables sr_mod sd_mod cdrom usb_storage ahci libahci libata crc32c_intel virtio_scsi qemu_fw_cfg dm_mirror dm_region_hash dm_log dm_mod [ 307.694201] Dumping ftrace buffer: [ 307.694700] (ftrace buffer empty) [ 307.695262] ---[ end trace f8142e64e118e61c ]--- Thanks, Ming Lei