summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure18
1 files changed, 16 insertions, 2 deletions
diff --git a/configure b/configure
index fd8211e..a5e8e21 100755
--- a/configure
+++ b/configure
@@ -89,10 +89,24 @@ check_libnl()
# error incompatible libnl version
#endif
-void main(void) { }
+void main(void)
+{
+ struct nl_sock *sock = nl_socket_alloc();
+ struct nl_cache *nl_cache;
+ int ret = genl_connect(sock);
+
+ ret = genl_ctrl_alloc_cache(sock, &nl_cache);
+}
EOF
- $CC $(pkg-config --cflags libnl-3.0) -o $TMPDIR/libnltest $TMPDIR/libnltest.c >> $TMPDIR/config.log 2>&1
+ $CC -W -Wall \
+ $(pkg-config --cflags libnl-3.0) \
+ $(pkg-config --cflags libnl-genl-3.0) \
+ -o $TMPDIR/libnltest \
+ $TMPDIR/libnltest.c \
+ $(pkg-config --libs libnl-3.0) \
+ $(pkg-config --libs libnl-genl-3.0) \
+ >> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/libnltest ] ; then
echo "[NO]"
MISSING_DEFS=1
lock)->rlock){-.....}, at: [<ffffffffbd0a1bc6>] __lock_task_sighand+0xb6/0x2c0 but this lock took another, HARDIRQ-unsafe lock in the past: (ucounts_lock){+.+...} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &(&sighand->siglock)->rlock --> &(&tty->ctrl_lock)->rlock --> ucounts_lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(ucounts_lock); local_irq_disable(); lock(&(&sighand->siglock)->rlock); lock(&(&tty->ctrl_lock)->rlock); <Interrupt> lock(&(&sighand->siglock)->rlock); *** DEADLOCK *** This patch removes a dependency between rlock and ucount_lock. Fixes: f333c700c610 ("pidns: Add a limit on the number of pid namespaces") Cc: stable@vger.kernel.org Signed-off-by: Andrei Vagin <avagin@openvz.org> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'drivers/usb/musb/omap2430.c')