Re: [PATCH v2 4/4] lib/vsprintf: Always check interrupt context restrictions
From: Sebastian Andrzej Siewior
Date: Mon May 04 2026 - 09:04:48 EST
On 2026-05-04 15:00:44 [+0200], Peter Zijlstra wrote:
> > --- a/lib/vsprintf.c
> > +++ b/lib/vsprintf.c
> > @@ -871,6 +871,10 @@ char *restricted_pointer(char *buf, char *end, const void *ptr,
> >
> > guard(lock_map_acquire)(&vsprintf_restricted_pointer_map);
> >
> > + lockdep_assert(!in_hardirq());
> > + lockdep_assert(!in_serving_softirq());
> > + lockdep_assert(!in_nmi());
> > +
>
> did that want to be:
>
> lockdep_assert(in_task());
>
> ?
I remember halfway suggesting that. But I also wanted to poke networking
folks to get rid of this which I haven't done so far :/
Sebastian