Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp362704imw; Mon, 4 Jul 2022 10:36:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s3gcy7lsNZIMw6H1gg1ztcEavsTHuJ4yH6lEGseArR3G/GY5GoA2/ejg76YoGycwuGYD4u X-Received: by 2002:a17:90b:240e:b0:1e0:775b:f8fc with SMTP id nr14-20020a17090b240e00b001e0775bf8fcmr27358702pjb.132.1656956179789; Mon, 04 Jul 2022 10:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656956179; cv=none; d=google.com; s=arc-20160816; b=Xi3duhCWh4qrIIbTTBXCh73fGYku79uJ7fmWBbmB/R/SijSGhyYY3gDAc1KvzLNmyz AkbkqywvDjKY/7JmhkEtKJTBTlH4GwKT1r9sc1jWZ7tjLlfFf+8EIgVoOOWSY42r1oHL VXqiYMfA1Nb6p0uCXtG0pDpvKv2fMwrlfEsamGoNc8McoldOIiVNd5xj/lvUB7k5PTVx MP6QajWL6tCxcjhEXLHKhiiiyaknlWZoO7qycTeEHYxRfQwGSIv+Cvxo00JAIuKT7KsF j6im6re4Ool5SKZlQjb64kbhE3F9YNMI8ftUilcaRevRp5ccUwv367L++rpTHU/5xSP4 2lyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2O7jbtUUBQdght/8/u2Xd4jdIRo54n9MTaKJeIIYcDY=; b=W13WU6+5BSNYdV2BCdOFbMHN5hPCSLqhT3ihM5o1oMfcOzIHKC37JItQtQXU7QciFQ 98R/8VZmX8zyjceyxB9GP5b2llJmJMMyg4jQkSdFPmC6qooh+sIwYBd/7dwS5+A4/pAV 5UNEGLCdFIAvj3sHoee2RODvtF0AkQANl8h9uq6nU3OYkL/OLasZsTa80s0DcJqFvTYy IVgvmJ6Z2vFWxH8ZvzKn1EkMmj852gKpVUG68J4I+umMdS3w6mhMH20N4wTKJlMmEgI7 So7Q+pbpjX0/+PKeaU43K6sfNfLtKaeIvhgnum4ZFQJj8LxQSPRtG1APJoQ5atCrEciq C2BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="e/Jz5Lec"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e17-20020a656791000000b004041c039263si11972311pgr.102.2022.07.04.10.36.05; Mon, 04 Jul 2022 10:36:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="e/Jz5Lec"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234350AbiGDR0S (ORCPT + 99 others); Mon, 4 Jul 2022 13:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233785AbiGDR0S (ORCPT ); Mon, 4 Jul 2022 13:26:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D551120BD; Mon, 4 Jul 2022 10:26:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2O7jbtUUBQdght/8/u2Xd4jdIRo54n9MTaKJeIIYcDY=; b=e/Jz5LeczVAr2Gb17LAJQAOzek V76VFKC10UMt+zc8aSes6NPC8R7cwGFH5NQ8dP9c5Btc5RFT/RBkvqYfgW/FeQsniafImfOSE3OJx MKyqPinerqrKwho/jrTbS5rvlPNLxEMwUOIHfGXFRGGkuNGdUE/5nDDDbNrZkD9IkdhypDeUaj4Se AH5fgPj+v2Jn12Jq/2r2w6SCgXM0Dw6jKOyWW8YXTW0GT9Pmy1wcqYaN3J+ZzqlNhziyWUKBrskDR NVAErJeff4lczaD/MxuIjsbUGEn8LoRlcLfs9F+INleXMUSfd/tlMm4qyFBFxslgACkwhJf7+Z5N5 FevJu5cA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o8Ppo-00HSn3-IM; Mon, 04 Jul 2022 17:26:08 +0000 Date: Mon, 4 Jul 2022 18:26:08 +0100 From: Matthew Wilcox To: Alexander Gordeev Cc: Greg Kroah-Hartman , Heiko Carstens , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Baoquan He , Christoph Hellwig , Andrew Morton , Sasha Levin , Vasily Gorbik Subject: Re: [PATCH 5.18 112/181] vmcore: convert copy_oldmem_page() to take an iov_iter Message-ID: References: <20220627111944.553492442@linuxfoundation.org> <20220627111947.945731832@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 28, 2022 at 10:29:04AM +0200, Alexander Gordeev wrote: > On Tue, Jun 28, 2022 at 09:09:05AM +0200, Greg Kroah-Hartman wrote: > > > This one breaks s390. You would also need to apply the following two commits: > > > > > > cc02e6e21aa5 ("s390/crash: add missing iterator advance in copy_oldmem_page()") > > > af2debd58bd7 ("s390/crash: make copy_oldmem_page() return number of bytes copied") > > > > Both of them are also in the 5.18-rc queue here, right? > > Yes, these are: > > [PATCH 5.18 113/181] s390/crash: add missing iterator advance in copy_oldmem_page() Greg Kroah-Hartman It's generally considered polite to cc the original author when you fix one of their patches. I wasn't aware of this patch. While the code change looks right, the commit message is wrong; copy_oldmem_user() and copy_oldmem_kernel() need to GO AWAY. You need to be more like the other architectures and end up calling copy_to_iter(). I have no idea what this memcpy_hsa_kernel() and memcpy_hsa_user() are all about, but I was hoping that somebody from the s390 team would react to: s390 needs more work to pass the iov_iter down further, or refactor, but I'd be more comfortable if someone who can test on s390 did that work. Maybe you'll do it.