Re: iflib/bridge kernel panic

From: Shawn Webb <shawn.webb_at_hardenedbsd.org>
Date: Mon, 21 Sep 2020 08:16:27 -0400
On Mon, Sep 21, 2020 at 09:57:40AM +0200, Kristof Provost wrote:
> On 21 Sep 2020, at 2:52, Shawn Webb wrote:
> >> From latest HEAD on a Dell Precision 7550 laptop:
> >
> > https://gist.github.com/lattera/a0803f31f58bcf8ead51ac1ebbc447e2
> >
> > The last working boot environment was 14 Aug 2020. If I get some time to
> > bisect commits, I'll try to figure out the culprit.
> >
> Try https://reviews.freebsd.org/D26418

That seems to fix the kernel panic. dmesg gets spammed with a freak
ton of these LOR messages now:

==== BEGIN LOG 01 ====
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] Sleeping on "e1000_delay" with the following non-sleepable locks held:
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] exclusive sleep mutex if_bridge (if_bridge) r = 0 (0xfffff8001ea07218) locked _at_ /usr/src/sys/net/if_bridge.c:827
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] stack backtrace:
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #0 0xffffffff80c6c4a1 at witness_debugger+0x71
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #1 0xffffffff80c6d5bd at witness_warn+0x40d
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #2 0xffffffff80c09b8b at _sleep+0x5b
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #3 0xffffffff80c0a38e at pause_sbt+0xfe
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #4 0xffffffff80652b2d at e1000_write_phy_reg_mdic+0xed
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #5 0xffffffff80656bde at __e1000_write_phy_reg_hv+0x1ce
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #6 0xffffffff80640ea9 at e1000_lv_jumbo_workaround_ich8lan+0x799
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #7 0xffffffff8062329e at em_if_init+0x151e
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #8 0xffffffff80d347a9 at iflib_init_locked+0x2d9
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #9 0xffffffff80d36b08 at iflib_if_ioctl+0x1b8
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #10 0xffffffff83c582ac at bridge_set_ifcap+0x8c
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #11 0xffffffff83c544c8 at bridge_ioctl_add+0x4c8
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #12 0xffffffff83c560ff at bridge_ioctl+0x2df
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #13 0xffffffff80d9f1a1 at in_control+0x341
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #14 0xffffffff80d16266 at ifioctl+0x766
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #15 0xffffffff80c715a0 at kern_ioctl+0x290
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #16 0xffffffff80c71267 at sys_ioctl+0x127
Sep 21 08:08:28 hbsd-laptop-02 kernel: [25] #17 0xffffffff8122bf4c at amd64_syscall+0x14c
==== END LOG 01 ====

==== BEGIN LOG 02 ====
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] lock order reversal: (sleepable after non-sleepable)
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29]  1st 0xfffff800374616a0 ure0 (ure0, sleep mutex) _at_ /usr/src/sys/dev/usb/usb_request.c:714
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29]  2nd 0xffffffff81eb1ab8 sysctl lock (sysctl lock, sleepable rm) _at_ /usr/src/sys/kern/kern_sysctl.c:837
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] lock order ure0 -> sysctl lock attempted at:
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #0 0xffffffff80c6c1dc at witness_checkorder+0xdcc
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #1 0xffffffff80bf76bb at _rm_wlock_debug+0x6b
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #2 0xffffffff80c0c7a6 at sysctl_add_oid+0x46
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #3 0xffffffff83c64ea1 at ure_attach_post+0x1a91
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #4 0xffffffff83c6a1af at ue_attach_post_task+0x2f
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #5 0xffffffff80a2b749 at usb_process+0xf9
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #6 0xffffffff80bb9fe5 at fork_exit+0x85
Sep 21 08:08:28 hbsd-laptop-02 kernel: [29] #7 0xffffffff81200a9e at fork_trampoline+0xe
==== END LOG 02 ====

At work, I have two ethernet interfaces: the onboard em0 and a usb ethernet dongle.

Thanks,

-- 
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

GPG Key ID:          0xFF2E67A277F8E1FA
GPG Key Fingerprint: D206 BB45 15E0 9C49 0CF9  3633 C85B 0AF8 AB23 0FB2
https://git-01.md.hardenedbsd.org/HardenedBSD/pubkeys/src/branch/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc

Received on Mon Sep 21 2020 - 10:16:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:25 UTC