From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DD8CC3F6B0 for ; Tue, 9 Aug 2022 10:32:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239907AbiHIKb6 (ORCPT ); Tue, 9 Aug 2022 06:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbiHIKb6 (ORCPT ); Tue, 9 Aug 2022 06:31:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9500A2316F; Tue, 9 Aug 2022 03:31:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0027560F97; Tue, 9 Aug 2022 10:31:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3BDFC433C1; Tue, 9 Aug 2022 10:31:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660041116; bh=WG6HNx5fPEM83cbBjERH0yaKplVZjzF8hr0utFyOdY8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tv212bpi2NVNmXcOVPNTWUTheJEa6KvuVXewowz8UPX2beFR2ViwG6vH7NDBFuD2i DAgR6QqvMQ+oY4uW4Mner4c1/UF2OYTXsHE6gJJI59WQNGc2a7CEx0CWX/2itHkcMR aI/cJin3Mn3tbaXFOhxO6//sR6BbClLOoAxufPFA= Date: Tue, 9 Aug 2022 12:31:53 +0200 From: Greg Kroah-Hartman To: Bastien Nocera Cc: linux-usb@vger.kernel.org, bpf@vger.kernel.org, Alan Stern , Benjamin Tissoires , Peter Hutterer , "Eric W . Biederman" , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Subject: Re: [PATCH 0/2] USB: core: add a way to revoke access to open USB devices Message-ID: References: <20220809094300.83116-1-hadess@hadess.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220809094300.83116-1-hadess@hadess.net> Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Tue, Aug 09, 2022 at 11:42:58AM +0200, Bastien Nocera wrote: > BPF list, first CC: here, I hope the commit messages are clear enough to > understand the purpose of the patchset. If not, your comments would be > greatly appreciated so I can make the commit messages self-explanatory. > > Eric, what would be the right identifier to use for a specific user > namespace that userspace could find out? I know the PIDs of the > bubblewrap processes that created those user namespaces, would those be > good enough? > > Changes since v2: > - Changed the internal API to pass a struct usb_device > - Fixed potential busy loop in user-space when revoking access to a > device > > Bastien Nocera (2): > USB: core: add a way to revoke access to open USB devices > usb: Implement usb_revoke() BPF function > > drivers/usb/core/devio.c | 79 ++++++++++++++++++++++++++++++++++++++-- > drivers/usb/core/usb.c | 51 ++++++++++++++++++++++++++ > drivers/usb/core/usb.h | 2 + > 3 files changed, 128 insertions(+), 4 deletions(-) > > -- > 2.37.1 > You say "changes since v2", but have no version identifier on this series at all :(