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=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 E0AD0C4338F for ; Sun, 25 Jul 2021 14:06:33 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 46CE260F3A for ; Sun, 25 Jul 2021 14:06:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 46CE260F3A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=strugglers.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.160801.295294 (Exim 4.92) (envelope-from ) id 1m7elk-000166-D0; Sun, 25 Jul 2021 14:06:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 160801.295294; Sun, 25 Jul 2021 14:06:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m7elk-00015z-9l; Sun, 25 Jul 2021 14:06:16 +0000 Received: by outflank-mailman (input) for mailman id 160801; Sun, 25 Jul 2021 14:06:15 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1m7elj-00015t-Em for xen-devel@lists.xenproject.org; Sun, 25 Jul 2021 14:06:15 +0000 Received: from mail.bitfolk.com (unknown [2001:ba8:1f1:f019::25]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 62bf2b48-f0c5-4a32-84ed-e07be880464b; Sun, 25 Jul 2021 14:06:13 +0000 (UTC) Received: from andy by mail.bitfolk.com with local (Exim 4.89) (envelope-from ) id 1m7elf-0008Up-Mx for xen-devel@lists.xenproject.org; Sun, 25 Jul 2021 14:06:11 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 62bf2b48-f0c5-4a32-84ed-e07be880464b DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bitfolk.com ; s=alpha; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TvQ+33AhUXQhQzeq8xLwUJvXzGmuJ2hIQnhRp09ds6I=; b=0vPcc1H6yFZtPqwNSoXe2MNVcn /pikzM1rNZfKUcc58LBwGJsZJSmFe2BMXR9qcsIRohjk2SMdNLVUtjA3Qplg2vnNK+DrVr2avOw9t Ek+y5GHd8d+XD6CtS5noKe06BBsVQuhjSSebYbULKdpQDXeXufD+UrHcAvEZVcntVnZ/eDqyGdcLH QppT0joR7HY/XRP11zdPPDqF9QEcA2oPGHetkKWB5g6w+oCyboiHfVWViG+2SgZLtftZozNF1TIov u9f5Ws7rcVTd5wAUjtig+iLoVzvuEWcRIerrU5zJSd9ZcGN+Fnhw/PSn2anB9/4TnAf4GdY+XV9SD CbD8rLwQ==; Date: Sun, 25 Jul 2021 14:06:11 +0000 From: Andy Smith To: xen-devel@lists.xenproject.org Subject: Re: 5.10.40 dom0 kernel - nvme: Invalid SGL for payload:131072 nents:13 Message-ID: <20210725140611.cw4bn7cik5wmg2gc@bitfolk.com> References: <20210720223239.fqbwj3escedolaqa@bitfolk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210720223239.fqbwj3escedolaqa@bitfolk.com> OpenPGP: id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc X-URL: http://strugglers.net/wiki/User:Andy User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: andy@strugglers.net X-SA-Exim-Scanned: No (on mail.bitfolk.com); SAEximRunCond expanded to false Hello, On Tue, Jul 20, 2021 at 10:32:39PM +0000, Andy Smith wrote: > I have a Debian 10 (buster/stable) dom0 running hypervisor 4.14.2. > For almost 2 years it's been using the packaged Debian stable kernel > which is 4.19.x. >=20 > Last night I upgraded the kernel to the buster-backports package > which is based on 5.10.40 and about 4 hours later got this: >=20 > Jul 20 02:17:54 lamb kernel: [21061.388607] sg[0] phys_addr:0x00000015eb8= 03000 offset:0 length:4096 dma_address:0x000000209e7b7000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.389775] sg[1] phys_addr:0x00000015eb7= bc000 offset:0 length:4096 dma_address:0x000000209e7b8000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.390874] sg[2] phys_addr:0x00000015eb8= 09000 offset:0 length:4096 dma_address:0x000000209e7b9000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.391974] sg[3] phys_addr:0x00000015eb7= 66000 offset:0 length:4096 dma_address:0x000000209e7ba000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.393042] sg[4] phys_addr:0x00000015eb7= a3000 offset:0 length:4096 dma_address:0x000000209e7bb000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.394086] sg[5] phys_addr:0x00000015eb7= c6000 offset:0 length:4096 dma_address:0x000000209e7bc000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.395078] sg[6] phys_addr:0x00000015eb7= c2000 offset:0 length:4096 dma_address:0x000000209e7bd000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.396042] sg[7] phys_addr:0x00000015eb7= a9000 offset:0 length:4096 dma_address:0x000000209e7be000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.397004] sg[8] phys_addr:0x00000015eb7= 75000 offset:0 length:4096 dma_address:0x000000209e7bf000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.397971] sg[9] phys_addr:0x00000015eb7= c7000 offset:0 length:4096 dma_address:0x00000020ff520000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.398889] sg[10] phys_addr:0x00000015eb= 7cb000 offset:0 length:4096 dma_address:0x00000020ff521000 dma_length:4096 > Jul 20 02:17:54 lamb kernel: [21061.399814] sg[11] phys_addr:0x00000015eb= 7e3000 offset:0 length:61952 dma_address:0x00000020ff522000 dma_length:61952 > Jul 20 02:17:54 lamb kernel: [21061.400754] sg[12] phys_addr:0x00000015eb= 7f2200 offset:512 length:24064 dma_address:0x00000020ff531200 dma_length:24= 064 > Jul 20 02:17:54 lamb kernel: [21061.401781] ------------[ cut here ]-----= ------- > Jul 20 02:17:54 lamb kernel: [21061.402738] Invalid SGL for payload:13107= 2 nents:13 > Jul 20 02:17:54 lamb kernel: [21061.403724] WARNING: CPU: 1 PID: 12669 at= drivers/nvme/host/pci.c:716 nvme_map_data+0x7e0/0x820 [nvme] > Jul 20 02:17:54 lamb kernel: [21061.404728] Modules linked in: binfmt_mis= c ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_tcpmss nf_log_ipv= 6 nf_log_ipv4 nf_log_common xt_LOG xt_limit nfnetlink_log nfnetlink xt_NFLO= G xt_multiport xt_tcpudp ip6table_filter ip6_tables iptable_filter bonding = btrfs blake2b_generic dm_snapshot dm_bufio intel_rapl_msr intel_rapl_common= skx_edac nfit libnvdimm intel_powerclamp crc32_pclmul ghash_clmulni_intel = ipmi_ssif aesni_intel libaes crypto_simd cryptd glue_helper snd_hda_intel s= nd_intel_dspcfg mei_wdt soundwire_intel soundwire_generic_allocation nvme w= dat_wdt snd_soc_core ast snd_compress watchdog drm_vram_helper drm_ttm_help= er soundwire_cadence pcspkr nvme_core ttm snd_hda_codec drm_kms_helper snd_= hda_core i2c_i801 snd_hwdep i2c_smbus cec soundwire_bus snd_pcm drm snd_tim= er snd soundcore igb ptp pps_core i2c_algo_bit joydev mei_me sg mei intel_l= pss_pci intel_lpss idma64 acpi_ipmi ipmi_si ipmi_devintf ioatdma dca wmi ip= mi_msghandler button dm_mod xenfs xen_acpi_processor > Jul 20 02:17:54 lamb kernel: [21061.404831] xen_privcmd xen_pciback xen_= netback xen_blkback xen_gntalloc xen_gntdev xen_evtchn ip_tables x_tables a= utofs4 ext4 crc16 mbcache jbd2 raid456 libcrc32c crc32c_generic async_raid6= _recov async_memcpy async_pq async_xor xor async_tx evdev hid_generic usbhi= d hid raid6_pq raid0 multipath linear raid10 raid1 md_mod sd_mod t10_pi crc= _t10dif crct10dif_generic crct10dif_pclmul crct10dif_common xhci_pci ahci l= ibahci crc32c_intel xhci_hcd libata usbcore scsi_mod usb_common > Jul 20 02:17:54 lamb kernel: [21061.417998] CPU: 1 PID: 12669 Comm: 62.xv= da-0 Not tainted 5.10.0-0.bpo.7-amd64 #1 Debian 5.10.40-1~bpo10+1 > Jul 20 02:17:54 lamb kernel: [21061.418459] Hardware name: Supermicro Sup= er Server/X11SRM-VF, BIOS 1.2a 02/18/2019 > Jul 20 02:17:54 lamb kernel: [21061.418922] RIP: e030:nvme_map_data+0x7e0= /0x820 [nvme] > Jul 20 02:17:54 lamb kernel: [21061.419354] Code: d0 7b c0 48 c7 c7 40 d6= 7b c0 e8 5b 44 c9 c0 8b 93 4c 01 00 00 f6 43 1e 04 75 36 8b 73 28 48 c7 c7= 20 9c 7b c0 e8 8b 71 09 c1 <0f> 0b 41 bd 0a 00 00 00 e9 f7 fe ff ff 48 8d = bd 68 02 00 00 48 89 > Jul 20 02:17:54 lamb kernel: [21061.420271] RSP: e02b:ffffc90044797930 EF= LAGS: 00010286 > Jul 20 02:17:54 lamb kernel: [21061.420727] RAX: 0000000000000000 RBX: ff= ff888157db4200 RCX: 0000000000000027 > Jul 20 02:17:54 lamb kernel: [21061.421186] RDX: 0000000000000027 RSI: ff= ff888292858a00 RDI: ffff888292858a08 > Jul 20 02:17:54 lamb kernel: [21061.421639] RBP: ffff888103243000 R08: 00= 00000000000000 R09: c00000010000118b > Jul 20 02:17:54 lamb kernel: [21061.422090] R10: 0000000000165920 R11: ff= ffc90044797738 R12: ffffffffc07b9bd0 > Jul 20 02:17:54 lamb kernel: [21061.422583] R13: 000000000000000d R14: 00= 00000000000000 R15: 000000000000000d > Jul 20 02:17:54 lamb kernel: [21061.423052] FS: 0000000000000000(0000) G= S:ffff888292840000(0000) knlGS:0000000000000000 > Jul 20 02:17:54 lamb kernel: [21061.423518] CS: e030 DS: 0000 ES: 0000 C= R0: 0000000080050033 > Jul 20 02:17:54 lamb kernel: [21061.423986] CR2: 00007f909a037c30 CR3: 00= 0000010d2dc000 CR4: 0000000000050660 > Jul 20 02:17:54 lamb kernel: [21061.424472] Call Trace: > Jul 20 02:17:54 lamb kernel: [21061.424943] nvme_queue_rq+0x98/0x190 [nv= me] > Jul 20 02:17:54 lamb kernel: [21061.425425] blk_mq_dispatch_rq_list+0x12= 3/0x7d0 > Jul 20 02:17:54 lamb kernel: [21061.425904] ? sbitmap_get+0x66/0x140 > Jul 20 02:17:54 lamb kernel: [21061.426385] ? elv_rb_del+0x1f/0x30 > Jul 20 02:17:54 lamb kernel: [21061.426909] ? deadline_remove_request+0x= 55/0xc0 > Jul 20 02:17:54 lamb kernel: [21061.427373] __blk_mq_do_dispatch_sched+0= x164/0x2d0 > Jul 20 02:17:54 lamb kernel: [21061.427843] __blk_mq_sched_dispatch_requ= ests+0x135/0x170 > Jul 20 02:17:54 lamb kernel: [21061.428310] blk_mq_sched_dispatch_reques= ts+0x30/0x60 > Jul 20 02:17:54 lamb kernel: [21061.428795] __blk_mq_run_hw_queue+0x51/0= xd0 > Jul 20 02:17:54 lamb kernel: [21061.429269] __blk_mq_delay_run_hw_queue+= 0x141/0x160 > Jul 20 02:17:54 lamb kernel: [21061.429752] blk_mq_sched_insert_requests= +0x6a/0xf0 > Jul 20 02:17:54 lamb kernel: [21061.430233] blk_mq_flush_plug_list+0x119= /0x1b0 > Jul 20 02:17:54 lamb kernel: [21061.430756] blk_flush_plug_list+0xd7/0x1= 00 > Jul 20 02:17:54 lamb kernel: [21061.431241] blk_finish_plug+0x21/0x30 > Jul 20 02:17:54 lamb kernel: [21061.431734] dispatch_rw_block_io+0x6a5/0= x9a0 [xen_blkback] > Jul 20 02:17:54 lamb kernel: [21061.432220] __do_block_io_op+0x31d/0x620= [xen_blkback] > Jul 20 02:17:54 lamb kernel: [21061.432714] ? _raw_spin_unlock_irqrestor= e+0x14/0x20 > Jul 20 02:17:54 lamb kernel: [21061.433193] ? try_to_del_timer_sync+0x4d= /0x80 > Jul 20 02:17:54 lamb kernel: [21061.433680] xen_blkif_schedule+0xda/0x67= 0 [xen_blkback] > Jul 20 02:17:54 lamb kernel: [21061.434160] ? __schedule+0x2c6/0x770 > Jul 20 02:17:54 lamb kernel: [21061.434679] ? finish_wait+0x80/0x80 > Jul 20 02:17:54 lamb kernel: [21061.435129] ? xen_blkif_be_int+0x30/0x30= [xen_blkback] > Jul 20 02:17:54 lamb kernel: [21061.435571] kthread+0x116/0x130 > Jul 20 02:17:54 lamb kernel: [21061.436002] ? kthread_park+0x80/0x80 > Jul 20 02:17:54 lamb kernel: [21061.436422] ret_from_fork+0x22/0x30 > Jul 20 02:17:54 lamb kernel: [21061.436846] ---[ end trace 1d90be7aea2d91= 48 ]--- > Jul 20 02:17:54 lamb kernel: [21061.437250] blk_update_request: I/O error= , dev nvme0n1, sector 912000815 op 0x1:(WRITE) flags 0x800 phys_seg 13 prio= class 0 > Jul 20 02:17:54 lamb kernel: [21061.446344] md/raid1:md4: Disk failure on= nvme0n1, disabling device. > Jul 20 02:17:54 lamb kernel: [21061.446344] md/raid1:md4: Operation conti= nuing on 1 devices. I've tested and can confirm that this issue is fixed by: https://lore.kernel.org/patchwork/patch/1442338/ which is in 5.14 already and was also backported to 5.10.50. Debian buster-backports currently ships with 5.10.40; bullseye is 5.10.46; Salvatore Bonaccorso said on debian-kernel list that they would backport this fix to all the 5.10 packages. Thanks, Andy