From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43F9311C88 for ; Mon, 12 Jun 2023 10:39:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 961ECC433EF; Mon, 12 Jun 2023 10:39:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1686566393; bh=3fihQvfIL2NrW3LAFSMEx7iWe+QApY58uqspL47Txgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RiGjXeG/ZW2ZCKRxgcjDJCfjQaFrCHbQWLjy30/Fc5JkhJ9I522zU0Z/6gKvh8QeA nNRBCkUZdrZ/baMUbJtQ/4eRpZBDwO+pzpX5wGBcUaZV2pzwj9OnLnUNdTOCxP0xJ3 sU2LK3Ch1vucJr1o3/OuKgzpwI6wr24wpkYSc0EI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Eric Dumazet , David Ahern , Matthieu Baerts , Jakub Kicinski , Sasha Levin Subject: [PATCH 6.1 015/132] net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down Date: Mon, 12 Jun 2023 12:25:49 +0200 Message-ID: <20230612101710.973359139@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230612101710.279705932@linuxfoundation.org> References: <20230612101710.279705932@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Eric Dumazet [ Upstream commit edf2e1d2019b2730d6076dbe4c040d37d7c10bbe ] skip_notify_on_dev_down ctl table expects this field to be an int (4 bytes), not a bool (1 byte). Because proc_dou8vec_minmax() was added in 5.13, this patch converts skip_notify_on_dev_down to an int. Following patch then converts the field to u8 and use proc_dou8vec_minmax(). Fixes: 7c6bb7d2faaf ("net/ipv6: Add knob to skip DELROUTE message on device down") Signed-off-by: Eric Dumazet Reviewed-by: David Ahern Acked-by: Matthieu Baerts Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- include/net/netns/ipv6.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h index b4af4837d80b4..f6e6a3ab91489 100644 --- a/include/net/netns/ipv6.h +++ b/include/net/netns/ipv6.h @@ -53,7 +53,7 @@ struct netns_sysctl_ipv6 { int seg6_flowlabel; u32 ioam6_id; u64 ioam6_id_wide; - bool skip_notify_on_dev_down; + int skip_notify_on_dev_down; u8 fib_notify_on_flag_change; }; -- 2.39.2