Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp899470iog; Thu, 30 Jun 2022 12:24:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sFqp4cDlC9DWgiJkIvp4R4eC0p557oCXvakfxewPpJvmzcICHazsUxol2n/V5/G/Rv7TmM X-Received: by 2002:a17:906:f14b:b0:722:fb06:83a9 with SMTP id gw11-20020a170906f14b00b00722fb0683a9mr10824675ejb.473.1656617055554; Thu, 30 Jun 2022 12:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656617055; cv=none; d=google.com; s=arc-20160816; b=BKrz91xIElLx1EmsVdpM4mx94CKtVspYMmFthWsutt19WTI91sr3GNdZqK63DYmXzm mOMb54VKscMT0B+Cug7m4aEsJi8tluwvt5mHRHYsV00EB39GNQaOmDWqLQgS8l0EUS9Q MhWl0uTDR70blPjjJjWQFi39LtAVw2jVIwNPWaZDCZYw0Pghz2sooKwVeW8PuBIFcuTv qaKTPGiyK+D6k6+jhb5UdbfTR5ebsXzVWow2adz4JJ/TiGWHy1MNeWm5W/NkRPt6BSUi 7n85BgUZsXLZJIzRW5lSNiC9fvozh67Hw+nNGLeSRXm+yJBoR6m5mLkKt5lBqVC7R9pT 8cqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=YfIy+4gvd/lbZdQIcXGuL2bNS8ZcX5l36dLsXmKY+tU=; b=AX6WS1EUcLvcwBX6Ic5lRokU+glUrA/wuXwK6knx4IOg2e17ive79hfHWPXFgnLC78 FblOrpXN61ikVknHhEdQQhM5V3NvPWdzZ+CHJ8mRjeBPT3j68peSlQxkfWVacg1f9F5+ TgVDniy4wCdi5fezkVUBTwTxSLUn/UKsGoIAlXBBXyMFL3zzKaOH8srA+BhjhHa0JKFm kQV4kWGPcmS1KfhsKVsYsiHpg9XtcxMfHMG89gMNkONLc2i5vpeafp7fKQiCAMnh2BQ3 UH9lZwCxrAIuW56saTPe2/Wn1AOHSZbtuqPaR+ruAB1i5LeRdK31/CwaTpZTCQwtrL1u 1lHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iwMgEOlU; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a056402255200b0043761340274si2218031edb.127.2022.06.30.12.23.33; Thu, 30 Jun 2022 12:24:15 -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=@redhat.com header.s=mimecast20190719 header.b=iwMgEOlU; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235686AbiF3TQY (ORCPT + 99 others); Thu, 30 Jun 2022 15:16:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbiF3TQX (ORCPT ); Thu, 30 Jun 2022 15:16:23 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4AB663F894 for ; Thu, 30 Jun 2022 12:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656616581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=YfIy+4gvd/lbZdQIcXGuL2bNS8ZcX5l36dLsXmKY+tU=; b=iwMgEOlUX8L90wSW5ML2c+jxFL467DISevGlgdEVxG6umXUd5r85lFAV1K+cbbgqbxL9Zh dcAgBJQ9lHnaXSy2SIhwXPQPO+2+bmMeyokuUJQk1by3sQ/f2FB4OS7hFfFoATCQDVPgkS z8JAEHNQ0MiVvSF5n3HQDou47O+s9dk= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-651-G-EeYRCiOUKvcqNuoM-IWw-1; Thu, 30 Jun 2022 15:16:19 -0400 X-MC-Unique: G-EeYRCiOUKvcqNuoM-IWw-1 Received: by mail-wr1-f70.google.com with SMTP id a1-20020adfbc41000000b0021b90d6d69aso3302237wrh.1 for ; Thu, 30 Jun 2022 12:16:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=YfIy+4gvd/lbZdQIcXGuL2bNS8ZcX5l36dLsXmKY+tU=; b=dQDOt8yLuV81xjOHciMSaEd/TQHSykMpAvqlg6EfxAYR15dxvg0hxJjU8gKogwGfU5 /Z1vw0SksdnRvfAdKppIqwH4hNSNJStxRDPJQHEAanEY1njPkPJ6ZJljiLUhymPwgAEk vDT7NuXI7Hys2IlfncVUk6mP5upiXPa9raqIE5Zln0q8R+6XQ4FlGAkoyfAArZpUEUvF Xu/OqPpibDMMSGv40ID4ci5QIOCmqoTh+KJiZlBt88z0kUTPhOAmqIZDiyMc6UZNRU2w XJTqQov6mTRVT8M3vmfqtXamYXapUp38fwZCyMPjRpgtTw7IIcTzQIcez1is+zfhDx/o LQPg== X-Gm-Message-State: AJIora+icjnpPdjAvGVbFvDFXPLy5QIDND/ZEMUsls9f3fOm/j9A1z2J /rRf4T4UHlSaoESG/+j6Qk/0OmWcGkquIQ/LTx3JvYuL0Edb+r0Ej6W+sZvHj1eFN6yDIJCu3Wm Ua0rIbwczfcXLcaCs7eMx8578vwJla/kix/MYDmDls+paMK8RVCcJ0VWRrKMQ32CvC3wkgQ== X-Received: by 2002:a5d:584e:0:b0:21c:e4db:35e with SMTP id i14-20020a5d584e000000b0021ce4db035emr9821074wrf.192.1656616577978; Thu, 30 Jun 2022 12:16:17 -0700 (PDT) X-Received: by 2002:a5d:584e:0:b0:21c:e4db:35e with SMTP id i14-20020a5d584e000000b0021ce4db035emr9821043wrf.192.1656616577714; Thu, 30 Jun 2022 12:16:17 -0700 (PDT) Received: from redhat.com ([2.55.3.188]) by smtp.gmail.com with ESMTPSA id j19-20020a5d6e53000000b002102b16b9a4sm20128454wrz.110.2022.06.30.12.16.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jun 2022 12:16:17 -0700 (PDT) Date: Thu, 30 Jun 2022 15:16:15 -0400 From: "Michael S. Tsirkin" To: linux-kernel@vger.kernel.org Cc: Jason Wang , Cornelia Huck , virtualization@lists.linux-foundation.org Subject: [PATCH] virtio: VIRTIO_HARDEN_NOTIFICATION is broken Message-ID: <20220630191559.16738-1-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 This option doesn't really work and breaks too many drivers. Not yet sure what's the right thing to do, for now let's make sure randconfig isn't broken by this. Fixes: c346dae4f3fb ("virtio: disable notification hardening by default") Cc: "Jason Wang" Signed-off-by: Michael S. Tsirkin --- drivers/virtio/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig index e1556d2a355a..afb9051e0125 100644 --- a/drivers/virtio/Kconfig +++ b/drivers/virtio/Kconfig @@ -31,11 +31,12 @@ if VIRTIO_MENU config VIRTIO_HARDEN_NOTIFICATION bool "Harden virtio notification" + depends on BROKEN help Enable this to harden the device notifications and suppress those that happen at a time where notifications are illegal. - Experimental: Note that several drivers still have bugs that + Experimental: Note that several drivers still have issues that may cause crashes or hangs when correct handling of notifications is enforced; depending on the subset of drivers and devices you use, this may or may not work. -- MST