Skip to content

Missing overflow changes

Florian Fainelli linux-hardening lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 3 repliesIn review
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- added missing upstream commit ID to the last patch in the series

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3overflow: Add __must_check attribute to check_*() helpersinclude/linux/overflow.h+24 -151 reply
2/3overflow: Correct check_shl_overflow() commentinclude/linux/overflow.h+1 -11 reply
3/3overflow: Allow mixed type argumentsinclude/linux/overflow.h+41 -311 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAndrzej HajdaGwan-gyeong Mun
1/3
2/3
3/3R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH stable v5.4 v2 0/3] Missing overflow changes

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,
       ^~~~~~~~~~~~~~~~~~

Changes in v2:
- added missing upstream commit ID to the last patch in the series

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(-)
Signature · 1 line
2.34.1