]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uaccess: Introduce ucopysize.h
authorKees Cook <kees@kernel.org>
Fri, 28 Feb 2025 18:19:34 +0000 (10:19 -0800)
committerKees Cook <kees@kernel.org>
Fri, 28 Feb 2025 19:51:26 +0000 (11:51 -0800)
commit808aac63e2bdf9bae08485e072bf3d317a18acbf
tree1bcb7f88aa98d111c24cfbf3381ff7545d1bf458
parenta64dcfb451e254085a7daee5fe51bf22959d52d3
uaccess: Introduce ucopysize.h

The object size sanity checking macros that uaccess.h and uio.h use
have been living in thread_info.h for historical reasons. Needing to
use jump labels for these checks, however, introduces a header include
loop under certain conditions. The dependencies for the object checking
macros are very limited, but they are used by separate header files,
so introduce a new header that can be used directly by uaccess.h and
uio.h. As a result, this also means thread_info.h (which is rather large)
and be removed from those headers.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202502281153.TG2XK5SI-lkp@intel.com/
Signed-off-by: Kees Cook <kees@kernel.org>
MAINTAINERS
include/linux/thread_info.h
include/linux/uaccess.h
include/linux/ucopysize.h [new file with mode: 0644]
include/linux/uio.h
mm/usercopy.c