https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286010

            Bug ID: 286010
           Summary: [FBSD 15.0 current]fatal error: 'ssp/ssp.h' file not
                    found
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: b...@freebsd.org
          Reporter: hareshx.sankar....@intel.com

When building kernel module that includes sys/types.h, below error is seen.

/usr/src/sys/sys/select.h:66:10: fatal error: 'ssp/ssp.h' file not found
   66 | #include <ssp/ssp.h>
      |          ^~~~~~~~~~~

"sys/types.h" includes "sys/select.h" which internally includes "ssp/ssp.h"

This ssp/ssp.h is located in /usr/include directory which also has all the
other userspace header files.

Since "select.h" can be used by both kernel and user space modules, do we need
to wrap "#include <ssp/ssp.h>" under ifndef KERNEL?

Commit that introduces the issue:
https://github.com/freebsd/freebsd-src/commit/2aba0eea3ffffce74f9d8df20e0aaf49ea6d76c3
 

commit 2aba0eea3ffffce74f9d8df20e0aaf49ea6d76c3
Author: Kyle Evans <kev...@freebsd.org>
Date:   Sat Jul 13 00:16:12 2024 -0500

    include: ssp: fortify <sys/select.h>

    Notably sanity check indices passed to the FD_*() macros against the
    size of the fd_set itself.

    Reviewed by:    markj
    Sponsored by:   Klara, Inc.
    Sponsored by:   Stormshield
    Differential Revision:  https://reviews.freebsd.org/D45685

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to