lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210513050344.28303-1-rdunlap@infradead.org>
Date:   Wed, 12 May 2021 22:03:44 -0700
From:   Randy Dunlap <rdunlap@...radead.org>
To:     linux-kernel@...r.kernel.org
Cc:     Randy Dunlap <rdunlap@...radead.org>,
        Kees Cook <keescook@...omium.org>,
        Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] thread_info.h: include limits.h for INT_MAX

Add header file <linux/limits.h> to make thread_info.h be
self-contained.
Fixes multiple occurrences of this error:

../include/linux/thread_info.h: In function ‘check_copy_size’:
../include/linux/thread_info.h:215:27: error: ‘INT_MAX’ undeclared (first use in this function)
  if (WARN_ON_ONCE(bytes > INT_MAX))
                           ^

Fixes: 6d13de1489b6 ("uaccess: disallow > INT_MAX copy sizes")
Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
Cc: Kees Cook <keescook@...omium.org>
Cc: Andrew Morton <akpm@...ux-foundation.org>
---
 include/linux/thread_info.h |    1 +
 1 file changed, 1 insertion(+)

--- mmotm-2021-0512-2146.orig/include/linux/thread_info.h
+++ mmotm-2021-0512-2146/include/linux/thread_info.h
@@ -10,6 +10,7 @@
 
 #include <linux/types.h>
 #include <linux/bug.h>
+#include <linux/limits.h>
 #include <linux/restart_block.h>
 #include <linux/errno.h>
 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ