From: Bart Van Assche Subject: Re: kernel BUG at drivers/iommu/intel-iommu.c:608 Date: Mon, 08 Apr 2019 08:30:27 -0700 Message-ID: <1554737427.118779.271.camel@acm.org> References: <20190407150650.060cc508@x1.home> <8d876549-21da-e027-0157-8737b10e26f8@acm.org> <20190407173132.24032810@x1.home> <1554736414.118779.265.camel@acm.org> <20190408092345.01751472@x1.home> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190408092345.01751472-hfcDOgR9qeA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Alex Williamson Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Joerg Roedel , Jiang Liu , James Smart List-Id: iommu@lists.linux-foundation.org On Mon, 2019-04-08 at 09:23 -0600, Alex Williamson wrote: > Loading modules is privileged: > > $ modprobe vfio-pci > modprobe: ERROR: could not insert 'vfio_pci': Operation not permitted > > Granting a device to a user for device assignment purposes is also a > privileged operation. Can you describe a scenario where this is > reachable without elevated privileges? The driver core maintainer has > indicated previously that manipulation of driver binding is effectively > at your own risk. It's entirely possible to bind devices to the wrong > driver creating all sorts of bad behavior. In this case, it appears > that the system has been improperly configured if devices from a user > owned group can accidentally be bound to host drivers. No user space action should ever crash the kernel, whether or not it is a privileged action and whether or not a configuration mistake is involved. The only exception are actions that are intended to crash the kernel, e.g. SysRq-c. I'm surprised that I have to explain this. Bart.