git: 26b3ff1f5c4b - main - Ignore LINUX_POLLREMOVE
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Sep 2026 18:38:17 UTC
The branch main has been updated by sobomax:
URL: https://cgit.FreeBSD.org/src/commit/?id=26b3ff1f5c4bb1c4c311638e92b229cbc94a44ec
commit 26b3ff1f5c4bb1c4c311638e92b229cbc94a44ec
Author: Maxim Sobolev <sobomax@FreeBSD.org>
AuthorDate: 2026-09-22 18:37:52 +0000
Commit: Maxim Sobolev <sobomax@FreeBSD.org>
CommitDate: 2026-09-22 18:37:52 +0000
Ignore LINUX_POLLREMOVE
This matches upstream behaviour since Linux's demangle_poll()
silently discards POLLREMOVE from the requested events.
Reviewed by: emaste
Sponsored by: Sippy Software, Inc.
Differential Revision: https://reviews.freebsd.org/D59914
MFC after: 1 week
PR: 297467
---
sys/compat/linux/linux.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sys/compat/linux/linux.c b/sys/compat/linux/linux.c
index da2f641bb791..464acb245a5d 100644
--- a/sys/compat/linux/linux.c
+++ b/sys/compat/linux/linux.c
@@ -581,8 +581,10 @@ linux_to_bsd_poll_events(struct thread *td, int fd, short lev,
if (lev & LINUX_POLLMSG)
LINUX_RATELIMIT_MSG_OPT1("unsupported POLLMSG, events(%d)", lev);
- if (lev & LINUX_POLLREMOVE)
- LINUX_RATELIMIT_MSG_OPT1("unsupported POLLREMOVE, events(%d)", lev);
+ /*
+ * Ignore LINUX_POLLREMOVE, as Linux's demangle_poll() silently
+ * discards POLLREMOVE from the requested events.
+ */
*bev = bits;
}