"cobalt/vfile: seq_file seek index must progress"

Philippe Gerum rpm at xenomai.org
Fri May 21 16:20:08 CEST 2021


Jan Kiszka <jan.kiszka at siemens.com> writes:

> Hi Philippe,
>
> https://source.denx.de/Xenomai/xenomai/-/commit/dd9a5ee0ed6f734f40d3733f9fff23394c8647bd
>
> Bug fix unrelated to dovetail? There is no description, so I cannot
> easily asses this.
>

Yeah, not good. The idea is that the offset field we receive from the
kernel must progress in order for the loop to stop properly,
independently from our own tracking of the end-of-list condition.

AFAIR, this was very easily reproducible by running a test app creating
a few tenths of threads (10-20 would suffice) which would exit shortly
after, while running a cat loop on /proc/xenomai/sched/next. At some
point, the cat loop would cause the vfile handler to crash.

-- 
Philippe.



More information about the Xenomai mailing list