[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20130701.181638.1716586890151526311.davem@davemloft.net>
Date: Mon, 01 Jul 2013 18:16:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: davej@...hat.com
Cc: netdev@...r.kernel.org
Subject: Re: fix broken locking in x25 ioctl error paths
From: Dave Jones <davej@...hat.com>
Date: Fri, 28 Jun 2013 12:13:52 -0400
> Two of the x25 ioctl cases have error paths that break out of the function without
> unlocking the socket, leading to this warning:
>
> ================================================
> [ BUG: lock held when returning to user space! ]
> 3.10.0-rc7+ #36 Not tainted
> ------------------------------------------------
> trinity-child2/31407 is leaving the kernel with locks still held!
> 1 lock held by trinity-child2/31407:
> #0: (sk_lock-AF_X25){+.+.+.}, at: [<ffffffffa024b6da>] x25_ioctl+0x8a/0x740 [x25]
>
> Signed-off-by: Dave Jones <davej@...hat.com>
Applied and queued up for -stable, thanks Dave.
In the future please prefix your patch subject lines with "$subsystem: ", for
this I rewrote it as:
x25: Fix broken locking in ioctl error paths.
Thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists