This is a note to let you know that I've just added the patch titled seccomp: Add missing return in non-void function to the 5.10-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: seccomp-add-missing-return-in-non-void-function.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 04b38d012556199ba4c31195940160e0c44c64f0 Mon Sep 17 00:00:00 2001 From: Paul Cercueil <paul@xxxxxxxxxxxxxxx> Date: Mon, 11 Jan 2021 17:28:39 +0000 Subject: seccomp: Add missing return in non-void function From: Paul Cercueil <paul@xxxxxxxxxxxxxxx> commit 04b38d012556199ba4c31195940160e0c44c64f0 upstream. We don't actually care about the value, since the kernel will panic before that; but a value should nonetheless be returned, otherwise the compiler will complain. Fixes: 8112c4f140fa ("seccomp: remove 2-phase API") Cc: stable@xxxxxxxxxxxxxxx # 4.7+ Signed-off-by: Paul Cercueil <paul@xxxxxxxxxxxxxxx> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx> Link: https://lore.kernel.org/r/20210111172839.640914-1-paul@xxxxxxxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- kernel/seccomp.c | 2 ++ 1 file changed, 2 insertions(+) --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -1050,6 +1050,8 @@ static int __seccomp_filter(int this_sys const bool recheck_after_trace) { BUG(); + + return -1; } #endif Patches currently in stable-queue which might be from paul@xxxxxxxxxxxxxxx are queue-5.10/usb-musb-fix-runtime-pm-race-in-musb_queue_resume_work.patch queue-5.10/mips-ingenic-disable-hptlb-for-d0-xburst-cpus-too.patch queue-5.10/seccomp-add-missing-return-in-non-void-function.patch