[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190408.163459.2250841426705244439.davem@davemloft.net>
Date: Mon, 08 Apr 2019 16:34:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: ralf@...ux-mips.org, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH] net: netrom: Fix error cleanup path of nr_proto_init
From: Yue Haibing <yuehaibing@...wei.com>
Date: Mon, 8 Apr 2019 23:12:00 +0800
> From: YueHaibing <yuehaibing@...wei.com>
>
> Syzkaller report this:
This doesn't compile:
WARNING: net/netrom/netrom.o(.init.text+0x404): Section mismatch in reference from the function init_module() to the function .exit.text:nr_loopback_clear()
The function __init init_module() references
a function __exit nr_loopback_clear().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
nr_loopback_clear() so it may be used outside an exit section.
WARNING: net/netrom/netrom.o(.init.text+0x409): Section mismatch in reference from the function init_module() to the function .exit.text:nr_rt_free()
The function __init init_module() references
a function __exit nr_rt_free().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __exit annotation of
nr_rt_free() so it may be used outside an exit section.
Powered by blists - more mailing lists