Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3421232imu; Mon, 24 Dec 2018 01:24:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN4rz+c0ErS0RTCDWquh1LvA/EN0WEE2MgBPNozdVOuDLUdLZuVbdSMJ2L96QG4noL3Q1LlW X-Received: by 2002:a17:902:ac8f:: with SMTP id h15mr11962759plr.245.1545643455361; Mon, 24 Dec 2018 01:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545643455; cv=none; d=google.com; s=arc-20160816; b=CLT+Np+2qvcvGbK4cZ3o+93m2X7+LAbvHPURogjjFZWnKP9BlXV/QIv8yPvJtCjiqI pFQa9eHF3E5h1KDyvGVEF3w91OTQBwCWLBNDJ5NIXn6IRr4FA39JjTOJN3Z0kKztxaVY MVMlOlREQnFdoiXzADipjf8y2JUYsLrVy/h3Xpwa/V3hZYKyh0iXmGtK6uR9T7H3PRRL e+5UnOCxtqQBqq6cnyDhOfCXbu7eamGNc82BeInK8v2gBxfKqbjE12nisoQZuzv6otHU l+i5xhqv+yB7qLUHbycqmEms5jBaHy5ef2H5is1J0YAp1r+GHEFbj+Px839JHyVvkJ0W QmLw== 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=G8oAhV7292NW+1PrrO+aaTU2ZabSr8fqEr65fg94zV4=; b=kEnBXSubmSufrhsjWnFZ/xU75W61m3mUvIVVtDPP+UPnEp5knPATLBB8MUj2LgNdDa X03Bgxun5aae5HMODggMldpN7a+mMunUT1uOIWsp26z6/dZ09m/ulH52J4Ur9LxENMxf b6cZGKUFZeUjPiHTuuBdYOX4h4fiMJ4QP0nTuvz34VF61HSYfK5+Zn8p+7cRC2MOcUXU 9CMXfmnezbMuNvfh4Oiit4sgXLqD1dPRNkVj1EyETBmnNka7HrLgigU+uJDzhwFllY5/ p/07beVv7S6ZGjW+8HMUhxnURN2Sgrk8LhorJSogaOtOeOWL6qgZ1VjFQiNPGJonnSne a6zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XdszBBnV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si7718441pfi.176.2018.12.24.01.23.59; Mon, 24 Dec 2018 01:24:15 -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=@gmail.com header.s=20161025 header.b=XdszBBnV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725768AbeLXJXC (ORCPT + 99 others); Mon, 24 Dec 2018 04:23:02 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44724 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725294AbeLXJXC (ORCPT ); Mon, 24 Dec 2018 04:23:02 -0500 Received: by mail-pf1-f194.google.com with SMTP id u6so5588170pfh.11 for ; Mon, 24 Dec 2018 01:23:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=G8oAhV7292NW+1PrrO+aaTU2ZabSr8fqEr65fg94zV4=; b=XdszBBnVpgxSERcH6qxj4t09invDafGaQRdL1Vw2u9gXVJmDO7er0tGm5xMI6eVJav VoUR7Jyq13A/T0gLnFqRaqJe9Zpf/EmzepNP2BnP74ywuptkOQKPlqT3SdJIZXiio4qx I0NJleVNImuQ5eT7kwleaCWsbMl7mCTBaveGcVPpYFXySOwtLoA+g0VNYsnilZv4cMih abyVY4by2fXVOo7QiTCH9Dc9StiftcL5TQAmeTDHc7HHR1rnZRUb+BjfI7+TxwNWD9b7 8No2Ywti2QliE4aFheWcGLmW61s35sa8fuFLKHKfduuIs3ej5xnpTM5XrSqsTjIo48qc /pGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=G8oAhV7292NW+1PrrO+aaTU2ZabSr8fqEr65fg94zV4=; b=rbdq6A+ola3fFpeAN3Sh9aaGT3SjSykH1fLnG45V350DYvkPOLLz7A3VVCdJ7ftxWe p3ZcbjlNUXvF8KLKi4k0i02Jz/P5aulWyRRIu1hY7uPTFwUJ5renOWaN5xnpUtA5loim G20Zqc49gmeM0p1uCqzNKxAtXAUBjJwdQ5g+uriFAfArLMl0iLlxQYKRoSzhspacgtx/ 5UyNbqk/b4kG4qlVw5FTPuLeFwL25Gw7+8HnB+wk5oPOeQoN1s2Zc/vJHcuqH1n7slRE tDGf/m86rymoHp0TR6cNA/iW3jcs6OJtFvqQt5TcT/9fiwKkQAlTmB6P9n9odkNDszUM kWLQ== X-Gm-Message-State: AJcUukcODg/Q9BfjS46knnlUB+kuCShZqWbV80tbm+yar9fRU0DPzdWH X1aeNLTCi3cR9wyJB0Mi3zA= X-Received: by 2002:a63:f74f:: with SMTP id f15mr11776146pgk.190.1545643380845; Mon, 24 Dec 2018 01:23:00 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3adc:b08c:7acc:b325]) by smtp.gmail.com with ESMTPSA id z14sm36936794pgv.47.2018.12.24.01.22.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Dec 2018 01:22:59 -0800 (PST) Date: Mon, 24 Dec 2018 01:22:57 -0800 From: Dmitry Torokhov To: Greg KH Cc: Marcus Meissner , linux-kernel@vger.kernel.org Subject: Re: FYI: Userland breakage caused by udev bind commit Message-ID: <20181224092257.GB122208@dtor-ws> References: <20181223164954.hib4lbchftspidsd@suse.de> <20181224091229.GA26796@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181224091229.GA26796@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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 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. Thanks. -- Dmitry