Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp402510pxu; Tue, 1 Dec 2020 14:21:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLkUCVmYmttyuBzwKklQjE6XJlrOt3ipxr2rVMpZPcCNg3+9vxb2IhaCXHAeIE6/eUHQ5d X-Received: by 2002:a50:a40c:: with SMTP id u12mr5190072edb.337.1606861284119; Tue, 01 Dec 2020 14:21:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861284; cv=none; d=google.com; s=arc-20160816; b=M8tPV5F5oqg8cBH41IUQnS0vzaYH0AWxh7hUraILjBriegRN8iIEGxHwSCLC82v+oZ S04JBYj8zIfOIcwb0irpsHdawGUK8aV5zAkekDJrTbl9xEMn6vIo41akY8/77GI4Ibed 9R0CVMuOFs7FAquJJkRdZfeuJ+8K0eH/94f+fZRhvDMBy1kXtou3gRUSBU/uS4OuHG6K YFK62b5Au+lUTRKZiCtM7pBx0CltXkd1ATLj366TkF0ziOU2+y2caavJd4yxPCaYAzjs mmnyOD/zA0Zs9+jDbgahmThvI/izcwDRKf4/oG6y9UaJEQiIe+JJSNzWzTSwP5eGRXAD bIqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1V4O5WYpL2nXQ/ZKwGIPDex61aFQceUMjB9VvXxcWrE=; b=Ryt1FPBrKQtXU8ZUPa2A8bYCje4LNkS/kFs6a2xnTZebpfxAX0RVVZczd8gLcfs0q6 zB1ZG4K9RjfiIPqtPHzky1D6Yea8F7FmgqtWGzhZOVKkdJlRaZXsfJhZdd4i71aD5vvd 1JRIHVqWSH7EFv5zsgY2z+GAasaW1S+fCwDyjJ1rfIu55qSKJxH1UY9OscpWOiVPfg4Q EWtFphYdPNNZ9v453q5YfvDSCWu1paIxT7UTJ3ZggXUuOri4RBYITDoTvji9i/v14c4R OBcwCgYU6imeZl6TjPuuqM7XlpGbXByn1bY4jV7LL8skY5hdnYWnlmAknJJLabja7GQS d1SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ISfZRifL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si709367eje.191.2020.12.01.14.21.01; Tue, 01 Dec 2020 14:21:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ISfZRifL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388273AbgLAJAQ (ORCPT + 99 others); Tue, 1 Dec 2020 04:00:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:36096 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388237AbgLAJAJ (ORCPT ); Tue, 1 Dec 2020 04:00:09 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 4B23F221FD; Tue, 1 Dec 2020 08:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813168; bh=OUq2oS5Kj3Nr4azF+/NEU2KJZZGMz2UHz9ZqvtC55M4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ISfZRifLJK0KzagGh4JI86n8/GqOqlHQBlgPGlgu7RZKdlucNNHAzbpLIBKk3/4Wm pvjSSjvg2xOy6x3EZzxkxVAPUzDlbOc5UM6fnwyBDyqrxFDW9dF5Hc8nNkvqYAk3TZ IiFRerahU71aDGRA9CtIXmf8sFtFqiIs1nnq7sKI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Taehee Yoo , Sven Eckelmann , Simon Wunderlich , Sasha Levin Subject: [PATCH 4.14 27/50] batman-adv: set .owner to THIS_MODULE Date: Tue, 1 Dec 2020 09:53:26 +0100 Message-Id: <20201201084648.420517221@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084644.803812112@linuxfoundation.org> References: <20201201084644.803812112@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Taehee Yoo [ Upstream commit 14a2e551faea53d45bc11629a9dac88f88950ca7 ] If THIS_MODULE is not set, the module would be removed while debugfs is being used. It eventually makes kernel panic. Fixes: c6c8fea29769 ("net: Add batman-adv meshing protocol") Signed-off-by: Taehee Yoo Signed-off-by: Sven Eckelmann Signed-off-by: Simon Wunderlich Signed-off-by: Sasha Levin --- net/batman-adv/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/batman-adv/log.c b/net/batman-adv/log.c index 4ef4bde2cc2d3..b61ce96ae1d3d 100644 --- a/net/batman-adv/log.c +++ b/net/batman-adv/log.c @@ -195,6 +195,7 @@ static const struct file_operations batadv_log_fops = { .read = batadv_log_read, .poll = batadv_log_poll, .llseek = no_llseek, + .owner = THIS_MODULE, }; int batadv_debug_log_setup(struct batadv_priv *bat_priv) -- 2.27.0