[ovs-git] [openvswitch/ovs] 7f53ec: tests: Add overflow test for the sha1 library.
NIC我是一张网卡
noreply at github.com
Fri Nov 27 18:35:54 UTC 2020
Branch: refs/heads/branch-2.10
Home: https://github.com/openvswitch/ovs
Commit: 7f53ec2230098bf9cc35db9b390aa2322f724b89
https://github.com/openvswitch/ovs/commit/7f53ec2230098bf9cc35db9b390aa2322f724b89
Author: Ilya Maximets <i.maximets at ovn.org>
Date: 2020-11-27 (Fri, 27 Nov 2020)
Changed paths:
M tests/library.at
M tests/test-sha1.c
Log Message:
-----------
tests: Add overflow test for the sha1 library.
This is a unit test for the overflow detection issue fixed by commit
a1d2c5f5d9ed ("sha1: Fix algorithm for data bigger than 512 megabytes.")
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
Acked-by: Paolo Valerio <pvalerio at redhat.com>
Tested-by: Paolo Valerio <pvalerio at redhat.com>
Commit: ba3c502e369c12c5fbafc7d247f34eb9437f367c
https://github.com/openvswitch/ovs/commit/ba3c502e369c12c5fbafc7d247f34eb9437f367c
Author: Joel Fernandes (Google) <joel at joelfernandes.org>
Date: 2020-11-27 (Fri, 27 Nov 2020)
Changed paths:
M datapath/linux/compat/include/linux/rculist.h
Log Message:
-----------
compat: rcu: Add support for consolidated-RCU reader checking
Upstream commit:
commit 28875945ba98d1b47a8a706812b6494d165bb0a0
Author: Joel Fernandes (Google) <joel at joelfernandes.org>
Date: Tue Jul 16 18:12:22 2019 -0400
rcu: Add support for consolidated-RCU reader checking
This commit adds RCU-reader checks to list_for_each_entry_rcu() and
hlist_for_each_entry_rcu(). These checks are optional, and are indicated
by a lockdep expression passed to a new optional argument to these two
macros. If this optional lockdep expression is omitted, these two macros
act as before, checking for an RCU read-side critical section.
Signed-off-by: Joel Fernandes (Google) <joel at joelfernandes.org>
[ paulmck: Update to eliminate return within macro and update comment. ]
Signed-off-by: Paul E. McKenney <paulmck at linux.ibm.com>
Backport portion of upstream commit for hlist_for_each_entry_rcu() macro
so that it can be used in following bug fix.
Cc: Joel Fernandes (Google) <joel at joelfernandes.org>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
Commit: db7ac8d9e805d9f84bb90ab373c215f6284616ce
https://github.com/openvswitch/ovs/commit/db7ac8d9e805d9f84bb90ab373c215f6284616ce
Author: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Date: 2020-11-27 (Fri, 27 Nov 2020)
Changed paths:
M datapath/conntrack.c
M datapath/datapath.c
Log Message:
-----------
datapath: ovs_ct_exit to be done under ovs_lock
Upstream commit:
commit 27de77cec985233bdf6546437b9761853265c505
Author: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Date: Fri Apr 17 02:57:31 2020 +0800
net: openvswitch: ovs_ct_exit to be done under ovs_lock
syzbot wrote:
| =============================
| WARNING: suspicious RCU usage
| 5.7.0-rc1+ #45 Not tainted
| -----------------------------
| net/openvswitch/conntrack.c:1898 RCU-list traversed in non-reader section!!
|
| other info that might help us debug this:
| rcu_scheduler_active = 2, debug_locks = 1
| ...
|
| stack backtrace:
| Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org 04/01/2014
| Workqueue: netns cleanup_net
| Call Trace:
| ...
| ovs_ct_exit
| ovs_exit_net
| ops_exit_list.isra.7
| cleanup_net
| process_one_work
| worker_thread
To avoid that warning, invoke the ovs_ct_exit under ovs_lock and add
lockdep_ovsl_is_held as optional lockdep expression.
Link: https://lore.kernel.org/lkml/000000000000e642a905a0cbee6e@google.com
Fixes: 11efd5cb04a1 ("openvswitch: Support conntrack zone limit")
Cc: Pravin B Shelar <pshelar at ovn.org>
Cc: Yi-Hung Wei <yihung.wei at gmail.com>
Reported-by: syzbot+7ef50afd3a211f879112 at syzkaller.appspotmail.com
Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Acked-by: Pravin B Shelar <pshelar at ovn.org>
Signed-off-by: David S. Miller <davem at davemloft.net>
Cc: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Fixes: cb2a5486a3a3 ("datapath: conntrack: Support conntrack zone limit")
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
Signed-off-by: Ilya Maximets <i.maximets at ovn.org>
Compare: https://github.com/openvswitch/ovs/compare/3f8312b670ee...db7ac8d9e805
More information about the git
mailing list