Project

General

Profile

Actions

Bug #14718

open

panic in port_free_event timer_delete

Added by Gordon Ross 2 months ago. Updated 17 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

An interesting crash while running some ordinary stuff user-level stuff.
This is a VMware guest, in case that might matter.
Any suggestions on tracking this down?
Anyone else seen it?

> ::status
debugging crash dump vmcore.0 (64-bit) from oi-work
operating system: 5.11 illumos-2de2fd878c (i86pc)
build version: heads/master-0-g2de2fd878c-dirty

image uuid: f101822d-d3ce-c8d9-8374-ad408663aed4
panic message: mutex_enter: bad mutex, lp=fffffe0bed8cf4a0 owner=fffffe0c537ffc20 thread=fffffe0c5370a820
dump content: kernel pages only
> $C
fffffe0010c81ce0 vpanic()
fffffe0010c81d00 mutex_panic+0x4a(fffffffffb95dcee, fffffe0bed8cf4a0)
fffffe0010c81d70 mutex_vector_enter+0x307(fffffe0bed8cf4a0)
fffffe0010c81db0 port_free_event_local+0x62(fffffe0bfcd122d0, 1)
fffffe0010c81df0 port_free_event+0xa0(fffffe0bfcd122d0)
fffffe0010c81e40 timer_delete_locked+0xe9(fffffe0c48e48010, 4, fffffe0c4819cea8)
fffffe0010c81e90 timer_delete_grabbed+0x32(fffffe0c48e48010, 4, fffffe0c4819cea8)
fffffe0010c81ec0 timer_delete+0x44(4)
fffffe0010c81f10 _sys_sysenter_post_swapgs+0x14f()
Actions #1

Updated by Dan McDonald 2 months ago

We've seen this once or twice in SmartOS in very racy conditions, where timer_delete() vs. close(evport_fd) conspire.

A proposed fix is in https://kebe.com/~danmcd/webrevs/evport/ but it's a nightmare to test.

Actions #2

Updated by Dan McDonald 2 months ago

I'd recommend looking for stacks in portfs in this dump (`::stacks -m portfs`) as well.

Actions #3

Updated by Joshua M. Clulow 2 months ago

  • Description updated (diff)
Actions #4

Updated by Dan McDonald 2 months ago

I'll have to dig, but I may have reproduction programs too.

Actions #5

Updated by Dan McDonald 17 days ago

  • Gerrit CR set to 2203
Actions

Also available in: Atom PDF