Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8219768ybi; Thu, 6 Jun 2019 08:33:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmLwquBVB9eCYQp5pQzBCZ1xmofWhyjlNPloa/NekYQRAzVojxtJJ1CvB2DAIvAz7CtjUp X-Received: by 2002:a65:430a:: with SMTP id j10mr3839527pgq.133.1559835222493; Thu, 06 Jun 2019 08:33:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559835222; cv=none; d=google.com; s=arc-20160816; b=c9uILhk+Kbe1wSUt+jtdvtS1EVMgnVbh8agfduwxdQAorHi6xrlD7U5MhtR4Y+JBe0 oCXSz5fgC/cxCGVtYaivbhPZwCaNYoJoKPSx9oDduLylD5xFLbwSlwr5ELct4zsCSImd 1eqbifTnV3z2VzfWYQVrwiaxKZRg+iSEDQri+w3HUfnARwtDL3lXXK2uZgDjp2Ag0mJA gXijTy5oHQIPEm/fsIOmiuYTUXy78Qs5JQyW+SJha/VZAy+TrcJb/Nexl5tvlYe1n/ye faKq67KubPCAkmmiqglX5EOsBgwf7/hAiiVPdwdK5VOOHGsykrEdwkXUDEnamrfUWoUQ ZnJQ== 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=asx7hU6tr0tOzeiUz6z/dE6u+6FM7vzXg6lpPFinbDE=; b=c4iIuap8n3vH+eiJPl59WAejvSoa2ngqhdCUibbtvRbttfZNhSYFnbYHHK2dquBknQ t8ZfLCvE2pavlHFR0vH9J54Y2vOByLVO/cEdsXaC4dsJTvuZhqza9Gjitx957JEunYnw +9OHhVaoVVQGvsSdsyDcwRvX+XGWr1MYW/K4jtEgSDELNq4nGFZOrkzifUIcS/2OiP39 QAadRiaK7FEHp5vBuILz8nSx8J858v/KXqwEIkwflvt5xQ69XKTT6FpSVLWUryAmJNKo /DXeIG3f6OhCqxuuIDWK9rB27IBMuRMVX+hqS7t4aqFDnKUUYqiMk6PRkdTL2ECEMJ2t 82Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Sls1Ac8f; 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 z193si2353945pgz.414.2019.06.06.08.33.25; Thu, 06 Jun 2019 08:33:42 -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=Sls1Ac8f; 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 S1729385AbfFFPbx (ORCPT + 99 others); Thu, 6 Jun 2019 11:31:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:46738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729045AbfFFPbx (ORCPT ); Thu, 6 Jun 2019 11:31:53 -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 DB9A520684; Thu, 6 Jun 2019 15:31:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559835112; bh=auxbwT7fReJRZ8phkETElOOGx98Nm3DMKGuBNzqK4tM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sls1Ac8ft0yHOcjrqT/Sogzn929Pqs6//tyMW7eH5G0zrT8QLdNQhIS85jv6VxDzz MHZqpcHha72lL1p3LiRLsHd6UO8jnT++nCFM6pgYXW18Vppu62GMNhI2WeA7tVfexV UEPrGRlzojOutRXk5dBStG/hmW9kjs1A9pfGreoY= Date: Thu, 6 Jun 2019 17:31:50 +0200 From: Greg Kroah-Hartman To: Alan Stern Cc: David Howells , viro@zeniv.linux.org.uk, linux-usb@vger.kernel.org, raven@themaw.net, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/10] usb: Add USB subsystem notifications [ver #3] Message-ID: <20190606153150.GB28997@kroah.com> References: <20190606143306.GA11294@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 06, 2019 at 10:55:24AM -0400, Alan Stern wrote: > On Thu, 6 Jun 2019, Greg Kroah-Hartman wrote: > > > On Thu, Jun 06, 2019 at 10:24:18AM -0400, Alan Stern wrote: > > > On Thu, 6 Jun 2019, David Howells wrote: > > > > > > > Add a USB subsystem notification mechanism whereby notifications about > > > > hardware events such as device connection, disconnection, reset and I/O > > > > errors, can be reported to a monitoring process asynchronously. > > > > > > USB I/O errors covers an awfully large and vague field. Do we really > > > want to include them? I'm doubtful. > > > > See the other patch on the linux-usb list that wanted to start adding > > KOBJ_CHANGE notifications about USB "i/o errors". > > That patch wanted to add notifications only for enumeration failures > (assuming you're talking about the patch from Eugeniu Rosca), not I/O > errors in general. Yes, sorry, I was thinking that as a "I/O failed in enumeration" :) > > So for "severe" issues, yes, we should do this, but perhaps not for all > > of the "normal" things we see when a device is yanked out of the system > > and the like. > > Then what counts as a "severe" issue? Anything besides enumeration > failure? Not that I can think of at the moment, other than the other recently added KOBJ_CHANGE issue. I'm sure we have other "hard failure" issues in the USB stack that people will want exposed over time. thanks, greg k-h