Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1249024imw; Tue, 5 Jul 2022 06:25:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vA0b3ohRcb4+Bacon6dMSiaCSSt7jELfrNbck9ydftirBuyc8Jc5fnVhUjXJKbnftBp9tB X-Received: by 2002:a17:907:3e86:b0:6f5:917:10cc with SMTP id hs6-20020a1709073e8600b006f5091710ccmr34197513ejc.53.1657027499898; Tue, 05 Jul 2022 06:24:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027499; cv=none; d=google.com; s=arc-20160816; b=VfxGAfPMrVFeiFScuaW9f/x6QbswI6eCz2gIyvIuHwM6++fxM7B48OHsC1yX6Lwv8P J8OXgIv5/XoIMnbwe5OY2Ey24Ri+mQVX1iXPKF8a67cLinJ+UvEwbsgNEP05gktCfeu4 Eg40VIRdtNz8cn1/fhvEB8pWEB4D5/j7f/7mX00M3GivFiGDhY1Znlkkl5PSGzgAO2W0 1fTvQrIosLLVUTBHEfn3kuzzNG9Ep3y4S73yF6OKwfQxKNFLrsbjv4IlkxXlQ4wJwrk+ PfuRDWOxWQuk/v5F0GnR3OSAPc6NuYTL/cDGqqJ8/JO+CPy34/IU+pa3hVqm7KvRyRdD azpQ== 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=8CHLSpOyGtHfVEN8PmGyC9+PyRtlgkvNXgWIGIzvReM=; b=guIbZ8WAjL8uJ/ZCjDEfYeEeP8o1QNDCeAfYAfaIGFFawt+oCdnSccCMqnfRAvyXZk pfFow8cz5jzyEb0XJW49kohCsV5DW5CfFthM6SCsKgDus23iH6h6AAI0LqtqpW8W8f1a 8hlYiALreO2CKWgkNbGcPQVlxLic+CjIeG7pE8wr6sszZEltwcuAZmMuenPBKpc3XNgE m2rwQ0ntzgclEGZ7vJGahwfvmy8dgXt4HuoavoRu4sA4EI2agXlSpIg3MB0ax/BYbhq8 xwlJIin2aBWy4aseqB2jj95l0DZoZGmkuIg67dFT1X1rWcl3TBpzd5/hNwlZmuHdpIoF Dajg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=OlWPC2Tb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s15-20020a170906bc4f00b00722f0145649si36420170ejv.646.2022.07.05.06.24.34; Tue, 05 Jul 2022 06:24:59 -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=@ibm.com header.s=pp1 header.b=OlWPC2Tb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbiGELys (ORCPT + 99 others); Tue, 5 Jul 2022 07:54:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230342AbiGELyZ (ORCPT ); Tue, 5 Jul 2022 07:54:25 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 652AF17AA6; Tue, 5 Jul 2022 04:54:24 -0700 (PDT) Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 265BM13d010362; Tue, 5 Jul 2022 11:54:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=8CHLSpOyGtHfVEN8PmGyC9+PyRtlgkvNXgWIGIzvReM=; b=OlWPC2TbiJM+O1ADSzuCbg3cTWlMTviNS/YzWM6un6Fk33Ik3rsX0mOZNBK9/9Phr8CH l4zjTNDgclkeXjog2/mFiZs9Dyz0811Gau4XIzFBf2Wqa9p+/unJOWIvAe2RpkSbKzeH T5z/+GR/so+TOaqbafcE41B/IT3KLMWTLyJV+YiUaOrzeVX1q7cvIrS6lbQfYzeuY1AM MTa3/YwbTvpn/XbvY51Ux5QdkOP/39xZJEXCY4A5uUUI1O2LVMluRTbHSaZ8qKAAvPr7 TviOrDZtW8wKylZBMDZgH9fW4cDGFS7fvzIrrZqhMyBAS85R4RzdfaDYO9V4lcGhAzGt 0A== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h4mbvgpgf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Jul 2022 11:54:06 +0000 Received: from m0098399.ppops.net (m0098399.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 265BrAcD030687; Tue, 5 Jul 2022 11:54:06 GMT Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3h4mbvgpfy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Jul 2022 11:54:06 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 265BpeC0024891; Tue, 5 Jul 2022 11:54:03 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma06ams.nl.ibm.com with ESMTP id 3h2d9jbyp6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 Jul 2022 11:54:03 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 265Bs9lO32899368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 Jul 2022 11:54:09 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A201D4C04E; Tue, 5 Jul 2022 11:54:00 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 191094C046; Tue, 5 Jul 2022 11:54:00 +0000 (GMT) Received: from li-4a3a4a4c-28e5-11b2-a85c-a8d192c6f089.ibm.com (unknown [9.145.48.113]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 5 Jul 2022 11:54:00 +0000 (GMT) Date: Tue, 5 Jul 2022 13:53:58 +0200 From: Alexander Gordeev To: Matthew Wilcox 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-TM-AS-GCONF: 00 X-Proofpoint-GUID: WGMQlDIouX2O3FIdH8_aIbjl_QBqMUTJ X-Proofpoint-ORIG-GUID: D9AKQ_ZLiTRB1BnKEJ7l-vq-B36qtFGd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-05_09,2022-06-28_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 impostorscore=0 malwarescore=0 suspectscore=0 phishscore=0 clxscore=1015 mlxscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2207050049 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, 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 Mon, Jul 04, 2022 at 06:26:08PM +0100, Matthew Wilcox wrote: Hi Matthew, > > > > 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. Apologies for not doing that - I did not realize this patch could be of interest for non-s390. > 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. I considered going with copy_to_iter(), but unfortunately getting rid of copy_oldmem_user() and copy_oldmem_kernel() is not an easy thing to do, if possible. At least for the time being we have to stay with these two and handle copy_oldmem_page() on our own. Yet, a hope that a single-segment iterator on s390 would be enough turned out to be wrong and a follow-up fix is coming. Hopefully, it will make s390 code one step closer to others. Thanks!