From 9a8de722b047ba66f70e87fb29b877935c187457 Mon Sep 17 00:00:00 2001 From: Lichang Zhao Date: Thu, 10 Feb 2022 16:54:06 +0800 Subject: [PATCH 1/2] hw/net/rocker: fix security vulnerability fix security vulnerability Signed-off-by: Lichang zhao Signed-off-by: Jinhao Gao --- hw/net/rocker/rocker_of_dpa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/net/rocker/rocker_of_dpa.c b/hw/net/rocker/rocker_of_dpa.c index b3b8c5bb6d..8ac26e6beb 100644 --- a/hw/net/rocker/rocker_of_dpa.c +++ b/hw/net/rocker/rocker_of_dpa.c @@ -2070,6 +2070,7 @@ static int of_dpa_cmd_add_l2_flood(OfDpa *of_dpa, OfDpaGroup *group, err_out: group->l2_flood.group_count = 0; g_free(group->l2_flood.group_ids); + group->l2_flood.group_ids = NULL; g_free(tlvs); return err; -- Gitee From 4f09a1c2aa855aab666d729defce4c7f0466cb77 Mon Sep 17 00:00:00 2001 From: Ying Fang Date: Thu, 10 Feb 2022 17:16:55 +0800 Subject: [PATCH 2/2] tests: Disable filemonitor testcase Since filemonitor testcase requires that host kernel being a LTS version, we cannot guarantee that on OBS system. Lets disable it by default. Signed-off-by: Ying Fang Signed-off-by: Jinhao Gao --- tests/unit/meson.build | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/unit/meson.build b/tests/unit/meson.build index acac3622ed..c21d817874 100644 --- a/tests/unit/meson.build +++ b/tests/unit/meson.build @@ -129,9 +129,6 @@ if have_system 'test-vmstate': [migration, io], 'test-yank': ['socket-helpers.c', qom, io, chardev] } - if 'CONFIG_INOTIFY1' in config_host - tests += {'test-util-filemonitor': []} - endif # Some tests: test-char, test-qdev-global-props, and test-qga, # are not runnable under TSan due to a known issue. -- Gitee