-
Non-cobalt kernel code may hook interrupts using ipipe_request_irq() directly, which means that xnintr_vec_first() cannot assume that __ipipe_irq_cookie() always returns a valid xnintr struct for all irqs. We need to detect those irqs while iterating over the interrupt namespace when pulling data from /proc files not to dereference invalid memory. Fixes: /proc/xenomai/irq /proc/xenomai/sched/stat /proc/xenomai/sched/acct Signed-off-by: Philippe Gerum <rpm@xenomai.org> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
02500eff