Re: 'perf test sigtrap' failing on PREEMPT_RT_FULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2023-07-25 at 17:15 -0300, Arnaldo Carvalho de Melo wrote:
> Hi Marco, Peter,
>
>         I got a report that 'perf test sigtrap' test failed on a
> PREEMPT_RT_FULL kernel, one that had up to:
>
> commit 97ba62b278674293762c3d91f724f1bb922f04e0
> Author: Marco Elver <elver@xxxxxxxxxx>
> Date:   Thu Apr 8 12:36:01 2021 +0200
>
>     perf: Add support for SIGTRAP on perf events
> ...

> [   52.848925] BUG: scheduling while atomic: perf/6549/0x00000002

Had bf9ad37dc8a not been reverted due to insufficient beauty, you could
trivially make the sigtrap test a happy camper (wart tested in tip-rt).

	-Mike

@@ -1829,6 +1869,9 @@ int send_sig_perf(void __user *addr, u32
 				     TRAP_PERF_FLAG_ASYNC :
 				     0;

+	if (force_sig_delayed(&info, current))
+		return 0;
+
 	return send_sig_info(info.si_signo, &info, current);
 }







[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux