Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp409392pxu; Tue, 1 Dec 2020 14:33:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIXiuxJkNvDYUqAVfLzaQNgLeaCNm9qCFdoAM9qrlfuSY0bZtZ34zwhxVPstcVxTmB6ovb X-Received: by 2002:a50:99cb:: with SMTP id n11mr5358099edb.362.1606861991420; Tue, 01 Dec 2020 14:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861991; cv=none; d=google.com; s=arc-20160816; b=EwGxwO/Kt1eaOf384iLPlytEQGJAF8vQPM7cou3ayOg8RTJYnXU6tpOuIpgtjaWXwS 4cx+F/WD3kGio++qCtQv/GQt6oQMfUSAeE+7Yfx3JeBCqqjn+ladyFvWMif3AjocenSC 1j3u5IofOYep83/xFwSVWdXUYQxujNgEBTJoo89nyreagkAVaeOucOfnyQcTXjFTHkzE qyDH1o4SnxZVRLdsw4fbGtH1mJsNkeZpUXmZWUOipNRqMlzMWOmG8zaZQs0+n/atteP7 2AvEDWi8UIj0/XRlb3M4PUHhwySlX55gOb+4QOrpdecTiKF4g0u3pwTXCN8OmFJUE0z8 k1iA== 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=38VUnYt7+gVJMJsUhrR03tXKwMO/geMAXkQnSRPTEA4=; b=RgHf5c/FxM+mwecBEiMgwbNLwCxYYkEkur945Dxh97wIBWd4lCNiOzkItZRta7N8jv SpvUTCpFS6axGHZgg1e5ZQS8K9NHKgwjIZ6G/TQ8FKTOdlqRKic/vndHfc6nKiVoSFc/ 7TWBdfeuXSqSUzj0FVfuknFes6P/MQtrA4WtX9d5mvUPDXpfrSdwKs7egqupl3pD4/Sn RR3C4bjwV+eNnt/E0OYQnNcaYSI/8TQhBqhX1fDl2O3Mbr4YjUFzOlBM8LA9odWou9Pm m3ohVUIt0V4hsTFzfhpZsiPuBEyfq3QPHDCL9B2jFkq0dXfzBGsTZVT3KvU+QdJorpOH h6vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JI2ZwnEW; 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 a88si822590ede.230.2020.12.01.14.32.49; Tue, 01 Dec 2020 14:33:11 -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=JI2ZwnEW; 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 S2387905AbgLAJad (ORCPT + 99 others); Tue, 1 Dec 2020 04:30:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:58908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387628AbgLAI4F (ORCPT ); Tue, 1 Dec 2020 03:56:05 -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 2D5E622244; Tue, 1 Dec 2020 08:55:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606812924; bh=0BAXc6+8BxdZNM+xx2GhX6bpbrqgEjuktzmz7/kIkno=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JI2ZwnEW0zPw3QDMTeTNItuzNCGaUfokUNUA1oSF8pQjYF7S3Rzm7X20nzlPJRG3x LWNTHWSNzguM3g2Ze1Tv2hSgGzrykC/PHSmaIYmHYk6UdL5KUIjQBIyroucPJK64LW ghjUplHO9VfTZHhPlvVASAQOT3wfKbis5wNjrKGc= 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.9 22/42] batman-adv: set .owner to THIS_MODULE Date: Tue, 1 Dec 2020 09:53:20 +0100 Message-Id: <20201201084643.775611464@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084642.194933793@linuxfoundation.org> References: <20201201084642.194933793@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 56dc532f7a2c2..b422a8b34b9f5 100644 --- a/net/batman-adv/log.c +++ b/net/batman-adv/log.c @@ -196,6 +196,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