From patchwork Mon Mar 27 08:36:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juergen Gross X-Patchwork-Id: 7241 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1368449vqo; Mon, 27 Mar 2023 02:04:43 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8HqiMSzb8t+JCnAWj5amfPUrKpDzDO6e1Bu123h7B5KYzZiy4u7C3kDjz2nq//FNxBx8V X-Received: by 2002:a17:906:738a:b0:878:58e6:f1eb with SMTP id f10-20020a170906738a00b0087858e6f1ebmr9890582ejl.23.1679907883365; Mon, 27 Mar 2023 02:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679907883; cv=none; d=google.com; s=arc-20160816; b=aom5yAl9T50hGdiVGhjWKODcJQZS3W+v7r67wrgNL3LdfFg3POTeNaplpuUgIaLjuG H3dVrETXqYwky7Y1grZH5/rGYjVSyv2V/dYozUqyiftBLoQb4R500ZhReUGACADDvMde f+LvS9UTcRBGyGN/JjpIG0Wg0ZDNRzp6j7TVGkEXl/lYYUr7b21o2AOFSpLGWNQ2lgUw lqB6qhxqS73tEaT2Uw6KQBZprpkhz6PUuvjPJFvAgTzt7NVT69yZwWolroy1Jg3gad4F FQYN+BpuYtqbCZY5Axt7tJQxB/5gmdx7Az3p1aGAG26KNVBkb4eNDzbcpfoqdqgozEac 095A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=v6oIQCvPsK0b+etSaaLmHyST9of/SZHXfQgb0QAgenE=; b=vtYcy4vJkLUZfTTtROH1DuiiQrzjbkc98InpuzD7O7Fpp/N4OBV66vfR8+rqyUlk+3 lDK95qlwbNTuzeQA9KyMrDW+e6iCIQVoLl4sAmVSRfDZeP/SUqYkYrXox1lUY2tDhETq kVTmYvxAxf0SD6S/pKUYefN0ANg5To8WIEpCbAg3MbW022mPVGgt3F4dwYyzpeTlMrqw MNWPp/nv0gDbqlcFqcz76yhk4E/6pux8GJo9hPGDaSuPFvxcZw6dkTBkdeGY/YYdwdCq tvBtVGf2Z81ZxiSzcbvUvJPojuosu9VxOfh0TqQE8SMN3fbBnnd+UXGyDJxw2QLrFvmO QYbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Oi3uElNp; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a170906071500b009230fbd1babsi24888078ejb.892.2023.03.27.02.04.19; Mon, 27 Mar 2023 02:04:43 -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=@suse.com header.s=susede1 header.b=Oi3uElNp; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233066AbjC0Ikz (ORCPT + 99 others); Mon, 27 Mar 2023 04:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233082AbjC0Ikd (ORCPT ); Mon, 27 Mar 2023 04:40:33 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3617A6A42; Mon, 27 Mar 2023 01:36:51 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1ABE321AB2; Mon, 27 Mar 2023 08:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1679906209; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=v6oIQCvPsK0b+etSaaLmHyST9of/SZHXfQgb0QAgenE=; b=Oi3uElNpMUuOMeDRymfgAwa5c2IqAibwS3mTpkTLizw999HdkXOS1GW5XUH67WRrnwYWOU nLAcy9zmDB1SV1j49URJEljBGckKUPgkvNJ7DHnQ4UkIdIFCMAfCoO/3Xl0gi6AjTx2bfZ UEV7dQkypnhgOwx26R9vDO7b/jyncC0= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B2EA313329; Mon, 27 Mar 2023 08:36:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id g+hAKqBVIWShSAAAMHmgww (envelope-from ); Mon, 27 Mar 2023 08:36:48 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Juergen Gross , Wei Liu , Paul Durrant , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , xen-devel@lists.xenproject.org, stable@vger.kernel.org Subject: [PATCH 0/2] xen/netback: fix issue introduced recently Date: Mon, 27 Mar 2023 10:36:44 +0200 Message-Id: <20230327083646.18690-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761511088567140486?= X-GMAIL-MSGID: =?utf-8?q?1761511088567140486?= The fix for XSA-423 introduced a bug which resulted in loss of network connection in some configurations. The first patch is fixing the issue, while the second one is removing a test which isn't needed. Juergen Gross (2): xen/netback: don't do grant copy across page boundary xen/netback: remove not needed test in xenvif_tx_build_gops() drivers/net/xen-netback/common.h | 2 +- drivers/net/xen-netback/netback.c | 29 +++++++++++++++++++++++------ 2 files changed, 24 insertions(+), 7 deletions(-)