Kernel oops: x86 arch, Xenomai 2.6.3
Updated RPMS, Xenomai 2.6.3 and Linux 3.8.13, crash on most tested platforms (Fedora 18/19 & EL6 32-bit, but strangely not EL6 64-bit). In some cases the crash occurs during boot. In the pasted example [1] (EL6 32-bit), the crash occurred after starting a Xenomai application (LinuxCNC).
Xenomai package [9] updates:
- Update Xenomai from 2.6.2.1 to 2.6.3
- _FORTIFY_SOURCE=2 flag re-enabled
(see prev. discussion [2,3]; Gilles indicated this has been fixed)
- --enable-dlopen-skins removed ("WARNING: unrecognized option")
- devel package follows Debian: use prepare-kernel.sh instead of prepare-patch.sh
Kernel package [4] updates:
- (Package was rebased on top of elrepo.org packages)
- Update Linux from 3.5.7 to 3.8.13
- Base .config from Fedora ~3.8.13 kernel
- added a few missing answers [5,6]
- Xenomai .config 'overrides' unchanged [7,8]
Although nobody but me runs Xenomai on Red Hat, these .configs and packaging scripts will be the basis for updating the Debian packages; therefore, solving these issues is more valuable than it seems. ;) Thanks!
John
[1] http://pastebin.ca/2519330
[2] http://www.xenomai.org/pipermail/xenomai/2013-January/027341.html
[3] http://www.xenomai.org/pipermail/xenomai/2013-January/027342.html
[4] https://github.com/zultron/kernel-rt-rpm
[5] https://github.com/zultron/kernel-rt-rpm/blob/master/config-i686
[6] https://github.com/zultron/kernel-rt-rpm/blob/master/config-x86_64
[7] https://github.com/zultron/kernel-rt-rpm/blob/master/config-xenomai-i686
[8]
https://github.com/zultron/kernel-rt-rpm/blob/master/config-xenomai-x86_64
[9] https://github.com/zultron/xenomai-rpm
Quoted 13 lines · John Morris
Updated RPMS, Xenomai 2.6.3 and Linux 3.8.13, crash on most tested platforms (Fedora 18/19 & EL6 32-bit, but strangely not EL6 64-bit). In some cases the crash occurs during boot. In the pasted example [1] (EL6 32-bit), the crash occurred after starting a Xenomai application (LinuxCNC).
Xenomai package [9] updates:
- Update Xenomai from 2.6.2.1 to 2.6.3
- _FORTIFY_SOURCE=2 flag re-enabled
(see prev. discussion [2,3]; Gilles indicated this has been fixed)
- --enable-dlopen-skins removed ("WARNING: unrecognized option")
- devel package follows Debian: useprepare-kernel.shinstead ofprepare-patch.sh
Quoted 6 lines
Kernel package [4] updates:
- (Package was rebased on top of elrepo.org packages)
- Update Linux from 3.5.7 to 3.8.13
- Base .config from Fedora ~3.8.13 kernel
- added a few missing answers [5,6]
- Xenomai .config 'overrides' unchanged [7,8]
Hi John,
just tried your .config, I can not reproduce your crash. LOCKDEP complains about hardirqs being on in the timer interrupt, but once LOCKDEP is disabled (which involves disabling several options), the system runs fine. Someone would have to check to see if it is a false positive (i.e. LOCKDEP using the hardware interrupt mask instead of the I-pipe virtualized interrupt mask), or if it is a real bug. It is highly suspicious since the bug in slub.c since to be triggered by a similar condition (irqs being on in a place where they should not).
In the mean time, could you try and enable the I-pipe tracer with the "freeze on panic" option, increase the number of backtrace points, and try and trigger the bug again?
Just had a look at that, you can now remove:
- the SMI related stuff as SMI are now configured at run-time
- the gpio-pch stuff, as the missing EXPORT_SYMBOL has been added
The problem with CONFIG_CPUMASK_OFFSTACK can probably be fixed (we simply have to use set_cpus_allowed_ptr instead of set_cpus_allowed), though I do not know if enabling CONFIG_MAXSMP with Xenomai makes any sense anyway.
Quoted 4 lines
Although nobody but me runs Xenomai on Red Hat, these .configs and packaging scripts will be the basis for updating the Debian packages; therefore, solving these issues is more valuable than it seems. ;) >
Thanks!
The problem probably has nothing to do with Red Hat. By the way, a patch integrating the Red Hat "rules" to Xenomai would be welcome. This would allow users to build Red Hat packages from Xenomai sources from the repository.
Regards.
Signature · 1 line
Gilles.
Quoted 14 lines · Gilles Chanteperdrix
Quoted 13 lines · John Morris
Updated RPMS, Xenomai 2.6.3 and Linux 3.8.13, crash on most tested platforms (Fedora 18/19 & EL6 32-bit, but strangely not EL6 64-bit). In some cases the crash occurs during boot. In the pasted example [1] (EL6 32-bit), the crash occurred after starting a Xenomai application (LinuxCNC).
Xenomai package [9] updates:
- Update Xenomai from 2.6.2.1 to 2.6.3
- _FORTIFY_SOURCE=2 flag re-enabled
(see prev. discussion [2,3]; Gilles indicated this has been fixed)
- --enable-dlopen-skins removed ("WARNING: unrecognized option")
- devel package follows Debian: useprepare-kernel.shinstead ofprepare-patch.sh
Quoted 6 lines
Quoted 6 lines
Kernel package [4] updates:
- (Package was rebased on top of elrepo.org packages)
- Update Linux from 3.5.7 to 3.8.13
- Base .config from Fedora ~3.8.13 kernel
- added a few missing answers [5,6]
- Xenomai .config 'overrides' unchanged [7,8]
Hi Gilles,
I neglected to mention the above kernels are all running in KVM, not on bare metal.
Quoted 8 lines
just tried your .config, I can not reproduce your crash. LOCKDEP complains about hardirqs being on in the timer interrupt, but once LOCKDEP is disabled (which involves disabling several options), the system runs fine. Someone would have to check to see if it is a false positive (i.e. LOCKDEP using the hardware interrupt mask instead of the I-pipe virtualized interrupt mask), or if it is a real bug. It is highly suspicious since the bug in
slub.csince to be triggered by a similar condition (irqs being on in a place where they should not).
Disabling DEBUG_KERNEL was all that was needed in the Fedora .config to disable LOCKDEP. Is that different from what you expected?
Quoted 3 lines
In the mean time, could you try and enable the I-pipe tracer with the "freeze on panic" option, increase the number of backtrace points, and try and trigger the bug again?
Here's a trace on Fedora 19 32-bit:
Quoted 10 lines
Just had a look at that, you can now remove:
- the SMI related stuff as SMI are now configured at run-time
- the gpio-pch stuff, as the missingEXPORT_SYMBOLhas been addedThe problem with
CONFIG_CPUMASK_OFFSTACKcan probably be fixed (we simply have to useset_cpus_allowed_ptrinstead ofset_cpus_allowed), though I do not know if enablingCONFIG_MAXSMPwith Xenomai makes any sense anyway.
Thanks for the review. SMI and GPIO_PCH removed here:
https://github.com/zultron/kernel-rt-rpm/commit/ae08d8a651496134dc415fe7b0bcb6519ff148f3
Quoted 9 lines
Quoted 3 lines
Although nobody but me runs Xenomai on Red Hat, these .configs and packaging scripts will be the basis for updating the Debian packages; therefore, solving these issues is more valuable than it seems. ;) >
Thanks!
The problem probably has nothing to do with Red Hat. By the way, a patch integrating the Red Hat "rules" to Xenomai would be welcome. This would allow users to build Red Hat packages from Xenomai sources from the repository.
Gladly. I'll send a patch once the 'xenomai' service systemd scripts for Fedora are integrated.
John