git: 5dbbd764c8e1 - main - linux: Fix missing break in lsiginfo_to_siginfo()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Jun 2026 11:10:35 UTC
The branch main has been updated by kaktus:
URL: https://cgit.FreeBSD.org/src/commit/?id=5dbbd764c8e116b04c75b79b1eedc0edcbb90435
commit 5dbbd764c8e116b04c75b79b1eedc0edcbb90435
Author: Pawel Biernacki <kaktus@FreeBSD.org>
AuthorDate: 2026-06-02 11:08:29 +0000
Commit: Pawel Biernacki <kaktus@FreeBSD.org>
CommitDate: 2026-06-02 11:08:29 +0000
linux: Fix missing break in lsiginfo_to_siginfo()
Prevent LINUX_SI_TKILL from inadvertently falling through to
LINUX_SI_QUEUE, which incorrectly overwrote si_code with SI_QUEUE
instead of SI_LWP.
---
sys/compat/linux/linux_signal.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c
index 2318cfcccc1e..c247a5eb67cf 100644
--- a/sys/compat/linux/linux_signal.c
+++ b/sys/compat/linux/linux_signal.c
@@ -789,6 +789,7 @@ lsiginfo_to_siginfo(struct thread *td, const l_siginfo_t *lsi,
return (EPERM);
}
si->si_code = SI_LWP;
+ break;
case LINUX_SI_QUEUE:
si->si_code = SI_QUEUE;
break;