Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5342596ybl; Tue, 14 Jan 2020 07:25:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwoVyPkaT1QEuOdV1V29aUE6yVPWt28RHzeyutt5iJOnd7xuAx/wq99WIzH8ojwfmBKwqdq X-Received: by 2002:aca:c415:: with SMTP id u21mr17573552oif.49.1579015518717; Tue, 14 Jan 2020 07:25:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579015518; cv=none; d=google.com; s=arc-20160816; b=U1Fs7QClKcSO8BRr0Q2kFjb65Ascp4JF/0wLyV4YeS6kGWZxUN22GKlB7sgFnjsZ6/ h0FN+Ebklw9NZSuyeyOFrjI3C7UziENM9/76axbtXV3zQzE82R0JtYIhIB0lwEusfPR0 9t20p0cFL1oerGFohfrbKxQRIvYlwMF2Fds2Df47iPhlMU7PafFm+KpFJArOxm4cxf8c cvlGfi0nZofuMLQkotOYQ7rkUoNfUP5HniyqPs6lv5ubM/EWGuSeT+SQ+rlBRlFg62PW 8ah3VQeUf3yREJZWbz877sUkwYjHSn7uyOtzy8GDUVvI21vFvZFt/NmBbFtLjx2mjjRZ q9KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+3uEjaswSvlVfP6CYAQCqs/bRMoLq9fxvFqLKTh8p/4=; b=mcWhk9uradxOnd9ukXG5FpNjYK0apUWp4BMbhWPXnw5g6DkcFPfAls9jW7AUMb9uQE qC1DhXDjXTMdwO6o4irFqF3JV93qfkbv1kWmg/6gYwA1oGTaJsHFCSHq8ArfWaFuxKkn 7W3JeddeQ9fSvJLxxzgDJ8Mr6RcXSbNuBE478mAI3P67r6K3tQrX0L8v8zZl59NeSJN+ gnU5I4wcHdJ1JFVJ69bsEmyNBEIH2y2i3ArBv/DNm80rR6wtU2CXddKuLriu4A3w9rBs rJI7BITsHORjNmdBGgWr/gD8+9JK49sqH2DeM4X2uvng6LU+FnPagLjdVZaFo/CmXb0C XSbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XkObdN6Q; 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 h139si6740304oib.85.2020.01.14.07.25.07; Tue, 14 Jan 2020 07:25:18 -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=XkObdN6Q; 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 S1727289AbgANPWw (ORCPT + 99 others); Tue, 14 Jan 2020 10:22:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:39820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726335AbgANPWw (ORCPT ); Tue, 14 Jan 2020 10:22:52 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 5C73E2467D; Tue, 14 Jan 2020 15:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579015372; bh=9ONsXseL7vnPhow6rBf8Rwy7QYNR2g1suzafCfQHXSk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XkObdN6QZyL7qMxqhY0CAJQQ0sjY3N8DpwRxUhEzAeC7xnJ3/Iug79uQYo3uwuU2F ogbuVetlDLA9ETMJDdIEW15hjtaUpveO5gU2AkrPMIAtSFZQV0xcfV5k0D+TnjJay5 w4tfgTsqJb8Rc02Ry5a8qZSK7Y8zwKKeTusf244A= Date: Tue, 14 Jan 2020 16:22:49 +0100 From: Greg Kroah-Hartman To: Martin Fuzzey Cc: Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] binder: fix log spam for existing debugfs file creation. Message-ID: <20200114152249.GA2041689@kroah.com> References: <1578671054-5982-1-git-send-email-martin.fuzzey@flowbird.group> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1578671054-5982-1-git-send-email-martin.fuzzey@flowbird.group> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 04:44:01PM +0100, Martin Fuzzey wrote: > Since commit 43e23b6c0b01 ("debugfs: log errors when something goes wrong") > debugfs logs attempts to create existing files. > > However binder attempts to create multiple debugfs files with > the same name when a single PID has multiple contexts, this leads > to log spamming during an Android boot (17 such messages during > boot on my system). > > Fix this by checking if we already know the PID and only create > the debugfs entry for the first context per PID. > > Do the same thing for binderfs for symmetry. > > Signed-off-by: Martin Fuzzey Does this need a "Fixes:" and cc: stable tag? And it would be good to get a review from the binder maintainer(s) to see if this is sane or not... thanks, greg k-h