[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20081218.193527.239071578.davem@davemloft.net>
Date: Thu, 18 Dec 2008 19:35:27 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: yjwei@...fujitsu.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: Fix module refcount leak in kernel_accept()
From: Wei Yongjun <yjwei@...fujitsu.com>
Date: Thu, 18 Dec 2008 18:20:46 +0800
> The kernel_accept() does not hold the module refcount of newsock->ops->owner,
> so we need __module_get(newsock->ops->owner) code after call kernel_accept()
> by hand.
> In sunrpc, the module refcount is missing to hold. So this cause kernel panic.
>
> Used following script to reproduct:
...
> Signed-off-by: Wei Yongjun <yjwei@...fujitsu.com>
Good fine, patch applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists