Thread (15 messages) 15 messages, 4 authors, 2003-07-19

Re: [PATCH] [1/2] kernel error reporting (revised)

From: Andrew Morton <hidden>
Date: 2003-07-15 19:44:08
Also in: lkml

Possibly related (same subject, not in this thread)

Jim Keniston [off-list ref] wrote:
+int kernel_error_event_iov(const struct iovec *iov, unsigned int nseg,
+	u32 groups)
+{
...
+
+	return netlink_broadcast(kerror_nl, skb, 0, ~0, GFP_ATOMIC);
This appears to be deadlocky when called from interrupt handlers.

netlink_broadcast() does read_lock(&nl_table_lock).  But nl_table_lock is
not an irq-safe lock.

Possibly netlink_broadcast() can be made callable from hardirq context, but
it looks to be non trivial.  The various error and delivery handlers need
to be reviewed, the kfree_skb() calls should be thought about, etc.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help