Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp332217pxb; Thu, 21 Apr 2022 00:10:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDqiVnv1s4V2TGFWEM1KGqRyNGui3WxyL5X+ATNu/tJyKbzcs4gBp+8JUH2664zn1eXWHL X-Received: by 2002:a17:906:2f97:b0:6ce:3ef6:94be with SMTP id w23-20020a1709062f9700b006ce3ef694bemr22355273eji.136.1650525032683; Thu, 21 Apr 2022 00:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650525032; cv=none; d=google.com; s=arc-20160816; b=NNWfzVX82w4fXvTRF4x17lEpru28u95KeSRtWKrwZjN6d09vIEu+3mRZKitNmBGAeA QYASeXLH2d23o7v9fiKT+UAbfSTVySZz8s2vS2LkTchbkeqv5sgIa/nVZgE9nRpRurY9 SpygiXf5zcpFwOnmjSH+d1CerTMXBdZ0NsS/R8ETdyRuaXJSFqqXhA6S5nCPWuIOF+sR 7hp+QxL0Nnsp5osIW1sfcPvGkUa/W25fAbfT88beOaa5NYlHrOZSIER+5z05gQIxRgS+ 6AICAuQKnapntVZvQOMCnKFCFLWqTa20+ZZ5EQmPml7r1updfkXUAYwWUES6kKdyRsV5 NlSA== 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=3E7uGHyVSRLlv1q/BP8AWtqLSArF2xlrVNvb53ZZO3Q=; b=wXeaEqabuiLgvgjr/y2uhm4LC94d5dmW+yGAJHIqCcwtGD+pIOqM/gxt4A5+VzpI+w FHcm4W1C9zmwj4qA+2iZQOgTlDTtm/niD86O/wMS3v31ESsV2YS/EgasaPftGEVpBFHu /XrotHyThF2gkEuKkITnXhJ8KaG5Ph1CpGgJic5KPX2Ha507znBtinpi0KjHpdvFOOZu OT2ZPhog99vQ297WYfYLX2asILJZJt2h8cytKPIqJMJKDvWaNPlZBx9WPqnqLfHun14A Q+k28oGEjAikJ7NC+jSCtE9wCzCIiOvA7AQUDjgq7gydrmPXghsSzE9udUzyS3mzRwB2 x/qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=NMLVxS0X; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id md23-20020a170906ae9700b006e801269cf2si3331491ejb.707.2022.04.21.00.10.08; Thu, 21 Apr 2022 00:10:32 -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=NMLVxS0X; 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 S1377208AbiDTJ2A (ORCPT + 99 others); Wed, 20 Apr 2022 05:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234247AbiDTJ1x (ORCPT ); Wed, 20 Apr 2022 05:27:53 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51516262F; Wed, 20 Apr 2022 02:25:07 -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-out2.suse.de (Postfix) with ESMTPS id 0849C1F380; Wed, 20 Apr 2022 09:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1650446706; 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=3E7uGHyVSRLlv1q/BP8AWtqLSArF2xlrVNvb53ZZO3Q=; b=NMLVxS0XMRvWXReWNfowiUHySlIATTs0qYOx3BLmMovlp82yKFTiB3IwQ4F/agcqzd0JHr VFlhKH2x+iPFwtXn4eQ7JsfcC3e4ClBot4vi8F3e+C75NLAw9vAQuyx0PZQpDvYC1ln1AS 4YxztFMutLngFG/7ISGEdFELcUZmNEc= 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 B698C13A30; Wed, 20 Apr 2022 09:25:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id FzNFK3HRX2J1EAAAMHmgww (envelope-from ); Wed, 20 Apr 2022 09:25:05 +0000 From: Juergen Gross To: xen-devel@lists.xenproject.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Juergen Gross , Boris Ostrovsky , Stefano Stabellini , "James E.J. Bottomley" , "Martin K. Petersen" Subject: [PATCH 0/4] xen/pv-scsi: update header and harden frontend Date: Wed, 20 Apr 2022 11:24:59 +0200 Message-Id: <20220420092503.11123-1-jgross@suse.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_PASS 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 Update the Xen PV-scsi interface from the Xen tree and adapt the related drivers to use the new definitions. Harden the frontend driver to be no longer vulnerable to a malicious backend. Juergen Gross (4): xen: update vscsiif.h xen/scsiback: use new command result macros xen/scsifront: use new command result macros xen/scsifront: harden driver against malicious backend drivers/scsi/xen-scsifront.c | 168 ++++++++++++++++++++++------- drivers/xen/xen-scsiback.c | 82 +++++++++++++- include/xen/interface/io/vscsiif.h | 133 ++++++++++++++++++++++- 3 files changed, 340 insertions(+), 43 deletions(-) -- 2.34.1