1、bonding: 3ad: Fix the conflict between bond_update_slave_arr and the state machine
commit_id=83d686a6822322c4981b745dc1d7185f1f40811b
链接:https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=83d686a6822322c4981b745dc1d7185f1f40811b
Test commands:
ifconfig bond1 down
ifconfig bond1 up
频繁执行如上命令时,多cpu并发执行时,有可能出现执行先后顺序不一致,导致访问到了空指针的情况,此补丁增加了lock保护其先后执行顺序,已合入linux主线;
2、bonding: avoid adding slave device with IFF_MASTER flag
bonding: allow nesting of bonding device
这2个补丁是一起的,解决将VRF等master类型的设备加入bonding后出现的oops问题
Reference:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3c9ef511b9fa128a4c62e3aa0aac4c6b190f0d55
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4d293fe1c69c157c15ac06918a805e5fef036682
Test commands:
ip link add vrf1 type vrf table 1
modprobe bonding.ko max_bonds=1
echo "+vrf1" >/sys/class/net/bond0/bonding/slaves
rmmod bonding
必现
Hi gebidelidaye_admin, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Kernel, and any of the maintainers: @YangYingliang , @pi3orama , @成坚 (CHENG Jian) , @Xie XiuQi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论