Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp408082pxu; Tue, 1 Dec 2020 14:30:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYK9eDwR8ly9UyW0G0AcUq31mS6VqsSSBKIGrf28ka95z9m1OYrzZ4X/bHA+i6nsVe/VPf X-Received: by 2002:a50:d8c8:: with SMTP id y8mr5255733edj.82.1606861858906; Tue, 01 Dec 2020 14:30:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861858; cv=none; d=google.com; s=arc-20160816; b=bRKeD7reNlR4vyas5QlrXjhZspSPdkHrXvIlWTFWiQVOOLUv8Yg0Xc+cpvC0nNu2fC ObIkoZXriqzx7kdw+XVFNo8PxXvBiV8/Crj1wKDCEP5u5mIrgkhAWn4ENqEckeSxF+CS u6fgAYVT8Arzrn6gE8wJn/2+6xH1aZ3Yu08uHXpmA07bIhcxLs4dQ1j38DCh8ux8otFr z44dF/WxohtE8dv8iFHoQGb9cq9gV+SZdC5+iu2SChyfqAh7j4EGjfEKLby/UF99r7xN tx3PD5B0l4sudEo6O/xsLJ9t70Pj1XZPZXsEDls7T8XqfhkED36ewbiOvalOgSlB+jD/ Lw9Q== 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=SE3lUpx++3unrW4JRG+O8w3ZKBdsKkitMONLJKDhBVU=; b=BBOYa88rpiUJZKhVRLJqVEH2t4NsttxO0/JBsppA3np1b7A0cjhl4oJwHRZbYFDM4D aqmkoNtTVceun/D156tyauy833QwYaRGeiJO+oqGd9/HTJtIti2ANvb7YvDth6sr93EL LDk+TIThbrgxP4tcYSFzUfV75V6pXLjAUrdJ8sBP7prcvXaIwtmrA0uZWfrBLtO94EVo NbY1XaHhME44XiKaY8ccTmMrRUPw+tl+bWpSOhkVV4rlCgGW9hnsnXlbhzErhHWg+8nw G++HWz/kRMJFzFEozsgWsmvNW/4mpH2jBWuPqkfttCg5dfAu4Cy6ni8uf18B3+HrxB5y m+5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gzBfcS6K; 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 b1si791579edy.429.2020.12.01.14.30.36; Tue, 01 Dec 2020 14:30:58 -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=gzBfcS6K; 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 S2390980AbgLAJ0V (ORCPT + 99 others); Tue, 1 Dec 2020 04:26:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:42080 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389053AbgLAJFG (ORCPT ); Tue, 1 Dec 2020 04:05:06 -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 3746A206D8; Tue, 1 Dec 2020 09:04:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813459; bh=7Xra9K5SHslu5I8jul/MNYH7tcKJGMwiT1/5sblMmqE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gzBfcS6K6W7sxSzcflX/j8GaJ1Twe+c2tVDbsgei6XvUPdKgdaZhmETtGyrxWy4ff JFje+9IB0e88hkxsn53r3dpt/JUlA3ku4f22OTY+9GEJBe566KcHtlAxKHmFejSetc vBcwe6skh+fKfVaZXi8FHLX5+vkkF1ErQ2QBP9Io= 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 5.4 46/98] batman-adv: set .owner to THIS_MODULE Date: Tue, 1 Dec 2020 09:53:23 +0100 Message-Id: <20201201084657.358688491@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084652.827177826@linuxfoundation.org> References: <20201201084652.827177826@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 11941cf1adcc9..87f3de3d4e4ca 100644 --- a/net/batman-adv/log.c +++ b/net/batman-adv/log.c @@ -180,6 +180,7 @@ static const struct file_operations batadv_log_fops = { .read = batadv_log_read, .poll = batadv_log_poll, .llseek = no_llseek, + .owner = THIS_MODULE, }; /** -- 2.27.0