Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp381235iob; Thu, 28 Apr 2022 04:41:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2bTtYlsjz/j3pl3ZgQwhmuzZT9ezGxhND0P/U0ks3KcjCxXR8lIS7jCV6FDwHaOVeUwWk X-Received: by 2002:a17:90a:de87:b0:1d9:8264:baef with SMTP id n7-20020a17090ade8700b001d98264baefmr21333168pjv.227.1651146109793; Thu, 28 Apr 2022 04:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651146109; cv=none; d=google.com; s=arc-20160816; b=anTuW0IXYmxMgAF24VqoGZrSkAAOOVNKAHhgEvAxqyTXHhQYnnMfM7GSkCbItAHKMH ZHazNMLsn7gZ0i1/zZT8acLKpMwwOaUN4FcpuKzyDUXf5GFk4paiAvS+kdGWZz0qFFwa OgRbb33Tsxo/L+r5iMPvuooL2+f8Swj1vz0W/mrLbhMo/FUf6CLmCgOSjKx91AfKOZfK D//0jkuX40YK/mRQMEAU7mnjyiTKZN9//th423k6xk19VCIhcOEicljl6DGcwAasSSec WFKL/pbY95QqL0IqM0LJR3/VpRA4DnYKwcz7BI1azK3GiSMMsBDVV8eQ0KI7x0Qbk/2g KqpQ== 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=CQjPlNkRlP8Nf0eMv12MOn4cmxoEup/VBzRWAjKNLPky13Y8HO2MmNUqWobUU/8B+w EHSb8nAI8JF4A1j6SytaDvx0RlEymCPil97Eh12m0iFWV97ZaeFktm+NJyOezOvx+FSp bBo0svoJrP7mF4asljKZPxZHzPWMEpvG4z9tIzfzdFYhtkUju0PyK68bQ0MH+QKg2Rvs qrVdcRXcYckfYpNGLvRFOtwj7feeZKddssXR1NU5LgnhILcOSDDhmI9D4D0to9FjwIvO THQaKbEnZl/26s+WiPKCPkk7P7fumZAKYeHCBkUYvEP5d6Z1Vp5sL1as9TYP9399BfLY 6kSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=r3XSYHwZ; 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 t8-20020a1709028c8800b0015866d0026bsi4172067plo.575.2022.04.28.04.41.34; Thu, 28 Apr 2022 04:41:49 -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=r3XSYHwZ; 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 S1343593AbiD1H44 (ORCPT + 99 others); Thu, 28 Apr 2022 03:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241907AbiD1H4m (ORCPT ); Thu, 28 Apr 2022 03:56:42 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A45F5F245; Thu, 28 Apr 2022 00:53:28 -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 354692186F; Thu, 28 Apr 2022 07:53:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651132407; 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=r3XSYHwZGjPKGDDJnE8y1TzQDS660lC8ubSYtSgv3fDXdqTjp7PRW3yk4VmEGD0yYctRb6 N2Cad7N/zT3wVToO0LIRMHi7Q5SA4KFmR6GDtMgWqzUho8hMvGo68rdSEeCKN5QsOTJ96V OTggVTVRIKMzc52CNcHY5fN1SxcXrG0= 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 E100C13AF8; Thu, 28 Apr 2022 07:53:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qNCTNfZHamIoHAAAMHmgww (envelope-from ); Thu, 28 Apr 2022 07:53:26 +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 v2 0/4] xen/pv-scsi: update header and harden frontend Date: Thu, 28 Apr 2022 09:53:19 +0200 Message-Id: <20220428075323.12853-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