xen/common: llc-coloring parser fixes
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 3 repliesIn review
- v12 patches 14 repliesSuperseded
Changes in v2 from the cover letter
- Clarify the first commit message.
- Include the domain ID in the DT color parsing error message.
- Add Reviewed-by tags.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | xen/common: llc-coloring: clear color count on parse failurexen/ | +9 | 0 replies | |
| 2/2 | xen/common: llc-coloring: reject empty color tokensxen/ | +10 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Michal Orzel | Denis Mukhin | Oleksii Kurochko |
|---|---|---|---|
| Series | Release-Acked-by | ||
| 1/2 | R-b | R-b | |
| 2/2 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v2 0/2] xen/common: llc-coloring parser fixes
From: Mykola Kvach <[email protected]>
Hi all,
This small series fixes two issues in parse_color_config().
The first patch makes parse failures leave the caller-visible color count at zero. This prevents a rejected command-line value from leaving a partially parsed configuration behind for later init paths to consume.
The second patch rejects empty color tokens. Previously, delimiters in places where a color value was expected could be interpreted as color 0, because simple_strtoul() returns zero without advancing the input pointer. The patch checks that each parsed color value consumed input. It also fixes the DT color parsing error message by adding the missing newline and including the domain ID.
Changes in v2:
- Clarify the first commit message.
- Include the domain ID in the DT color parsing error message.
- Add Reviewed-by tags.
Mykola Kvach (2):
xen/common: llc-coloring: clear color count on parse failure xen/common: llc-coloring: reject empty color tokens
xen/common/llc-coloring.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.0