lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250616062853.G6JxYeK1@linutronix.de>
Date: Mon, 16 Jun 2025 08:28:53 +0200
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: Bert Karwatzki <spasswolf@....de>
Cc: linux-kernel@...r.kernel.org, linux-next@...r.kernel.org,
	bpf@...r.kernel.org, linux-rt-users@...r.kernel.org,
	linux-rt-devel@...ts.linux.dev,
	Thomas Gleixner <tglx@...utronix.de>,
	Alexei Starovoitov <alexei.starovoitov@...il.com>,
	Steven Rostedt <rostedt@...dmis.org>
Subject: Re: BUG: scheduling while atomic with PREEMPT_RT=y and bpf selftests

On 2025-06-16 00:12:49 [+0200], Bert Karwatzki wrote:
> These three patches fixes all the dmesg warning (with CONFIG_LOCKDEP) issues when running the
> bpf test_progs and does not cause deadlocks without CONFIG_LOCKDEP.
> 
…
> is fixed by this:
> 
> diff --git a/include/trace/bpf_probe.h b/include/trace/bpf_probe.h
> index 183fa2aa2935..49257cb90209 100644
> --- a/include/trace/bpf_probe.h
> +++ b/include/trace/bpf_probe.h
> @@ -58,9 +58,9 @@ static notrace void \
>  __bpf_trace_##call(void *__data, proto) \
>  { \
>  might_fault(); \
> - preempt_disable_notrace(); \
> + migrate_disable(); \
>  CONCATENATE(bpf_trace_run, COUNT_ARGS(args))(__data, CAST_TO_U64(args)); \
> - preempt_enable_notrace(); \
> + migrate_enable(); \
>  }

I doubt this can be fixed that way. I sent a series out
	https://lore.kernel.org/all/20250613152218.1924093-1-bigeasy@linutronix.de/

which is the first the step towards fixing this properly.

Sebastian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ