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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250730141643.RD-uucXa@linutronix.de>
Date: Wed, 30 Jul 2025 16:16:43 +0200
From: Nam Cao <namcao@...utronix.de>
To: Gabriele Monaco <gmonaco@...hat.com>
Cc: linux-kernel@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>,
	linux-trace-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
	Ingo Molnar <mingo@...hat.com>,
	Peter Zijlstra <peterz@...radead.org>,
	Tomas Glozar <tglozar@...hat.com>, Juri Lelli <jlelli@...hat.com>,
	Clark Williams <williams@...hat.com>,
	John Kacur <jkacur@...hat.com>
Subject: Re: [PATCH v5 7/9] rv: Replace tss and sncid monitors with more
 complete sts

On Wed, Jul 30, 2025 at 02:52:25PM +0200, Nam Cao wrote:
> I do not have trace-cmd in the riscv image, but I do have perf. I will give
> it a try.

Instead, I replaced with tracepoints with trace_printk() and managed to
captured the log moments before disaster below.

I'm not sure what I'm seeing, just dumping this here, maybe you have an
idea.

Quite interesting that the last "normal" line for cpu1 is:

            test-762     [001] dn...   112.407548: da_event_sts: cant_sched x irq_enable -> can_sched (final)

But in the next error line, it mentions the "enable_to_exit". Where did
this state come from??

           <...>-1621    [001] d....   119.919846: da_event_sts: rv: monitor sts does not allow event sched_switch on state enable_to_exit

Something very strange is going on here..

Nam

            test-1198    [000] d....   112.407332: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-762     [001] d....   112.407338: da_event_sts: can_sched x irq_disable -> cant_sched
            test-762     [001] d....   112.407347: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-1198    [000] d....   112.407351: da_event_sts: can_sched x irq_disable -> cant_sched
            test-762     [001] d....   112.407363: da_event_sts: can_sched x irq_disable -> cant_sched
            test-1198    [000] d.h..   112.407370: da_event_sts: cant_sched x irq_entry -> cant_sched
            test-762     [001] d.h..   112.407383: da_event_sts: cant_sched x irq_entry -> cant_sched
            test-637     [002] dn...   112.407413: da_event_sts: cant_sched x irq_enable -> can_sched (final)
         illegal-1091    [003] dns..   112.407418: da_event_sts: in_irq x irq_enable -> scheduling
            test-637     [002] .n...   112.407424: da_event_sts: can_sched x schedule_entry -> scheduling
         illegal-1091    [003] dns..   112.407431: da_event_sts: scheduling x irq_disable -> disable_to_switch
            test-637     [002] dn...   112.407433: da_event_sts: scheduling x irq_disable -> disable_to_switch
         illegal-1091    [003] dns..   112.407438: da_event_sts: disable_to_switch x irq_enable -> enable_to_exit
         illegal-1091    [003] dns..   112.407448: da_event_sts: enable_to_exit x irq_disable -> enable_to_exit
            test-1198    [000] dns..   112.407459: da_event_sts: cant_sched x irq_enable -> can_sched (final)
         illegal-1091    [003] dns..   112.407460: da_event_sts: enable_to_exit x irq_enable -> enable_to_exit
            test-637     [002] d....   112.407468: da_event_sts: disable_to_switch x sched_switch -> switching
            test-1198    [000] dns..   112.407472: da_event_sts: can_sched x irq_disable -> cant_sched
         illegal-1091    [003] dns..   112.407472: da_event_sts: enable_to_exit x irq_disable -> enable_to_exit
         illegal-1091    [003] dn...   112.407481: da_event_sts: enable_to_exit x irq_enable -> enable_to_exit
            test-1198    [000] dns..   112.407483: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-762     [001] dns..   112.407488: da_event_sts: cant_sched x irq_enable -> can_sched (final)
         illegal-1091    [003] dn...   112.407492: da_event_sts: enable_to_exit x irq_disable -> enable_to_exit
            test-1198    [000] dns..   112.407493: da_event_sts: can_sched x irq_disable -> cant_sched
            test-762     [001] dns..   112.407501: da_event_sts: can_sched x irq_disable -> cant_sched
            test-1198    [000] dns..   112.407501: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-762     [001] dns..   112.407508: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-1198    [000] dns..   112.407513: da_event_sts: can_sched x irq_disable -> cant_sched
            test-649     [002] d....   112.407517: da_event_sts: switching x irq_enable -> enable_to_exit
            test-762     [001] dns..   112.407518: da_event_sts: can_sched x irq_disable -> cant_sched
            test-1198    [000] dns..   112.407521: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-762     [001] dns..   112.407529: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-649     [002] .....   112.407530: da_event_sts: enable_to_exit x schedule_exit -> can_sched (final)
            test-1198    [000] dns..   112.407541: da_event_sts: can_sched x irq_disable -> cant_sched
            test-762     [001] dns..   112.407541: da_event_sts: can_sched x irq_disable -> cant_sched
            test-1198    [000] dns..   112.407548: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-762     [001] dn...   112.407548: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-1198    [000] dns..   112.407560: da_event_sts: can_sched x irq_disable -> cant_sched
            test-1198    [000] dns..   112.407567: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-1198    [000] dns..   112.407578: da_event_sts: can_sched x irq_disable -> cant_sched
            test-1198    [000] dns..   112.407585: da_event_sts: cant_sched x irq_enable -> can_sched (final)
            test-649     [002] d....   112.407596: da_event_sts: can_sched x irq_disable -> cant_sched
         illegal-1091    [003] d....   112.410126: da_event_sts: rv: monitor sts does not allow event sched_switch on state enable_to_exit
           <...>-1621    [001] d....   119.919846: da_event_sts: rv: monitor sts does not allow event sched_switch on state enable_to_exit
            test-642     [001] d....   121.459650: da_event_sts: rv: monitor sts does not allow event sched_switch on state enable_to_exit

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ