[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <903ba91b-f052-4b1c-827d-6292965026c5@moroto.mountain>
Date: Sat, 3 Jan 2026 13:02:48 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: Vincent Mailhol <mailhol@...nel.org>,
Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
Nicolas Schier <nicolas@...sle.eu>,
Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nsc@...nel.org>,
Nick Desaulniers <nick.desaulniers+lkml@...il.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt <justinstitt@...gle.com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
Chris Mason <clm@...com>, David Sterba <dsterba@...e.com>,
Kees Cook <kees@...nel.org>,
"Gustavo A. R. Silva" <gustavoars@...nel.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-kbuild@...r.kernel.org, linux-sparse@...r.kernel.org,
linux-kernel@...r.kernel.org, llvm@...ts.linux.dev,
dri-devel@...ts.freedesktop.org, linux-btrfs@...r.kernel.org,
linux-hardening@...r.kernel.org, kernel test robot <lkp@...el.com>
Subject: Re: [PATCH] overflow: Update is_non_negative() and is_negative()
comment
Thanks Randy, for sending this to me. I'm on the sparse list, but
I've been on vacation and haven't caught up with my email. I can
easily silence this in Smatch.
regards,
dan carpenter
diff --git a/check_unsigned_lt_zero.c b/check_unsigned_lt_zero.c
index bfeb3261f91d..ac3e650704ce 100644
--- a/check_unsigned_lt_zero.c
+++ b/check_unsigned_lt_zero.c
@@ -105,7 +105,8 @@ static bool is_allowed_zero(struct expression *expr)
strcmp(macro, "STRTO_H") == 0 ||
strcmp(macro, "SUB_EXTEND_USTAT") == 0 ||
strcmp(macro, "TEST_CASTABLE_TO_TYPE_VAR") == 0 ||
- strcmp(macro, "TEST_ONE_SHIFT") == 0)
+ strcmp(macro, "TEST_ONE_SHIFT") == 0 ||
+ strcmp(macro, "check_shl_overflow") == 0)
return true;
return false;
}
Powered by blists - more mailing lists