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: <0bfb1dfc-bab0-45c1-9fc0-7e91266ef52a@molgen.mpg.de>
Date: Sun, 22 Sep 2024 08:53:37 +0200
From: Paul Menzel <pmenzel@...gen.mpg.de>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Johannes Weiner <hannes@...xchg.org>,
 Suren Baghdasaryan <surenb@...gle.com>,
 Anna-Maria Behnsen <anna-maria@...utronix.de>,
 Frederic Weisbecker <frederic@...nel.org>,
 Thomas Gleixner <tglx@...utronix.de>, LKML <linux-kernel@...r.kernel.org>,
 regressions@...ts.linux.dev
Subject: Re: Error: psi: inconsistent task state! task=1:swapper/0 cpu=0
 psi_flags=4 clear=0 set=4

[Cc: +PSI maintainers]

Am 22.09.24 um 00:50 schrieb Paul Menzel:
> #regzbot introduced: 2e0199df252a..54a58a787791
> 
> Dear Peter,
> 
> 
> With merge commit 2004cef11ea0 (Merge tag 'sched-core-2024-09-19' of 
> git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip) I see the warning 
> below on the Intel Kaby Lake laptop Dell XPS 13 9360 and with QEMU.
> 
> Dell XPS 13 9360:
> 
>      psi: inconsistent task state! task=1:swapper/0 cpu=0 psi_flags=4 clear=0 set=4
> 
> QEMU:
> 
>      $ qemu-system-x86_64 -enable-kvm -smp cpus=2 -m 1G -net nic -net user,hostfwd=tcp::22222-:22 -kernel /dev/shm/bzImage -append "root=/dev/sda1 debug console=ttyS0" -nographic
> 
>      psi: inconsistent task state! task=11:kworker/u8:0 cpu=1 psi_fla4
> 
> Due to a compile error, I couldn’t bisect all commits, but it’s one of 
> the commits below:
> 
>      $ git bisect skip
>      There are only 'skip'ped commits left to test.
>      The first bad commit could be any of:
>      781773e3b68031bd001c0c18aa72e8470c225ebd
>      a1c446611e31ca5363d4db51e398271da1dce0af
>      e1459a50ba31831efdfc35278023d959e4ba775b
>      f12e148892ede8d9ee82bcd3e469e6d01fc077ac
>      152e11f6df293e816a6a37c69757033cdc72667d
>      2e0199df252a536a03f4cb0810324dff523d1e79
>      54a58a78779169f9c92a51facf6de7ce94962328
>      We cannot bisect more!
> 
> 
> Kind regards,
> 
> Paul
> 
> 
> PS: Build error is:
> 
> ```
> kernel/sched/fair.c: In function ârequeue_delayed_entityâ:
> kernel/sched/fair.c:6818:24: warning: unused variable âcfs_rqâ [-Wunused-variable]
>   6818 |         struct cfs_rq *cfs_rq = cfs_rq_of(se);
>        |                        ^~~~~~
>    AR      drivers/base/firmware_loader/built-in.a
>    AR      drivers/base/built-in.a
>    AR      drivers/built-in.a
> In file included from kernel/sched/fair.c:54:
> kernel/sched/fair.c: In function âswitched_from_fairâ:
> kernel/sched/sched.h:2132:24: error: implicit declaration of function âstatic_branch_DELAY_ZEROâ; did you mean âstatic_branch_DELAY_DEQUEUEâ? [-Wimplicit-function-declaration]
>   2132 | #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
>        |                        ^~~~~~~~~~~~~~
> kernel/sched/fair.c:12977:21: note: in expansion of macro âsched_featâ
>  12977 |                 if (sched_feat(DELAY_ZERO) && p->se.vlag > 0)
>        |                     ^~~~~~~~~~
> kernel/sched/sched.h:2132:59: error: â__SCHED_FEAT_DELAY_ZEROâ undeclared (first use in this function); did you mean â__SCHED_FEAT_DELAY_DEQUEUEâ?
>   2132 | #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
>        | ^~~~~~~~~~~~~
> kernel/sched/fair.c:12977:21: note: in expansion of macro âsched_featâ
>  12977 |                 if (sched_feat(DELAY_ZERO) && p->se.vlag > 0)
>        |                     ^~~~~~~~~~
> kernel/sched/sched.h:2132:59: note: each undeclared identifier is reported only once for each function it appears in
>   2132 | #define sched_feat(x) (static_branch_##x(&sched_feat_keys[__SCHED_FEAT_##x]))
>        | ^~~~~~~~~~~~~
> kernel/sched/fair.c:12977:21: note: in expansion of macro âsched_featâ
>  12977 |                 if (sched_feat(DELAY_ZERO) && p->se.vlag > 0)
>        |                     ^~~~~~~~~~
> make[4]: *** [scripts/Makefile.build:244: kernel/sched/fair.o] Error 1
> ```
> 
> PPS: Bisect log:
> 
> ```
> $ git bisect log
> git bisect start
> # status: waiting for both good and bad commits
> # good: [509d2cd12a10d057fdf72f565b930f9a81140d59] Merge tag 'Smack-for-6.12' of https://github.com/cschaufler/smack-next
> git bisect good 509d2cd12a10d057fdf72f565b930f9a81140d59
> # status: waiting for bad commit, 1 good commit known
> # bad: [509d2cd12a10d057fdf72f565b930f9a81140d59] Merge tag 'Smack-for-6.12' of https://github.com/cschaufler/smack-next
> git bisect bad 509d2cd12a10d057fdf72f565b930f9a81140d59
> # bad: [2004cef11ea072838f99bd95cefa5c8e45df0847] Merge tag 'sched-core-2024-09-19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
> git bisect bad 2004cef11ea072838f99bd95cefa5c8e45df0847
> # skip: [2e0199df252a536a03f4cb0810324dff523d1e79] sched/fair: Prepare exit/cleanup paths for delayed_dequeue
> git bisect skip 2e0199df252a536a03f4cb0810324dff523d1e79
> # good: [f23c042ce34ba265cf3129d530702b5d218e3f4b] sched/deadline: Comment sched_dl_entity::dl_server variable
> git bisect good f23c042ce34ba265cf3129d530702b5d218e3f4b
> # skip: [a1c446611e31ca5363d4db51e398271da1dce0af] sched,freezer: Mark TASK_FROZEN special
> git bisect skip a1c446611e31ca5363d4db51e398271da1dce0af
> # bad: [85e511df3cec46021024176672a748008ed135bf] sched/eevdf: Allow shorter slices to wakeup-preempt
> git bisect bad 85e511df3cec46021024176672a748008ed135bf
> # good: [8e2e13ac6122915bd98315237b0317495e391be0] sched/fair: Cleanup pick_task_fair() vs throttle
> git bisect good 8e2e13ac6122915bd98315237b0317495e391be0
> # skip: [f12e148892ede8d9ee82bcd3e469e6d01fc077ac] sched/fair: Prepare pick_next_task() for delayed dequeue
> git bisect skip f12e148892ede8d9ee82bcd3e469e6d01fc077ac
> # bad: [54a58a78779169f9c92a51facf6de7ce94962328] sched/fair: Implement DELAY_ZERO
> git bisect bad 54a58a78779169f9c92a51facf6de7ce94962328
> # good: [dfa0a574cbc47bfd5f8985f74c8ea003a37fa078] sched/uclamg: Handle delayed dequeue
> git bisect good dfa0a574cbc47bfd5f8985f74c8ea003a37fa078
> # skip: [781773e3b68031bd001c0c18aa72e8470c225ebd] sched/fair: Implement ENQUEUE_DELAYED
> git bisect skip 781773e3b68031bd001c0c18aa72e8470c225ebd
> # skip: [e1459a50ba31831efdfc35278023d959e4ba775b] sched: Teach dequeue_task() about special task states
> git bisect skip e1459a50ba31831efdfc35278023d959e4ba775b
> # good: [e28b5f8bda01720b5ce8456b48cf4b963f9a80a1] sched/fair: Assert {set_next,put_prev}_entity() are properly balanced
> git bisect good e28b5f8bda01720b5ce8456b48cf4b963f9a80a1
> # skip: [152e11f6df293e816a6a37c69757033cdc72667d] sched/fair: Implement delayed dequeue
> git bisect skip 152e11f6df293e816a6a37c69757033cdc72667d
> # only skipped commits left to test
> # possible first bad commit: [54a58a78779169f9c92a51facf6de7ce94962328] sched/fair: Implement DELAY_ZERO
> # possible first bad commit: [152e11f6df293e816a6a37c69757033cdc72667d] sched/fair: Implement delayed dequeue
> # possible first bad commit: [e1459a50ba31831efdfc35278023d959e4ba775b] sched: Teach dequeue_task() about special task states
> # possible first bad commit: [a1c446611e31ca5363d4db51e398271da1dce0af] sched,freezer: Mark TASK_FROZEN special
> # possible first bad commit: [781773e3b68031bd001c0c18aa72e8470c225ebd] sched/fair: Implement ENQUEUE_DELAYED
> # possible first bad commit: [f12e148892ede8d9ee82bcd3e469e6d01fc077ac] sched/fair: Prepare pick_next_task() for delayed dequeue
> # possible first bad commit: [2e0199df252a536a03f4cb0810324dff523d1e79] sched/fair: Prepare exit/cleanup paths for delayed_dequeue
> ```

View attachment ".config" of type "text/plain" (201238 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ