Re: [PATCH] sched/isolation: don't do unbounded chomp on bootarg string

2021-04-19 Thread Peter Xu
On Sun, Apr 18, 2021 at 05:54:26PM -0400, Paul Gortmaker wrote: > After commit 3662daf02350 ("sched/isolation: Allow "isolcpus=" to skip > unknown sub-parameters") the isolcpus= string is walked to skip over what > might be any future flag comma separated additions. > > However, there is a logic

[PATCH] sched/isolation: don't do unbounded chomp on bootarg string

2021-04-18 Thread Paul Gortmaker
After commit 3662daf023500dc084fa3b96f68a6f46179ddc73 ("sched/isolation: Allow "isolcpus=" to skip unknown sub-parameters") the isolcpus= string is walked to skip over what might be future flag comma separated additions. However, there is a logic error, and so as can clearly be seen below, it

[PATCH] sched/isolation: don't do unbounded chomp on bootarg string

2021-04-18 Thread Paul Gortmaker
After commit 3662daf02350 ("sched/isolation: Allow "isolcpus=" to skip unknown sub-parameters") the isolcpus= string is walked to skip over what might be any future flag comma separated additions. However, there is a logic error, and so as can clearly be seen below, it will ignore its own arg len