From patchwork Tue Mar 28 13:10:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 13191039 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id E44B5C76196 for ; Tue, 28 Mar 2023 13:11:20 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.515800.798979 (Exim 4.92) (envelope-from ) id 1ph96I-0005Gl-4V; Tue, 28 Mar 2023 13:10:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 515800.798979; Tue, 28 Mar 2023 13:10:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ph96I-0005Ge-1S; Tue, 28 Mar 2023 13:10:58 +0000 Received: by outflank-mailman (input) for mailman id 515800; Tue, 28 Mar 2023 13:10:57 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1ph96H-0005GX-Da for xen-devel@lists.xenproject.org; Tue, 28 Mar 2023 13:10:57 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id f9a02d2f-cd69-11ed-85db-49a42c6b2330; Tue, 28 Mar 2023 15:10:56 +0200 (CEST) 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-out2.suse.de (Postfix) with ESMTPS id C97D51F8B8; Tue, 28 Mar 2023 13:10:55 +0000 (UTC) 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 38C4F1390D; Tue, 28 Mar 2023 13:10:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Hvl+DF/nImQ1TQAAMHmgww (envelope-from ); Tue, 28 Mar 2023 13:10:55 +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: f9a02d2f-cd69-11ed-85db-49a42c6b2330 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1680009055; 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=Nw57r4ThzP515ds3lDpYM7Hl3NRvlAaDQvtIsIkfIz8=; b=U8xR4NYPd2oP+KbbTf12uNbuGqeSVqFfLMHH0GBM/KMkNT3J5snWac7d4OGQTjxYnVFdPQ RbPIwQRUfohMt2xNvpyu01g7plm7JWEbOl+56ODRgJkUR0QROehYIJ6SiuguGF05Xwdqu1 GKSMTzHmwsnosUyZOYm29qhE/zMEgVw= 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 v2 0/3] xen/netback: fix issue introduced recently Date: Tue, 28 Mar 2023 15:10:44 +0200 Message-Id: <20230328131047.2440-1-jgross@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 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. The third patch is making error messages more uniform. Changes in V2: - add patch 3 - comment addressed (patch 1) Juergen Gross (3): xen/netback: don't do grant copy across page boundary xen/netback: remove not needed test in xenvif_tx_build_gops() xen/netback: use same error messages for same errors drivers/net/xen-netback/common.h | 2 +- drivers/net/xen-netback/netback.c | 37 ++++++++++++++++++++++--------- 2 files changed, 28 insertions(+), 11 deletions(-)