Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9353594imu; Wed, 5 Dec 2018 03:29:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/WhUSE8kyW1ZoppUfMW3LkTN6E1jl+3ECZk5//aYw3uO2GBhwtvF4BkFFO9a5vXfwtptG1J X-Received: by 2002:a62:de06:: with SMTP id h6mr24711294pfg.158.1544009398246; Wed, 05 Dec 2018 03:29:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544009398; cv=none; d=google.com; s=arc-20160816; b=BBtykBXs/foox53iPwkEF8IGigUJggAr8aDD9KayQE/Cg/JNw4mjLprovRMJ6O1ghB jWUKbBRhidLw20/HWvVCrdqrF99z6Lj64fCZMKMt7jQHb7wjHcCX2MXS8dUX9/uHq4bL 4j2f0invkhUugfRC9PaMAOd6504hvGb4KkCwEvHUBA8vS2fXeBOfMAteENxUuLWuloIp Fa1p+LeZRhHLcmbhBK2ueShWJFwqRB3Rypr5P5AIpmwWLTQ0xk8G4vZLpkQ1bNF7lbFp RFm63LjOnqpwtUILQvZx8KlLiBK/MEJ7VBBi0g945avEGKrJpH9n6K/3CkLylrgfyaed Yjng== 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:mime-version :message-id:date:subject:cc:to:from; bh=M6xSobTS4/I/ly2Cl9N8o3ul8wORyRBSidBYmcB7Z90=; b=zONjig9azWoS9Pv85qTr7hItOF2WoFcVATvop9P1m9bcZzW3iv+mHLKY+2ZB7eq2KX O/sTfVE3dhEnIqY6svtdKgeblg0Ha7fs7q9ffaktJsNq5xRmYDMjxIcc1ekVJM04ZfYq ke05l1jiWiLLq3YiB91gE9Uc5qfs2H3V0uV7d98XvKN6V/y5SeuhO6HmQ8kOx9OF0+1r xTggWAPvVpCCMFOju7/768kbuc77MtKFObUNQlKtjEMj785d4HjXX3wwbHxgide7BtYg gC996ldS4xUmMf3GljegAdSQwtTL1sxcI7IQrYzHtlPfo3ep1qDSF3nzcVOWF0qxVXIJ FDyw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18si18432762plo.223.2018.12.05.03.29.43; Wed, 05 Dec 2018 03:29:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727566AbeLEL1x (ORCPT + 99 others); Wed, 5 Dec 2018 06:27:53 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35385 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727094AbeLEL1w (ORCPT ); Wed, 5 Dec 2018 06:27:52 -0500 Received: by mail-wm1-f68.google.com with SMTP id c126so12460387wmh.0 for ; Wed, 05 Dec 2018 03:27:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M6xSobTS4/I/ly2Cl9N8o3ul8wORyRBSidBYmcB7Z90=; b=D63IumnYp1XBJv0uAhVxEtJv8HdxSITswu9fz1PdEViBqIZdWFFDR6+2Fp7A20cvl0 QeGUEmUzN6ARf6fGF/jAqC5gBlKxFmsaSAejI0J59YkLNOMNaAnsydNjNQ45lNIGx4en Nmnmd19NLvNFjdG+enyfj/+tlUmSImrAqhFVCfMooqz5+TByrxcRFbz4LwAKELeD5PWF ts8OCWn9BYGNE7/FyERgWFyb93/3WJiJf1+sO5k1uXbpIK+ef236Lq7djRsld8Ivt7Cz aHQdXy+Xo88ixPIDj92n7XpAblplFuPFz717o/aDuK5KOQP5HrRQ8BR2T0KZyBgAKemJ soRQ== X-Gm-Message-State: AA+aEWaEwR8BmSjNNlZsvegnLQdRHypK/+Kl10+CkhLAdUPzXgEGzWkS iKitBL8nUgg+fZPvv4zIO88S4w== X-Received: by 2002:a1c:7a16:: with SMTP id v22mr5288818wmc.131.1544009270650; Wed, 05 Dec 2018 03:27:50 -0800 (PST) Received: from alatyr.usersys.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id d2sm14535027wrs.97.2018.12.05.03.27.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Dec 2018 03:27:50 -0800 (PST) From: Peter Rajnoha To: gregkh@linuxfoundation.org, rafael@kernel.org, jeyu@kernel.org, linux-kernel@vger.kernel.org Cc: msekleta@redhat.com, Peter Rajnoha Subject: [PATCH 0/2] Fix return code and improve feature check for synthetic uevents Date: Wed, 5 Dec 2018 12:27:43 +0100 Message-Id: <20181205112745.12276-1-prajnoha@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two small patches to aid handling of synthetic uevents back in userspace: - Return error code back to userspace on /sys/.../uevent file write failure so userspace knows and it can act accordingly. - Add new 'kernel/uevent_features' sysfs file to make it possible for userspace to check that the extended synthetic uevent arguments are supported without relying on kernel version check only. Peter Rajnoha (2): kobject: return error code if writing /sys/.../uevent fails kobject: add kernel/uevent_features sysfs file drivers/base/bus.c | 12 ++++++++---- drivers/base/core.c | 8 +++++++- kernel/ksysfs.c | 8 ++++++++ kernel/module.c | 6 ++++-- 4 files changed, 27 insertions(+), 7 deletions(-) -- 2.19.2