Patch "net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-ipv6-fix-bool-int-mismatch-for-skip_notify_on_de.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 359d9c28c3ce8355cacf93fec20c3decacfe22f7
Author: Eric Dumazet <edumazet@xxxxxxxxxx>
Date:   Thu Jun 1 16:04:44 2023 +0000

    net/ipv6: fix bool/int mismatch for skip_notify_on_dev_down
    
    [ 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 <edumazet@xxxxxxxxxx>
    Reviewed-by: David Ahern <dsahern@xxxxxxxxxx>
    Acked-by: Matthieu Baerts <matthieu.baerts@xxxxxxxxxxxx>
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/net/netns/ipv6.h b/include/net/netns/ipv6.h
index ff82983b7ab41..181b44f6fb686 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;
 };
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux