+ kernelh-skip-single-eval-logic-on-literals-in-min-max-v3.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: kernelh-skip-single-eval-logic-on-literals-in-min-max-v3
has been added to the -mm tree.  Its filename is
     kernelh-skip-single-eval-logic-on-literals-in-min-max-v3.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/kernelh-skip-single-eval-logic-on-literals-in-min-max-v3.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/kernelh-skip-single-eval-logic-on-literals-in-min-max-v3.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Kees Cook <keescook@xxxxxxxxxxxx>
Subject: kernelh-skip-single-eval-logic-on-literals-in-min-max-v3

drop __builtin_types_compatible_p() (Rasmus, Linus)

Link: http://lkml.kernel.org/r/20180309200536.GA5670@beast
Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Cc: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/kernel.h |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff -puN include/linux/kernel.h~kernelh-skip-single-eval-logic-on-literals-in-min-max-v3 include/linux/kernel.h
--- a/include/linux/kernel.h~kernelh-skip-single-eval-logic-on-literals-in-min-max-v3
+++ a/include/linux/kernel.h
@@ -805,8 +805,7 @@ static inline void ftrace_dump(enum ftra
  */
 #define __min(t1, t2, x, y)						\
 	__builtin_choose_expr(__builtin_constant_p(x) &&		\
-			      __builtin_constant_p(y) &&		\
-			      __builtin_types_compatible_p(t1, t2),	\
+			      __builtin_constant_p(y),			\
 			      (t1)(x) < (t2)(y) ? (t1)(x) : (t2)(y),	\
 			      __single_eval_min(t1, t2,			\
 						__UNIQUE_ID(min1_),	\
@@ -828,8 +827,7 @@ static inline void ftrace_dump(enum ftra
 
 #define __max(t1, t2, x, y)						\
 	__builtin_choose_expr(__builtin_constant_p(x) &&		\
-			      __builtin_constant_p(y) &&		\
-			      __builtin_types_compatible_p(t1, t2),	\
+			      __builtin_constant_p(y),			\
 			      (t1)(x) > (t2)(y) ? (t1)(x) : (t2)(y),	\
 			      __single_eval_max(t1, t2,			\
 						__UNIQUE_ID(max1_),	\
_

Patches currently in -mm which might be from keescook@xxxxxxxxxxxx are

bug-use-%pb-in-bug-and-stack-protector-failure.patch
bug-exclude-non-bug-warn-exceptions-from-report_bug.patch
taint-convert-to-indexed-initialization.patch
taint-consolidate-documentation.patch
taint-add-taint-for-randstruct.patch
kernelh-skip-single-eval-logic-on-literals-in-min-max.patch
kernelh-skip-single-eval-logic-on-literals-in-min-max-v2.patch
kernelh-skip-single-eval-logic-on-literals-in-min-max-v3.patch
test_bitmap-do-not-accidentally-use-stack-vla.patch
fork-unconditionally-clear-stack-on-fork.patch
exec-pass-stack-rlimit-into-mm-layout-functions.patch
exec-introduce-finalize_exec-before-start_thread.patch
exec-pin-stack-limit-during-exec.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux