Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3872904imu; Mon, 24 Dec 2018 10:15:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN71M5ePF7oJP4BR1/EW0nqcHhy150pBfNK5oeA5i6Y4pjZzatoAc5ic9OKDBkkDRFrQo8gK X-Received: by 2002:a63:a002:: with SMTP id r2mr12969021pge.212.1545675337297; Mon, 24 Dec 2018 10:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545675337; cv=none; d=google.com; s=arc-20160816; b=pTfnh6C0YwDctaWolDnqPjITYayxHD0EoUTRUNVuARMgUS39pGOt+G81kWd0EDHjMm 43+iPcJiNJK8npWXaAfHv1c3rtc3vEtjAllem71jLKKfDPiEN4rQZb+N5kSTPw3v+Qes fbusMBtm/l8tXrtpE1PwuCMKMjrgEG08Legll+otYuM4JnqA6Xf1HSxEM9Zk39ccFmZ5 ufCB9YlgAbTG9wgjZD+97o/D8Q0oTSUgSp3g4L2DkZKHhr/TC/KvpsLYN0agp1kOtcVe 3mtEsY02ALvtsNvfhQKEFngHfZz4pqkmVthbBDRhWDmDproU/UQdFNMyvTIFmfT7Atj+ 0LjQ== 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=3tJJaN+0nHjG6o3hT/fiL3K5Igl+3VTS4TCm9SH/w8M=; b=Wexxleql9P4opILp75QW/nF0Atgo0ZkJo/hhrr3lpxqL/zsM2Narbk9SXS4p4l5h3P Vh4htqCVVYx3keFQKb6OKZ5QiCshqGDo0HIAkXBatCBSp5GJFhqsB5Ig7xcSFTVJI/ic 9Rv24gv1CK8xD8DV7DO/lkMqOSwyep1lHg9hMUb9MhON6rPWVQ1scJC8zpMC2Mct87Cd CAG4LpWsm05gfDzweM+EgyAZ8Hq2qnUQAwajHqlF5Lrh3b+7JgjrFgDYnOi1O/usyJYx PpVOjE5fjrYKcFGs0LUOnUyhL6dde5qFFVpwqnU/bKedfmddUYxYKZG17x73WC8Izbkm NY2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=eQLUhoZc; 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 w12si26816929ply.404.2018.12.24.10.15.22; Mon, 24 Dec 2018 10:15:37 -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=@brauner.io header.s=google header.b=eQLUhoZc; 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 S1725894AbeLXSNd (ORCPT + 99 others); Mon, 24 Dec 2018 13:13:33 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45675 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbeLXSNd (ORCPT ); Mon, 24 Dec 2018 13:13:33 -0500 Received: by mail-wr1-f66.google.com with SMTP id t6so12155220wrr.12 for ; Mon, 24 Dec 2018 10:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3tJJaN+0nHjG6o3hT/fiL3K5Igl+3VTS4TCm9SH/w8M=; b=eQLUhoZcwHlCJRuLr12+R2kvebMCYP/Yn74sw1Pe3060DXFy+U99Db6GhQULDK3ePH 0jkEKzDkRn4IewaqfRyU3obH/noRkdSb3cVjEumqXEahFmwKcI1LAsvGbAXuNAuAbzww kEVoQWxnh4yNs1LqGUuPLBF96tmpm7bNVaQdVHb4WXOn40624rcFSTrvjO/82RplYfG3 90H9Daoi9lLLwvWlsyH1t28JKrhldggHWBXxvqZgvk8yqgFeVjYm1cqFWyoekmwQNhP0 jkFTHyRp3SHgk5YPK41JlPHXahGLqPmLcVeRn7am7FCR+ZwV27F39laXqYEPWcbI2STJ TmtA== 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=3tJJaN+0nHjG6o3hT/fiL3K5Igl+3VTS4TCm9SH/w8M=; b=Fu3u8efkzX7/Ef98ZRlYFuoc6oBzbmbE8velOsFlFBdWI1HIiWQwTy4JrOvyOco6qV q0f6RK5p0cJNnfKvGy2+U9aJ126JuP96n5mnWPhkFVHSalcMA4vtrzxY5dvXbWEcmTMI FXJ/ohWrY3umFVD5PyLHKXIUF/tdYABhxSt1fXF+nob3razUmoty3eQsAgiu/XVAafsb tkMZCBcwXX0Q+EooYe3mTsC2JiO/8C2nsD3zGtcsUOG0ffphyekR0R/17yv62XGSYLER TdJnjOi1T7rVUrQkBhCWfjIMZR5osOQD/BTWN1oUpmSH4NHk8y+UKkaL77tNjTXsf7zQ O0Pg== X-Gm-Message-State: AJcUukdqJmwXBOsCyH9gKK/ay5MOYySACBNDMNZuAgMYJqBRaCyyFrHO NfmBg+qMpFrIfwow/LiuvTcfBg== X-Received: by 2002:a5d:480d:: with SMTP id l13mr13410981wrq.175.1545675210979; Mon, 24 Dec 2018 10:13:30 -0800 (PST) Received: from brauner.io (p5B2A6FBE.dip0.t-ipconnect.de. [91.42.111.190]) by smtp.gmail.com with ESMTPSA id i186sm23515627wmd.19.2018.12.24.10.13.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Dec 2018 10:13:30 -0800 (PST) Date: Mon, 24 Dec 2018 19:13:24 +0100 From: Christian Brauner To: Linus Torvalds Cc: Dmitry Torokhov , Greg KH , Gabriel C , Marcus Meissner , LKML Subject: Re: FYI: Userland breakage caused by udev bind commit Message-ID: <20181224181322.n7n6d2y63gwnv7cb@brauner.io> References: <20181223164954.hib4lbchftspidsd@suse.de> <20181223171703.s7jm6fkyosnsf33z@brauner.io> <20181223180609.GA102606@dtor-ws> <20181224091703.GB26796@kroah.com> <20181224105407.GA29719@kroah.com> <20181224173427.GA254245@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 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:06:54AM -0800, Linus Torvalds wrote: > On Mon, Dec 24, 2018 at 9:34 AM Dmitry Torokhov > wrote: > > > > Well, it appears that we can no longer extend uevent interface with new > > types of uevents, at least not until we go and fix up all > > udev-derivatives and give some time for things to settle. > > How about having the users "opt in" for new events some way? > > Do all the legacy events by default, but then if some user wants a > "bind" event (or some other new event) add a model for the uevent > interface to actually enable it. So one possibility is to add a socket option for lib/kobject_uevent.c that can be set via setsockopt. We did something like this in netlink for strict property and header checking without breaking backwards compatibility. That might be an option: commit cd7f7df6ca3366be4ac79e824fdaa8d482270015 Merge: 272a66173bbc 8c6e137fbc7f Author: David S. Miller Date: Mon Oct 8 10:39:06 2018 -0700 Merge branch 'rtnetlink-Add-support-for-rigid-checking-of-data-in-dump-request' David Ahern says: ==================== rtnetlink: Add support for rigid checking of data in dump request https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=cd7f7df6ca3366be4ac79e824fdaa8d482270015 or adding a new flag that can be passed when opening a NETLINK_KOBJECT_UEVENT socket. Christian > > Not using kernel versioning (nothing should *ever* look at the kernel > version, since that makes things like backports a huge and > insurmountable pain), but simply using some specific control channel. > > > I guess reverting is the right solution here. I wish folks would yell > > earlier though... > > So nobody is actually using the new "bind" event, I take it? It's > about a year and a half, and it's in 4.14 which is widely used, so > reverting it has a risk too. > > Which is why I too would hope people would be much more vocal about > "that broke my setup". > > But reverting does sound like the right thing to do if nobody is using > it. It sounds like systemd udev does not, and if eudev is actively > broken by this then how many other cases might there be? > > I assume any locally modified udev rules would still be ok with the > revert (since presumably any udev rule modification people did was to > just ignore the bind/unbind events that no longer would be sent). > > Linus