[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210810125158.329849-1-wiktorg@google.com>
Date: Tue, 10 Aug 2021 14:51:58 +0200
From: Wiktor Garbacz <wiktorg@...gle.com>
To: Kees Cook <keescook@...omium.org>,
Andy Lutomirski <luto@...capital.net>,
Will Drewry <wad@...omium.org>
Cc: linux-kernel@...r.kernel.org, Wiktor Garbacz <wiktorg@...gle.com>
Subject: [PATCH] seccomp: Fix setting number of loaded filters
The value is only reported through procfs so this
is purely cosmetic.
Signed-off-by: Wiktor Garbacz <wiktorg@...gle.com>
---
kernel/seccomp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/seccomp.c b/kernel/seccomp.c
index 057e17f3215d..6469eca8078c 100644
--- a/kernel/seccomp.c
+++ b/kernel/seccomp.c
@@ -602,7 +602,7 @@ static inline void seccomp_sync_threads(unsigned long flags)
smp_store_release(&thread->seccomp.filter,
caller->seccomp.filter);
atomic_set(&thread->seccomp.filter_count,
- atomic_read(&thread->seccomp.filter_count));
+ atomic_read(&caller->seccomp.filter_count));
/*
* Don't let an unprivileged task work around
--
2.32.0.605.g8dce9f2422-goog
Powered by blists - more mailing lists