lkml.org 
[lkml]   [2019]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 09/32] locking/lockdep: Save stack trace for each softirq vector involved
On Tue, Feb 12, 2019 at 9:15 AM Frederic Weisbecker <frederic@kernel.org> wrote:
>
>
> +static int save_trace_mask(struct lock_class *class, u64 mask)
> +{
> + int bit = 0;
> +
> + while (mask) {
> + long fs = __ffs64(mask) + 1;
> +
> + mask >>= fs;
> + bit += fs;

Same buggy pattern of "ffs+1" and overflow of shift count.

Linus

\
 
 \ /
  Last update: 2019-02-12 18:48    [W:0.267 / U:5.492 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site