From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Florian Fainelli <florian.fainelli@broadcom.com>,
Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH stable v5.4 v2 1/3] overflow: Add __must_check attribute to check_*() helpers
Date: Sun, 9 Mar 2025 22:14:36 -0400 [thread overview]
Message-ID: <20250309204244-dbbee93b496c69ca@stable.kernel.org> (raw)
In-Reply-To: <20250307130953.3427986-2-florian.fainelli@broadcom.com>
[ Sasha's backport helper bot ]
Hi,
✅ All tests passed successfully. No issues detected.
No action required from the submitter.
The upstream commit SHA1 provided is correct: 9b80e4c4ddaca3501177ed41e49d0928ba2122a8
WARNING: Author mismatch between patch and upstream commit:
Backport author: Florian Fainelli<florian.fainelli@broadcom.com>
Commit author: Kees Cook<keescook@chromium.org>
Status in newer kernel trees:
6.13.y | Present (exact SHA1)
6.12.y | Present (exact SHA1)
6.6.y | Present (exact SHA1)
6.1.y | Present (exact SHA1)
Note: The patch differs from the upstream commit:
---
1: 9b80e4c4ddaca ! 1: 0aad002281c33 overflow: Add __must_check attribute to check_*() helpers
@@ Metadata
## Commit message ##
overflow: Add __must_check attribute to check_*() helpers
+ commit 9b80e4c4ddaca3501177ed41e49d0928ba2122a8 upstream
+
Since the destination variable of the check_*_overflow() helpers will
contain a wrapped value on failure, it would be best to make sure callers
really did check the return result of the helper. Adjust the macros to use
@@ Commit message
Suggested-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/lkml/202008151007.EF679DF@keescook/
Signed-off-by: Kees Cook <keescook@chromium.org>
+ Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
## include/linux/overflow.h ##
@@
@@ include/linux/overflow.h
+}))
/**
- * array_size() - Calculate size of 2-dimensional array.
+ * size_mul() - Calculate size_t multiplication with saturation at SIZE_MAX
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.4.y | Success | Success |
next prev parent reply other threads:[~2025-03-10 2:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 13:09 [PATCH stable v5.4 v2 0/3] Missing overflow changes Florian Fainelli
2025-03-07 13:09 ` [PATCH stable v5.4 v2 1/3] overflow: Add __must_check attribute to check_*() helpers Florian Fainelli
2025-03-10 2:14 ` Sasha Levin [this message]
2025-03-07 13:09 ` [PATCH stable v5.4 v2 2/3] overflow: Correct check_shl_overflow() comment Florian Fainelli
2025-03-10 2:14 ` Sasha Levin
2025-03-07 13:09 ` [PATCH stable v5.4 v2 3/3] overflow: Allow mixed type arguments Florian Fainelli
2025-03-10 2:14 ` Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250309204244-dbbee93b496c69ca@stable.kernel.org \
--to=sashal@kernel.org \
--cc=florian.fainelli@broadcom.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.