Skip to content

xen/common: llc-coloring parser fixes

Mykola Kvach xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. 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 filesSizeRepliesApplied
1/2xen/common: llc-coloring: clear color count on parse failurexen/common/llc-coloring.c+9 -20 replies
2/2xen/common: llc-coloring: reject empty color tokensxen/common/llc-coloring.c+10 -31 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMichal OrzelDenis MukhinOleksii Kurochko
SeriesRelease-Acked-by
1/2R-b R-b
2/2R-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.

Read the v2 thread

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