All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] Hit BUG() in arch/arm/mm/pgd.c
@ 2015-04-01 13:59 Lennart Sorensen
  2015-04-01 14:04 ` Gilles Chanteperdrix
  2015-04-01 14:20 ` Philippe Gerum
  0 siblings, 2 replies; 5+ messages in thread
From: Lennart Sorensen @ 2015-04-01 13:59 UTC (permalink / raw)
  To: xenomai

We are seeing occational hits on a BUG() statement in pgd.c:

static inline void pgd_holder_free(pgd_t *pgd)
{
        struct rb_node *node = pgd_table.rb_node;
        struct pgd_holder *p;
        unsigned long flags;

        pgd_table_lock(flags);

        while (node) {
                p = rb_entry(node, struct pgd_holder, rb);
                if ((unsigned long)pgd < (unsigned long)p->pgd)
                        node = node->rb_left;
                else if ((unsigned long)pgd > (unsigned long)p->pgd)
                        node = node->rb_right;
                else {
                        rb_erase(node, &pgd_table);
                        pgd_table_unlock(flags);
                        kfree(p);
                        return;
                }
        }

        pgd_table_unlock(flags);

        BUG(); <- this one
}

Any idea how that could be happening?

[  449.516096] kernel BUG at /build/linux-UzsXAQ/linux-3.12.33/arch/arm/mm/pgd.c:120!
[  449.531229] Internal error: Oops - BUG: 0 [#1] SMP ARM
[  449.541495] Modules linked in: qmi_wwan usbnet mii qcserial usb_wwan usbserial 8021q garp stp mrp llc l2tp_eth l2tp_netlink l2tp_core xfrm_user ip_gre ip_tunnel gre macvlan ti_pru_eth iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack dummy xeno_posix xeno_rtdm xeno_native xeno_nucleus iptable_filter ip_tables x_tables xhci_hcd dwc3 ahci_platform phy_omap_pipe3 phy_omap_usb2 at24 lm75 phy_omap_control dwc3_omap max6369_wdt [last unloaded: rcksapi_layer2]
[  449.627071] CPU: 1 PID: 6186 Comm: tput Tainted: G        W  O 3.12-1-am5726 #1 Debian 3.12.33-0.1RR14
[  449.645675] task: da037a80 ti: dd8ec000 task.ti: dd8ec000
[  449.656463] PC is at pgd_free+0x54/0x108
[  449.664300] LR is at __ipipe_spin_unlock_irqrestore+0x38/0xac
[  449.675784] pc : [<c001e424>]    lr : [<c00af924>] psr: 60000013
[  449.675784] sp : dd8edf20  ip : c0c481d4  fp : dd8ec000
[  449.698733] r10: 00000000  r9 : dd8ec000  r8 : c000faa8
[  449.709173] r7 : df7c90b4  r6 : 60000013  r5 : dd8e0000  r4 : 00000000
[  449.722218] r3 : c0c40bac  r2 : 00000000  r1 : c07b2b40  r0 : 00000000
[  449.735265] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM Segment user
[  449.749528] Control: 10c5387d  Table: 9dd2806a  DAC: 00000015
[  449.761010] Process tput (pid: 6186, stack limit = 0xdd8ec248)
[  449.772664] Stack: (0xdd8edf20 to 0xdd8ee000)
[  449.781372] df20: 00000000 df7c9080 da037a80 c0040a60 0000033c df7c9080 00000000 c0045488
[  449.797722] df40: 00000000 df530cc0 dd8ec000 00000001 00000000 c0120068 00040004 00000000
[  449.814071] df60: 00000000 da06d180 00000000 dd8ec000 000000f8 c000faa8 dd8ec000 00000000
[  449.830421] df80: 00000000 c0045c74 00000000 0007001e b6fa1774 b6fa1774 000000f8 c0045d0c
[  449.846770] dfa0: 00000000 c000f8c0 0007001e b6fa1774 00000000 0007000a b6fe54c0 00000000
[  449.863119] dfc0: 0007001e b6fa1774 b6fa1774 000000f8 bea68f67 00000001 b6feb000 00000000
[  449.879470] dfe0: 000000f8 bea66c44 b6f33083 b6ed8f96 60000030 00000000 00000000 00000000
[  449.895823] [<c001e424>] (pgd_free+0x54/0x108) from [<c0040a60>] (__mmdrop+0x20/0x74)
[  449.911482] [<c0040a60>] (__mmdrop+0x20/0x74) from [<c0045488>] (do_exit+0x25c/0x944)
[  449.927140] [<c0045488>] (do_exit+0x25c/0x944) from [<c0045c74>] (do_group_exit+0x3c/0xc4)
[  449.943667] [<c0045c74>] (do_group_exit+0x3c/0xc4) from [<c0045d0c>] (__wake_up_parent+0x0/0x18)
[  449.961233] Code: 1afffff9 e59f00a4 e1a01006 eb024531 (e7f001f2)
[  449.973514] ---[ end trace cf10233d41bbdcf6 ]---
[  449.982800] Fixing recursive fault but reboot is needed!

It seems to only happen as we are shutting down the system (so terminating
xenomai process and other things).

-- 
Len Sorensen


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-01 14:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-01 13:59 [Xenomai] Hit BUG() in arch/arm/mm/pgd.c Lennart Sorensen
2015-04-01 14:04 ` Gilles Chanteperdrix
2015-04-01 14:16   ` Lennart Sorensen
2015-04-01 14:20 ` Philippe Gerum
2015-04-01 14:47   ` Lennart Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.