Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938829AbdLSJMv (ORCPT ); Tue, 19 Dec 2017 04:12:51 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39012 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938816AbdLSJMQ (ORCPT ); Tue, 19 Dec 2017 04:12:16 -0500 X-Google-Smtp-Source: ACJfBotyrjX9QZ6A+2TKeNIhx03DHSS9aBOfOQ+jqMh6JyUC2ddWZraqtZs8E9+YECPSx6AW1aHsoJDh94Ij14QEVS0= MIME-Version: 1.0 In-Reply-To: <20171219084819.GB15010@kroah.com> References: <20171213232122.5ztmwume5kylh4mz@dtor-ws> <20171219084819.GB15010@kroah.com> From: Eric Dumazet Date: Tue, 19 Dec 2017 01:12:13 -0800 Message-ID: Subject: Re: [PATCH] kobject: fix suppressing modalias in uevents delivered over netlink To: Greg Kroah-Hartman Cc: Dmitry Torokhov , Eric Dumazet , Tariq Toukan , "David S . Miller" , Komali Katari , "Luis R. Rodriguez" , Casey Leedom , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1504 Lines: 33 On Tue, Dec 19, 2017 at 12:48 AM, Greg Kroah-Hartman wrote: > On Wed, Dec 13, 2017 at 03:21:22PM -0800, Dmitry Torokhov wrote: >> The commit 4a336a23d619 ("kobject: copy env blob in one go") optimized >> constructing uevent data for delivery over netlink by using the raw >> environment buffer, instead of reconstructing it from individual >> environment pointers. Unfortunately in doing so it broke suppressing >> MODALIAS attribute for KOBJ_UNBIND events, as the code that suppressed this >> attribute only adjusted the environment pointers, but left the buffer >> itself alone. Let's fix it by making sure the offending attribute is >> obliterated form the buffer as well. >> >> Reported-by: Tariq Toukan >> Reported-by: Casey Leedom >> Fixes: 4a336a23d619 ("kobject: copy env blob in one go") >> Signed-off-by: Dmitry Torokhov >> --- >> lib/kobject_uevent.c | 16 ++++++++++++---- >> 1 file changed, 12 insertions(+), 4 deletions(-) > > Ok, I'm lost here, is this patch still needed for 4.15-final? > > And am I supposed to be taking it through my tree as the offending patch > didn't come from me? :) Sorry for that, I sent a patch series ( 8ca712c373a462cfa1b62272870b6c2c74aa83f9 ) that was mostly network related stuff (dealing with skbs and all rtnl batching), and sent it to David before Dmitry patch was visible in David tree. Yes, we believe fix in zap_modalias_env() is needed. Thanks.