Bug 289504 - sysctl_kern_proc_kqueue() uses the non-existent FREEBSD_COMPAT32, should be COMPAT_FREEBSD32
Summary: sysctl_kern_proc_kqueue() uses the non-existent FREEBSD_COMPAT32, should be C...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: Konstantin Belousov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-13 04:33 UTC by Damjan Jovanovic
Modified: 2025-09-16 13:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damjan Jovanovic 2025-09-13 04:33:04 UTC
In sys/kern/kern_event.c function sysctl_kern_proc_kqueue() checks for the FREEBSD_COMPAT32 define, which doesn't exist. It should be COMPAT_FREEBSD32 instead:

#ifdef FREEBSD_COMPAT32
        compat32 = SV_CURPROC_FLAG(SV_ILP32);
#else
        compat32 = false;
#endif
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2025-09-13 15:23:08 UTC
^Triage: over to committer of ab9b296498fe .
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-09-13 17:44:37 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=cab4cf201acf76b415a8f1a59ea4eeeb14b4636c

commit cab4cf201acf76b415a8f1a59ea4eeeb14b4636c
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-09-13 17:42:11 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-09-13 17:42:11 +0000

    kern/kern_event.c: properly spell COMPAT_FREEBSD32

    PR:     289504
    Reported by:    Damjan Jovanovic <damjan.jov@gmail.com>
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week

 sys/kern/kern_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-09-16 02:50:29 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=c2427a67c7af60bd4d07acce0ab4f0c4be2258c2

commit c2427a67c7af60bd4d07acce0ab4f0c4be2258c2
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-09-13 17:42:11 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-09-16 02:45:13 +0000

    kern/kern_event.c: properly spell COMPAT_FREEBSD32

    PR:     289504

    (cherry picked from commit cab4cf201acf76b415a8f1a59ea4eeeb14b4636c)

 sys/kern/kern_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 4 commit-hook freebsd_committer freebsd_triage 2025-09-16 02:51:33 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=8c40728a46d4c2a3a93314deca47252f5c2ebe12

commit 8c40728a46d4c2a3a93314deca47252f5c2ebe12
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-09-13 17:42:11 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-09-16 02:44:39 +0000

    kern/kern_event.c: properly spell COMPAT_FREEBSD32

    PR:     289504

    (cherry picked from commit cab4cf201acf76b415a8f1a59ea4eeeb14b4636c)

 sys/kern/kern_event.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)