Bug 227603 - [panic] r323477: Sleeping thread owns a non-sleepable lock
Summary: [panic] r323477: Sleeping thread owns a non-sleepable lock
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: Stephen Hurd
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2018-04-18 07:45 UTC by Eugene Grosbein
Modified: 2018-04-26 17:02 UTC (History)
6 users (show)

See Also:


Attachments
kgdb backtrace (8.76 KB, text/plain)
2018-04-18 07:45 UTC, Eugene Grosbein
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein freebsd_committer freebsd_triage 2018-04-18 07:45:29 UTC
Created attachment 192611 [details]
kgdb backtrace

The change https://svnweb.freebsd.org/base?view=revision&revision=r323477 makes it possible for kernel thread to sleep on sx lock in vlan_ioctl() function while holding mutex bpf_mtx that is prohibited and leads to panic.

kgdb session is attached.
Comment 1 Matthew Macy 2018-04-18 18:12:01 UTC
This is fixed in HEAD. I'll ask shurd to MFC the fix.
Comment 2 Stephen Hurd freebsd_committer freebsd_triage 2018-04-18 18:48:19 UTC
Can you test with r332734 and ensure the issue is resolved?
Comment 3 Eugene Grosbein freebsd_committer freebsd_triage 2018-04-18 20:59:04 UTC
(In reply to Stephen Hurd from comment #2)

I've applied the fix from https://reviews.freebsd.org/D14982.
While shutting old kernel down to reboot with new kernel, it paniced again with the same backtrace.

Now I run the system with the fix and will respond if something bad happens or in a week in case of normal work.
Comment 4 Stephen Hurd freebsd_committer freebsd_triage 2018-04-26 16:54:10 UTC
How's it looking?
Comment 5 Eugene Grosbein freebsd_committer freebsd_triage 2018-04-26 17:02:07 UTC
(In reply to Stephen Hurd from comment #4)

No problems at all with r332734 applied. Thank you!