Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1687470rwi; Thu, 27 Oct 2022 20:12:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5/qkfcKD/QW1STUJ1ULBt05cmibVfwMPW4nQEOyg0AQwRvQhH5nh0xZSDH/zobuMLAMYqP X-Received: by 2002:a65:564d:0:b0:46b:1a7d:3b82 with SMTP id m13-20020a65564d000000b0046b1a7d3b82mr44773383pgs.459.1666926746216; Thu, 27 Oct 2022 20:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666926746; cv=none; d=google.com; s=arc-20160816; b=h15pfwbi+0iNSI39l7yLs4CJfQtpDHNcd9d8CxRvyJDEd2cW5t2m7N9oT1nU7MVlak 3rcOWNKNlrsSo5W0N5n1jL10lKOsssTQEmB5QC/QB9DVFa+FnTDFoFoU71Lfxrmx5Hjd fjP792Y97KgHNC9TohGjPMc0+tb3S3F/HL5SyomCA4s+jRK8GZElp3HXnLcDxCvg+L1D jn2S9oTiu3MZei5l7C4w8V826BvpxT6N9RvHCaagaawRO33Bgm9ssaTx8CitZNsBbrP3 BbMyOvSvvb1vI0zHeWKhBDurfhgaEnC1Hi7A/JZhy6pJzjvTMHx5yIgJPVzNL0TLotbv VlSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1IHlPPQo0kXh4mjlnvowrgPVIjethTQk0jPQAQ9V3GM=; b=YGSq7C3mGvPJJonT5qcQ6NcBMTLKfjjJdyFEH/85zojKdOXjhnGOkL12y5MoM3rQoC /k1m34hbIW2xCq7o7d9tbQ95lkmdQ9o18PUyck/v9r9Pd+DIQnEm3Pk6QFVWc3iGzghH 27mOHAI/ahc3WvPHH4la19WuiozgeCL5o0RwK3GSQC63LEilcZkLXYeDk2mm+1ZqT+Ob V9JiMExHfOFTMP9OOS3oz76aZtM8YvhfvZp9Hgncg0jvefQdz9IbNFKje1zOkJgRUkUQ xVqtZvKMhc6B+IWxfgLHVODsxypbN/J3AtiriE7V7x53weC4MThXthqRAJMdyy7kfewe cp6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=fwIaqGTk; 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=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a056a00114100b0053dd073fc8dsi4436721pfm.175.2022.10.27.20.12.13; Thu, 27 Oct 2022 20:12:26 -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=@linux.org.uk header.s=zeniv-20220401 header.b=fwIaqGTk; 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=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236480AbiJ1Cew (ORCPT + 99 others); Thu, 27 Oct 2022 22:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235948AbiJ1CeP (ORCPT ); Thu, 27 Oct 2022 22:34:15 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0757BD04A; Thu, 27 Oct 2022 19:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=1IHlPPQo0kXh4mjlnvowrgPVIjethTQk0jPQAQ9V3GM=; b=fwIaqGTkVp+jLmBUSYuWTSI5Hj QOtE1qVMnASVtZaw5swmoIhwYQs1OGGvHFNUV6ajxJuqUe626RMstHeFQG6NIkRNLg9PuEWbV8MXQ bygLUh21VU6lWXmUUWRYFyiDVNonk7WbjlQKhUdzK/v9jJWA3MkkbBLIK/0LC68fJ2KDGSINuWkFp OLloGII/U9YECi2+r0Gm5H0ERfHO0zOLomba1z2ymAooobNoyuWkS2aNTGGgjfLwmW1nEcf+K/eQp 2JeF0xXiY1YdMmXetBDYjur+eL13ORh8OO+acW5mC5gSr6EV83qgfeedmaMFnw9fyfCG0AcfYsOQb aorZTwJw==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1ooFBw-00EorD-24; Fri, 28 Oct 2022 02:33:52 +0000 From: Al Viro To: Christoph Hellwig Cc: David Howells , willy@infradead.org, dchinner@redhat.com, Steve French , Shyam Prasad N , Rohith Surabattula , Jeff Layton , Ira Weiny , torvalds@linux-foundation.org, linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 03/12] [s390] copy_oldmem_kernel() - WRITE is "data source", not destination Date: Fri, 28 Oct 2022 03:33:43 +0100 Message-Id: <20221028023352.3532080-3-viro@zeniv.linux.org.uk> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221028023352.3532080-1-viro@zeniv.linux.org.uk> References: <20221028023352.3532080-1-viro@zeniv.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 Signed-off-by: Al Viro --- arch/s390/kernel/crash_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c index dd74fe664ed1..7ad7f20320b9 100644 --- a/arch/s390/kernel/crash_dump.c +++ b/arch/s390/kernel/crash_dump.c @@ -153,7 +153,7 @@ int copy_oldmem_kernel(void *dst, unsigned long src, size_t count) kvec.iov_base = dst; kvec.iov_len = count; - iov_iter_kvec(&iter, WRITE, &kvec, 1, count); + iov_iter_kvec(&iter, READ, &kvec, 1, count); if (copy_oldmem_iter(&iter, src, count) < count) return -EFAULT; return 0; -- 2.30.2