Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp119168rdh; Sat, 23 Sep 2023 04:08:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG071HVqbMazZ3og2KJS9HpjGbcx1hOb/HyXILDWW+n0jKfnXZT00YJzNTybow8I25hu/TD X-Received: by 2002:a05:6a21:998b:b0:14d:d9f8:83f8 with SMTP id ve11-20020a056a21998b00b0014dd9f883f8mr2471069pzb.1.1695467305765; Sat, 23 Sep 2023 04:08:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695467305; cv=none; d=google.com; s=arc-20160816; b=ig+nlKV3/HMfTLF6Zy9ydDaTormlR97uH/mn99gc9zOLITBpzMpvXmpGhi0oXua4Su 2Na6AMTixOg6hGAJe8JXYKIQTnXAVFtQKmE5CP91FwC+TJq99o7+q45fxL18tFnZNtm+ 83nGr6aBtVGjg1nbBm4X+gkcal702Hge78wijpyYxRZHCST9eCYe+KY0dv1wTtY+CPeI QGOFwT/IOJ1X5Hpn63olPchZgw4E+oBTMO/k4tjLAI3dtuadDmG3fg1mpNCtJo7IX/oH ZjXnY365dda5cKDaPVyaJVXyDSLE4XGrwsu0XbDyY/66XsFzziNRsHjk7ghBV6eqICcj hkBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0h+moLcXiYK8h5y8iWe0F/n5tcn8IwfvwNQzSCt2i8Q=; fh=/9QhiiVnblW/5rlU2/j7t69FkF7DE6iP4FbaLAIYoOE=; b=lBOQ4otZBrTBCWKqKLTZ55rEYF67YmxN2JNmskSnIIDqFyEiFLusQT3omMJkENKwYg F7s7EtIoVwvsYx4IUgNxIU+W7Y+lZwI8WebnnF8aiOSdm9P29SKSgxoQ2scVo7s+M6MA i0SxAdq+2Ph/aiA8MN08yBG7miBBvijmJm9nWEm12RlKgaQk8j+MnJn5W25Q2+qhqirQ mlPnFjFCmuEQkwen0WCSwFdeLygI/NzP2QUD63Lt3lvbEm9fya2p17SGyXhw54IQTEvZ f5jioDKJH+8BfK2o5ey+vUkEYva9Aa48IoJroueFTzvYQUE0l623tfOtyC7DvuhwbD74 yszA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="KsEwi/WP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id f20-20020a63f114000000b00565610b2ed5si5898511pgi.794.2023.09.23.04.08.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 04:08:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="KsEwi/WP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 31AE5804C616; Sat, 23 Sep 2023 00:56:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbjIWH4W (ORCPT + 99 others); Sat, 23 Sep 2023 03:56:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbjIWH4V (ORCPT ); Sat, 23 Sep 2023 03:56:21 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC5D180; Sat, 23 Sep 2023 00:56:15 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E146C433C7; Sat, 23 Sep 2023 07:56:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695455775; bh=LqG3KPeWI7ENhJ299tmnxeWZpLoJ9oK5WScmGb/OaoQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KsEwi/WPhH2PeWr5n3kqJVm61b2bAT6V/rKTA97CCsqNvmhjQGgIXgW5l0Dys5kmG dSN7bG6Ont1BZjdbOo9tyYbTedXAP9LufpoacZBjjVyXFTt8be8rg0idiiej5rAiK4 mfgwaPPOz3epU4y4HTGgvSUA+hzUA8DuCEYXAheE= Date: Sat, 23 Sep 2023 09:56:13 +0200 From: Greg KH To: Nuno Das Neves Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, patches@lists.linux.dev, mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, haiyangz@microsoft.com, decui@microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, will@kernel.org, catalin.marinas@arm.com Subject: Re: [PATCH v3 15/15] Drivers: hv: Add modules to expose /dev/mshv to VMMs running on Hyper-V Message-ID: <2023092318-starter-pointing-9388@gregkh> References: <1695407915-12216-1-git-send-email-nunodasneves@linux.microsoft.com> <1695407915-12216-16-git-send-email-nunodasneves@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1695407915-12216-16-git-send-email-nunodasneves@linux.microsoft.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 23 Sep 2023 00:56:20 -0700 (PDT) On Fri, Sep 22, 2023 at 11:38:35AM -0700, Nuno Das Neves wrote: > +static int __init mshv_vtl_init(void) > +{ > + int ret; > + > + tasklet_init(&msg_dpc, mshv_vtl_sint_on_msg_dpc, 0); > + init_waitqueue_head(&fd_wait_queue); > + > + if (mshv_vtl_get_vsm_regs()) { > + pr_emerg("%s: Unable to get VSM capabilities !!\n", __func__); > + BUG(); > + } So you crash the whole kernel if someone loads this module on a non-mshv system? That seems quite excessive and hostile :( Or am I somehow reading this incorrectly? thanks, greg k-h