public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH stable 5.4 0/3] Missing overflow changes
@ 2025-03-06  1:07 Florian Fainelli
  2025-03-06  1:07 ` [PATCH stable 5.4 1/3] overflow: Add __must_check attribute to check_*() helpers Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Florian Fainelli @ 2025-03-06  1:07 UTC (permalink / raw)
  To: linux-kernel
  Cc: stable, Florian Fainelli, Kees Cook, Greg Kroah-Hartman,
	Keith Busch, Gustavo A. R. Silva

This patch series backports the minimum set of changes in order to fix
this warning that popped up with >= 5.4.284 stable kernels:

In file included from ./include/linux/mm.h:29,
                 from ./include/linux/pagemap.h:8,
                 from ./include/linux/buffer_head.h:14,
                 from fs/udf/udfdecl.h:12,
                 from fs/udf/super.c:41:
fs/udf/super.c: In function 'udf_fill_partdesc_info':
./include/linux/overflow.h:70:15: warning: comparison of distinct pointer types lacks a cast
  (void) (&__a == &__b);   \
               ^~
fs/udf/super.c:1162:7: note: in expansion of macro 'check_add_overflow'
   if (check_add_overflow(map->s_partition_len,
       ^~~~~~~~~~~~~~~~~~

Kees Cook (2):
  overflow: Add __must_check attribute to check_*() helpers
  overflow: Allow mixed type arguments

Keith Busch (1):
  overflow: Correct check_shl_overflow() comment

 include/linux/overflow.h | 101 +++++++++++++++++++++++----------------
 1 file changed, 60 insertions(+), 41 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-06 19:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-06  1:07 [PATCH stable 5.4 0/3] Missing overflow changes Florian Fainelli
2025-03-06  1:07 ` [PATCH stable 5.4 1/3] overflow: Add __must_check attribute to check_*() helpers Florian Fainelli
2025-03-06 19:11   ` Sasha Levin
2025-03-06  1:07 ` [PATCH stable 5.4 2/3] overflow: Correct check_shl_overflow() comment Florian Fainelli
2025-03-06 19:11   ` Sasha Levin
2025-03-06  1:07 ` [PATCH stable 5.4 3/3] overflow: Allow mixed type arguments Florian Fainelli
2025-03-06 19:11   ` Sasha Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox