Received: by 10.213.65.68 with SMTP id h4csp738191imn; Fri, 6 Apr 2018 08:06:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx49AfSxjCD00S6Ii1OJZfPPKAm+Jz38RpTW6plQfvNI4oBt8IrUrdZ6827fymxpXds4y1tFd X-Received: by 2002:a17:902:8687:: with SMTP id g7-v6mr21946077plo.218.1523027160266; Fri, 06 Apr 2018 08:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523027160; cv=none; d=google.com; s=arc-20160816; b=VsGSJN5lyIowPcDp7R5C6pqzn8JOng8EsrJU94tEEOKg3aZjMla/SFq2onaZXOrnEX DtZuEcjoi7Y2/1qAjNUVvUE2wbm6RH6SbzXz9kNqLSTVWYokfBsRG5L5ZY3Zh09HPdfT QfT66BPJsLemFSWNq2vNTUP01x6uuSEVhUvFERISPJSbVWQMrz0edQPcjabsmFdZD2oY kkB1AGhbVyK0pI9+3fep6fGhVG/N2bX2snAR9ebXrIWKtECCTh6Tk9gD/+RapuFCLsJT jva+U6L3xAxTgo0DLAgWOE5d4BYxRBV6FKBSn1I1K3x3eM0pM/O29hv1gdw2JWjzjqPz B89A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=RehIDJZKkR4Uak+91/phv6RssdW2hiP2As/JdAlrJXg=; b=mtSSWejZ5EyRzzupelB8Jk7EoMa9jYY+P2iPaTZTuwe+2JlAMxKzcw93GCLDHs/0/l vtDhNan/X8vZF8bvt4by+NexU1LEaFLJv/TZ+Gxtz0FfHrPbIa1ADm1wjpsLXrCx97Cj crLaBuCu0/CQqO8gwHgYl2SreXHSKnvAzVahIvjTa1Y8FeJcJRwg4kyEUXIJKeIEoqJm wyGF/rtSRra3OBY9XIGM7VTBZVbFULW9lMyOoX6Hh+0cSxX+cNYArsqPZW1+NYs4LG1I a6rkqhCV1I5tk6CTWxjrsdq6c8ygmwGKWXbAjyug+Y+HqM6B8MKiiMqUgCI21Kg433Ih nPAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@transient.nz header.s=default header.b=AHCyNHVC; 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 i133si6621709pgd.598.2018.04.06.08.05.44; Fri, 06 Apr 2018 08:06:00 -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=temperror (no key for signature) header.i=@transient.nz header.s=default header.b=AHCyNHVC; 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 S1754834AbeDFNaP (ORCPT + 99 others); Fri, 6 Apr 2018 09:30:15 -0400 Received: from skyhawk.myhost.co.nz ([120.138.17.237]:50653 "EHLO skyhawk.myhost.co.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754793AbeDFNaL (ORCPT ); Fri, 6 Apr 2018 09:30:11 -0400 X-Greylist: delayed 2547 seconds by postgrey-1.27 at vger.kernel.org; Fri, 06 Apr 2018 09:30:11 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=transient.nz; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=RehIDJZKkR4Uak+91/phv6RssdW2hiP2As/JdAlrJXg=; b=AHCyNHVCH6qdaTzGFGxkNnJmK1 VYJLvjd+hDM6eakfWIIcyjeJkmSOt8kcbwbmTPOA4Buf51LMuW4J456YCvHqnOooYErh34Wt5+fIY ms1agyUgPOAZaT8U892PCqBUCe9zoEFH6WlVCTuLKnam1brUy6EG9ZReujm770QKop5w=; Received: from 122-57-206-164-adsl.bb.spark.co.nz ([122.57.206.164]:38462 helo=[192.168.1.1]) by skyhawk.mysecure.co.nz with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1f4QmE-0003UM-Vi; Sat, 07 Apr 2018 00:47:37 +1200 Subject: Re: Commit *driver core: emit uevents when device is bound to a driver* causes regression To: Paul Menzel , Michael Tokarev , Greg Kroah-Hartman Cc: linux-input@vger.kernel.org, Linux Kernel Mailing List References: <8d22cfe6-90b6-eb86-d82e-0e037bfbed4e@molgen.mpg.de> From: Ben Caradoc-Davies Message-ID: Date: Sat, 7 Apr 2018 00:47:33 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <8d22cfe6-90b6-eb86-d82e-0e037bfbed4e@molgen.mpg.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - skyhawk.mysecure.co.nz X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - transient.nz X-Get-Message-Sender-Via: skyhawk.mysecure.co.nz: authenticated_id: ben@transient.nz X-Authenticated-Sender: skyhawk.mysecure.co.nz: ben@transient.nz X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Paul, I agree that this is a regression in user space, but I would also like to note that, as I reported in Debian Bug#883425 ([3] and [4] below), I was able to restore user space functionality by upgrading to gvfs 1.35.90-1. This later gvfs appears to support (i.e. survive) these uevents. Kind regards, Ben. On 07/04/18 00:20, Paul Menzel wrote: > Dear Linux folks, > > > Commit 1455cf8 (driver core: emit uevents when device is bound to a > driver) [1], introduced in Linux 4.14-rc1, causes a regression in user > space. > > After disconnecting USB devices, they are still shown as plugged in [2][3]. > >> I seem to be having a similar issue, but with an iPhone X using USB >> to provide internet access. Even after the phone is disconnected, it >> still shows up as "loaded active plugged". The only way to fix this >> is to reboot or use a different USB port. > > `git bisect` shows that commit 1455cf8 (driver core: emit uevents when > device is bound to a driver) is at fault [4]. > > As user space should not break with newer Linux kernels, do you know > what to do about that or can you think of a fix? > > > Kind regards, > > Paul > > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1455cf8dbfd06aa7651dcfccbadb7a093944ca65 > > [2] https://github.com/systemd/systemd/issues/7587 > [3] https://bugs.debian.org/883425 > [4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883425#68 > -- Ben Caradoc-Davies Director Transient Software Limited New Zealand