Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2292126ybl; Thu, 15 Aug 2019 09:27:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7PjyGAbVKo4JBJzgO7SRmJ9DP23ai+nh/MFNIru6+Z21uTz2LfKiFD4xg2MTpCaIk2Obz X-Received: by 2002:a62:8688:: with SMTP id x130mr6566101pfd.162.1565886428486; Thu, 15 Aug 2019 09:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565886428; cv=none; d=google.com; s=arc-20160816; b=xvN0ifqWtHfmSWzn0nukEkY2KF0PwKAaUnP3zqufrL7i07nnaDY4rHx6kW8EuloBVF MhO0fN6REXfDlshk2vhDufvsmKDp1OhlsRFFx5cieJ3pBg5RwoJueLIsRjvGp4a19Fdw d9rMb92znBfWE1M5FrMV1XU77ebfDEWvJZvjfIKVspVMSBsAliUznrgK+8MmHZpt0WTG 4nCw1JQ4fjOmxxfQ1fGvVQeLbNbRFgWNh71XCmJHfgVKbIC52QdhLn4HN4P3weLkLSdg 0HCs+WgLmSLHmwh5wLXZUuGpfCpcTuoa1nso1v8hmnPcDwvzBrlBAEED5bMiOXYX8+MO oEhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=btVw5I6pCj88VWfPDemPNVZWpwU+SK2TMS8UrLon8V4=; b=ozVPofzsDqImC4yg6j+IJ2/fTIva4TIoEi6ebwlF9dFSWTzhVvFI4drtGiaQLM5+6A xPdT06qMutVHqkWnUbP7bwcDAUHZoN1O0YPf70J4CYTaqkMwN7PUEvLW8qgvNXMRp6lP mnF3C/Bd/2B1K7xY0owbFbjNhYXrlCu+csSTnUEJnQyr4AIkEUNphT1e3fhz1OnsCKn6 0xj0/XXsba+ZBy+HhLcyW1Eqwa/tGO9WnPnbGeATqP8TOchbcR1mv2Vd5PYaBfAvfepp tBL64loAc9inYOu2R6LiuAMfG2Yf5B5tgnPsa9KW/9V05cu6FZMUUgmtxBf9fHoTjL7r GJkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YrjSnU0U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1si2250766plk.55.2019.08.15.09.26.52; Thu, 15 Aug 2019 09:27:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YrjSnU0U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732851AbfHOONy (ORCPT + 99 others); Thu, 15 Aug 2019 10:13:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:51944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730032AbfHOONy (ORCPT ); Thu, 15 Aug 2019 10:13:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 69F3A208C2; Thu, 15 Aug 2019 14:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565878433; bh=bJ5dZFOEmt/eB/4DIMS82pyskdcemPLevWTmdO5f/JQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YrjSnU0UFBWViBTCrXq/WGZST4nSM1PGZcK3VlwMWD34yAOUwVTkaZFCC6CfwpBT+ 8emd41REaV4OfACjDR66stiYuCtetsgDnsAjDBRUSNjXoIQNa+kJEAAbrfr/N1Ci4I bvrMS3jfttQSYOdrU4GimFx2b11ocp86ACRrW4Hs= Date: Thu, 15 Aug 2019 16:13:51 +0200 From: Greg Kroah-Hartman To: Zhangfei Gao Cc: Arnd Bergmann , linux-accelerators@lists.ozlabs.org, linux-kernel@vger.kernel.org, Kenneth Lee , Zaibo Xu , Zhou Wang Subject: Re: [PATCH 2/2] uacce: add uacce module Message-ID: <20190815141351.GD23267@kroah.com> References: <1565775265-21212-1-git-send-email-zhangfei.gao@linaro.org> <1565775265-21212-3-git-send-email-zhangfei.gao@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1565775265-21212-3-git-send-email-zhangfei.gao@linaro.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 14, 2019 at 05:34:25PM +0800, Zhangfei Gao wrote: > +int uacce_register(struct uacce *uacce) > +{ > + int ret; > + > + if (!uacce->pdev) { > + pr_debug("uacce parent device not set\n"); > + return -ENODEV; > + } > + > + if (uacce->flags & UACCE_DEV_NOIOMMU) { > + add_taint(TAINT_CRAP, LOCKDEP_STILL_OK); > + dev_warn(uacce->pdev, > + "Register to noiommu mode, which export kernel data to user space and may vulnerable to attack"); > + } THat is odd, why even offer this feature then if it is a major issue? thanks, greg k-h