From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] tcp: md5: Handle RCU dereference of md5sig_info Date: Tue, 26 Dec 2017 17:24:07 -0500 (EST) Message-ID: <20171226.172407.178317486298463341.davem@davemloft.net> References: <20171221182910.4785-1-mathew.j.martineau@linux.intel.com> <20171221182910.4785-2-mathew.j.martineau@linux.intel.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: mathew.j.martineau@linux.intel.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:58086 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbdLZWYI (ORCPT ); Tue, 26 Dec 2017 17:24:08 -0500 In-Reply-To: <20171221182910.4785-2-mathew.j.martineau@linux.intel.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Mat Martineau Date: Thu, 21 Dec 2017 10:29:10 -0800 > Dereference tp->md5sig_info in tcp_v4_destroy_sock() the same way it is > done in the adjacent call to tcp_clear_md5_list(). > > Resolves this sparse warning: > > net/ipv4/tcp_ipv4.c:1914:17: warning: incorrect type in argument 1 (different address spaces) > net/ipv4/tcp_ipv4.c:1914:17: expected struct callback_head *head > net/ipv4/tcp_ipv4.c:1914:17: got struct callback_head [noderef] * > > Signed-off-by: Mat Martineau Applied.