Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3429884imu; Mon, 24 Dec 2018 01:36:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN5XfUY8YkzMWlyDK1kEYUlXxc8NQ5mXyUbxlOBnSuX1u+y9zxyYOE2QUw3mkJKnpTZpSaxx X-Received: by 2002:a63:4d66:: with SMTP id n38mr11849186pgl.270.1545644170711; Mon, 24 Dec 2018 01:36:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545644170; cv=none; d=google.com; s=arc-20160816; b=yOF8xX8w+IW1F4oXTnyvrewG7roDc+RV1dKD21fJ34cQjWE0nY9ctnK4XYUc4JJsk7 8lTOKBS3KuVyhvOftt5hPKmJmehRPRo0IyhVKHlB6jsDFeOdCJcroZoA/LSMx+xjDhsd fc67/GEvTOZBfBdB4Zu/0rJ4Fl2w9U3FBKu0uTaipVt+CXJpQ8m7FpAQ7k1l1IoAS7J0 tEgoFFpSaAuoOS5GujrTp3GsuBo03QUm3pd4g6B9qIcwDumKiJOgTh6UmiUVuTxMktBg zwpgLTFpdmFd/yQjpWjatVE7xpfiFgVJYfsDpFbSINz1ERlXQqDooMUzqcymzLeMbR+Q AbSw== 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=gf9cn2ZqJnUTcATT9NVBZPhx4trO9i/Qw+jC0YbWIys=; b=uOFz1GhlKSDz6T8vCoF/9Qbe4DO+M7Tbce0wXtJNDSS35t6pJ87oNrJX4kZPEWOEhb NciyTTdtKHy9UVPQr3Z6Hs1g7bFqeJb+xiZKhnRfkNJWDkzbKtVWStAYVsDrSqbZeG16 It+SZPorEw7OLsk6I967vPl6+1W1RtRe6WqfGqoCXktLujPR2FD+tpzoMLfjetXiajOv r6m1RN8V8G3Du8ybSKGB/UQlFaInqkAyCgtyIjoIFhv3Zui0Ed9u8BY5MwgCq+tM4nJx w0/O1nADJJNqFZcIa6lM+aQxwfoF8Fu5mCYyxsvziynYfkTz97YqeD10djJkZbvR+daO GSIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KlXGDImO; 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 m14si27321198pgd.326.2018.12.24.01.35.54; Mon, 24 Dec 2018 01:36:10 -0800 (PST) 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=KlXGDImO; 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 S1725769AbeLXJfC (ORCPT + 99 others); Mon, 24 Dec 2018 04:35:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:36460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbeLXJfC (ORCPT ); Mon, 24 Dec 2018 04:35:02 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 1911F21726; Mon, 24 Dec 2018 09:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545644100; bh=t+WDLbrLyOiOq6bDJp5Vj/GByhEAPNXBbbme97FBQ80=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KlXGDImOJI93Oc5x72Gm16WAZGFLH7e5vDwJP/tW3V5MDfoE5C52rlZRMoOJgPUOT 6P5awY7I0thef8fDo5Kg4JFxSXx5UcyCrS7nHIyfdQI+Or85yF8ONwPrK6rAKradEN WrE3F8OxrtGdxlZqUQPUJZ6IT5twm5xBQ/2JhmjA= Date: Mon, 24 Dec 2018 10:34:58 +0100 From: Greg KH To: Dmitry Torokhov Cc: Marcus Meissner , linux-kernel@vger.kernel.org Subject: Re: FYI: Userland breakage caused by udev bind commit Message-ID: <20181224093458.GA28717@kroah.com> References: <20181223164954.hib4lbchftspidsd@suse.de> <20181224091229.GA26796@kroah.com> <20181224092257.GB122208@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181224092257.GB122208@dtor-ws> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 24, 2018 at 01:22:57AM -0800, Dmitry Torokhov wrote: > On Mon, Dec 24, 2018 at 10:12:29AM +0100, Greg KH wrote: > > On Sun, Dec 23, 2018 at 05:49:54PM +0100, Marcus Meissner wrote: > > > Hi, > > > > > > I am the maintainer of libmtp and libgphoto2 > > > > > > Some months ago I was made aware of this bug: > > > https://bugs.kde.org/show_bug.cgi?id=387454 > > > > > > This was fallout identified to come from this kernel commit: > > > > > > commit 1455cf8dbfd06aa7651dcfccbadb7a093944ca65 > > > Author: Dmitry Torokhov > > > Date: Wed Jul 19 17:24:30 2017 -0700 > > > > > > If distributions would be using libmtp and libgphoto2 udev rules > > > that just triggered on "add" events, and not the new "bind" events, > > > the missing "attribute tagging" of the "bind" events would confused the > > > KDE Solid device detection and make the devices no longer detected. > > > > > > This did not affect distributions that rely on the newer "hwdb" > > > device detection method. > > > > > > I have released fixed libmtp and libgphoto2 versions in November, so > > > this is under control, but wanted to bring this up as a "kernel caused > > > userland breakage". > > > > This is complex, sorry. When this first commit was merged, we did get > > some reports of problems, so we reverted it. Dmitry worked through the > > issues and then we added it back again. > > > > That was back in July of 2017, and since then, we had not heard of any > > problems that happened until this month, a very long time. > > > > So I really don't understand the root problem here, all of the distros > > that have been shipping kernels with this code for over a year didn't > > seem to have any issues. My systems never had any issues, and so I > > can't figure out what suddenly changed to cause problems. > > > > Was it the fact that we all are using distros that use hwdb? Who does > > _not_ use hwdb these days? Heck, I would have expected Debian to report > > problems as they are the ones that are known to use old userspace code > > with kernel developers using new kernels. > > > > So what changed to cause the problem recently? > > I think this is new systemd that had my patch to handle bind/unbind > instead of ignoring them is catching up in distros. So: > > - old systemd with old kernels OK > - old systemd with new kernels OK > - new systemd with old kernels OK > - new systemd with new kernels - NOT OK - losing tags on bind > > Systemd folks merged my patch to disable bind/unbind again until we > teach it to no longer flush entire device state on each new uevent and > it should be well now. Ah, thanks, that makes more sense now. So all should be good, thanks for confirming this. greg k-h