syzbot


possible deadlock in rtnl_lock

Status: closed as invalid on 2019/04/05 05:43
First crash: 2212d, last: 2060d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-44 possible deadlock in rtnl_lock C 4676 1637d 1830d 0/2 public: reported C repro on 2019/04/12 00:00
upstream possible deadlock in rtnl_lock (5) net C 1009 2182d 2211d 5/26 fixed on 2018/05/08 18:30
upstream possible deadlock in rtnl_lock (3) net C 3633 2259d 2260d 4/26 fixed on 2018/02/07 13:48
linux-4.19 possible deadlock in rtnl_lock C error 31 1311d 1561d 0/1 upstream: reported C repro on 2020/01/06 01:18
upstream possible deadlock in rtnl_lock (4) net C 73333 2242d 2258d 4/26 fixed on 2018/02/26 20:04
upstream possible deadlock in rtnl_lock (6) net C done error 551 1501d 1743d 0/26 auto-obsoleted due to no activity on 2022/12/21 11:47
upstream possible deadlock in rtnl_lock net C 15711 2265d 2322d 4/26 fixed on 2018/02/01 04:00
upstream possible deadlock in rtnl_lock (2) net C 10369 2261d 2265d 4/26 fixed on 2018/02/04 23:45
linux-4.14 possible deadlock in rtnl_lock C inconclusive 312 1420d 1561d 0/1 upstream: reported C repro on 2020/01/06 01:45

Sample crash report:
IPv6: ADDRCONF(NETDEV_UP): veth1: link is not ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready
IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready

======================================================
[ INFO: possible circular locking dependency detected ]
4.9.111-g03c70fe #5 Not tainted
-------------------------------------------------------
syz-executor234/3807 is trying to acquire lock:
 (rtnl_mutex){+.+.+.}, at: [<ffffffff830b4937>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
but task is already holding lock:
 (sk_lock-AF_INET){+.+.+.}, at: [<ffffffff83345839>] lock_sock include/net/sock.h:1404 [inline]
 (sk_lock-AF_INET){+.+.+.}, at: [<ffffffff83345839>] do_ip_setsockopt.isra.13+0x269/0x2b10 net/ipv4/ip_sockglue.c:636
which lock already depends on the new lock.


the existing dependency chain (in reverse order) is:

       lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756
       lock_sock_nested+0xc6/0x120 net/core/sock.c:2511
       lock_sock include/net/sock.h:1404 [inline]
       ip_mc_config+0x147/0x1f0 net/ipv4/devinet.c:565
       inet_rtm_newaddr+0xb1b/0xef0 net/ipv4/devinet.c:868
       rtnetlink_rcv_msg+0x49c/0x650 net/core/rtnetlink.c:4059
       netlink_rcv_skb+0x145/0x370 net/netlink/af_netlink.c:2358
       rtnetlink_rcv+0x2a/0x40 net/core/rtnetlink.c:4065
       netlink_unicast_kernel net/netlink/af_netlink.c:1278 [inline]
       netlink_unicast+0x4d8/0x6f0 net/netlink/af_netlink.c:1304
       netlink_sendmsg+0x795/0xc30 net/netlink/af_netlink.c:1852
       sock_sendmsg_nosec net/socket.c:635 [inline]
       sock_sendmsg+0xcc/0x110 net/socket.c:645
       ___sys_sendmsg+0x6fc/0x840 net/socket.c:1969
       __sys_sendmsg+0xd9/0x190 net/socket.c:2003
       SYSC_sendmsg net/socket.c:2014 [inline]
       SyS_sendmsg+0x2d/0x50 net/socket.c:2010
       do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
       entry_SYSCALL_64_after_swapgs+0x5d/0xdb

       check_prev_add kernel/locking/lockdep.c:1828 [inline]
       check_prevs_add kernel/locking/lockdep.c:1938 [inline]
       validate_chain kernel/locking/lockdep.c:2265 [inline]
       __lock_acquire+0x3019/0x4070 kernel/locking/lockdep.c:3345
       lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756
       __mutex_lock_common kernel/locking/mutex.c:521 [inline]
       mutex_lock_nested+0xc0/0x870 kernel/locking/mutex.c:621
       rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
       mrtsock_destruct+0x3b/0x1e0 net/ipv4/ipmr.c:1231
       ip_ra_control+0x2c2/0x420 net/ipv4/ip_sockglue.c:360
       do_ip_setsockopt.isra.13+0x15ff/0x2b10 net/ipv4/ip_sockglue.c:1137
       ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240
       raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:833
       sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706
       SYSC_setsockopt net/socket.c:1772 [inline]
       SyS_setsockopt+0x166/0x260 net/socket.c:1751
       do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
       entry_SYSCALL_64_after_swapgs+0x5d/0xdb

other info that might help us debug this:

 Possible unsafe locking scenario:

       CPU0                    CPU1
       ----                    ----
  lock(sk_lock-AF_INET);
                               lock(rtnl_mutex);
                               lock(sk_lock-AF_INET);
  lock(rtnl_mutex);

 *** DEADLOCK ***

1 lock held by syz-executor234/3807:
 #0:  (sk_lock-AF_INET){+.+.+.}, at: [<ffffffff83345839>] lock_sock include/net/sock.h:1404 [inline]
 #0:  (sk_lock-AF_INET){+.+.+.}, at: [<ffffffff83345839>] do_ip_setsockopt.isra.13+0x269/0x2b10 net/ipv4/ip_sockglue.c:636

stack backtrace:
CPU: 1 PID: 3807 Comm: syz-executor234 Not tainted 4.9.111-g03c70fe #5
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d96275f8 ffffffff81eb2729 ffffffff8559cef0 ffffffff855e79b0
 ffffffff8559cef0 ffff8801d95888e8 ffff8801d9588000 ffff8801d9627640
 ffffffff814263a4 0000000000000001 00000000d9588000 0000000000000001
Call Trace:
 [<ffffffff81eb2729>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81eb2729>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff814263a4>] print_circular_bug.cold.51+0x1bd/0x27d kernel/locking/lockdep.c:1202
 [<ffffffff81239189>] check_prev_add kernel/locking/lockdep.c:1828 [inline]
 [<ffffffff81239189>] check_prevs_add kernel/locking/lockdep.c:1938 [inline]
 [<ffffffff81239189>] validate_chain kernel/locking/lockdep.c:2265 [inline]
 [<ffffffff81239189>] __lock_acquire+0x3019/0x4070 kernel/locking/lockdep.c:3345
 [<ffffffff8123ac50>] lock_acquire+0x130/0x3e0 kernel/locking/lockdep.c:3756
 [<ffffffff839edf90>] __mutex_lock_common kernel/locking/mutex.c:521 [inline]
 [<ffffffff839edf90>] mutex_lock_nested+0xc0/0x870 kernel/locking/mutex.c:621
 [<ffffffff830b4937>] rtnl_lock+0x17/0x20 net/core/rtnetlink.c:70
 [<ffffffff83484e6b>] mrtsock_destruct+0x3b/0x1e0 net/ipv4/ipmr.c:1231
 [<ffffffff83345472>] ip_ra_control+0x2c2/0x420 net/ipv4/ip_sockglue.c:360
 [<ffffffff83346bcf>] do_ip_setsockopt.isra.13+0x15ff/0x2b10 net/ipv4/ip_sockglue.c:1137
 [<ffffffff8334811a>] ip_setsockopt+0x3a/0xb0 net/ipv4/ip_sockglue.c:1240
 [<ffffffff833ea1e7>] raw_setsockopt+0xb7/0xd0 net/ipv4/raw.c:833
 [<ffffffff8301c75a>] sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:2706
 [<ffffffff83019516>] SYSC_setsockopt net/socket.c:1772 [inline]
 [<ffffffff83019516>] SyS_setsockopt+0x166/0x260 net/socket.c:1751
 [<ffffffff81006316>] do_syscall_64+0x1a6/0x490 arch/x86/entry/common.c:282
 [<ffffffff839f8cd3>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

Crashes (2906):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/07/05 11:06 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 f525fd72 .config console log report syz C ci-android-49-kasan-gce-root
2018/06/26 23:45 https://android.googlesource.com/kernel/common android-4.9 00a0bcbfcfb6 b0294c53 .config console log report syz C ci-android-49-kasan-gce-root
2018/06/18 11:33 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/17 18:58 https://android.googlesource.com/kernel/common android-4.9 a4230beab30a 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/05/30 11:30 https://android.googlesource.com/kernel/common android-4.9 7fd40752c316 2f93b54f .config console log report syz C ci-android-49-kasan-gce-root
2018/05/30 07:47 https://android.googlesource.com/kernel/common android-4.9 7fd40752c316 2f93b54f .config console log report syz C ci-android-49-kasan-gce-root
2018/05/27 21:52 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report syz C ci-android-49-kasan-gce-root
2018/05/17 19:50 https://android.googlesource.com/kernel/common android-4.9 73fdfa38c59d 738d58ad .config console log report syz C ci-android-49-kasan-gce-root
2018/05/14 06:20 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 481f030c .config console log report syz C ci-android-49-kasan-gce-root
2018/04/27 11:45 https://android.googlesource.com/kernel/common android-4.9 71fce1edd26d 73417389 .config console log report syz C ci-android-49-kasan-gce-root
2018/04/23 04:58 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report syz C ci-android-49-kasan-gce-root
2018/04/23 04:18 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report syz C ci-android-49-kasan-gce
2018/04/15 17:43 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report syz C ci-android-49-kasan-gce
2018/04/15 06:58 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report syz C ci-android-49-kasan-gce
2018/03/27 04:53 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 0ca7878b .config console log report syz C ci-android-49-kasan-gce
2018/05/13 00:15 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 e726f42b .config console log report syz ci-android-49-kasan-gce-root
2018/05/12 11:04 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 e726f42b .config console log report syz ci-android-49-kasan-gce-root
2018/05/02 17:00 https://android.googlesource.com/kernel/common android-4.9 1321d4226176 d5b114b4 .config console log report syz ci-android-49-kasan-gce
2018/04/30 12:56 https://android.googlesource.com/kernel/common android-4.9 71fce1edd26d 06db3cec .config console log report syz ci-android-49-kasan-gce-root
2018/04/25 20:35 https://android.googlesource.com/kernel/common android-4.9 8c01d009ed72 73417389 .config console log report syz ci-android-49-kasan-gce-root
2018/04/23 03:44 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report syz ci-android-49-kasan-gce-root
2018/04/22 22:19 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report syz ci-android-49-kasan-gce
2018/04/22 21:03 https://android.googlesource.com/kernel/common android-4.9 ee0bcd679075 d23fcf6c .config console log report syz ci-android-49-kasan-gce-root
2018/04/21 00:05 https://android.googlesource.com/kernel/common android-4.9 13cc54013b24 cc402841 .config console log report syz ci-android-49-kasan-gce-root
2018/04/20 22:12 https://android.googlesource.com/kernel/common android-4.9 13cc54013b24 cc402841 .config console log report syz ci-android-49-kasan-gce-root
2018/04/20 17:53 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 cc402841 .config console log report syz ci-android-49-kasan-gce
2018/04/18 15:48 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 52643b44 .config console log report syz ci-android-49-kasan-gce
2018/04/18 02:35 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report syz ci-android-49-kasan-gce
2018/04/15 03:00 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report syz ci-android-49-kasan-gce
2018/04/14 16:30 https://android.googlesource.com/kernel/common android-4.9 2ba4887f2937 7a67784c .config console log report syz ci-android-49-kasan-gce
2018/03/27 19:11 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 bf5e585c .config console log report syz ci-android-49-kasan-gce
2018/05/02 16:43 https://android.googlesource.com/kernel/common android-4.9 1321d4226176 d5b114b4 .config console log report syz ci-android-49-kasan-gce-386
2018/04/24 04:26 https://android.googlesource.com/kernel/common android-4.9 142d4b530f5a e7e85d36 .config console log report syz ci-android-49-kasan-gce-386
2018/04/24 03:26 https://android.googlesource.com/kernel/common android-4.9 142d4b530f5a e7e85d36 .config console log report syz ci-android-49-kasan-gce-386
2018/04/20 06:16 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 eae05cb0 .config console log report syz ci-android-49-kasan-gce-386
2018/04/18 19:31 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 52643b44 .config console log report syz ci-android-49-kasan-gce-386
2018/04/18 13:16 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 52643b44 .config console log report syz ci-android-49-kasan-gce-386
2018/04/18 02:49 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 b80fd3b5 .config console log report syz ci-android-49-kasan-gce-386
2018/04/15 17:42 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report syz ci-android-49-kasan-gce-386
2018/04/15 06:57 https://android.googlesource.com/kernel/common android-4.9 8683408f8e81 7a67784c .config console log report syz ci-android-49-kasan-gce-386
2018/04/14 16:45 https://android.googlesource.com/kernel/common android-4.9 2ba4887f2937 7a67784c .config console log report syz ci-android-49-kasan-gce-386
2018/04/14 08:31 https://android.googlesource.com/kernel/common android-4.9 cb023581bd03 7a67784c .config console log report syz ci-android-49-kasan-gce-386
2018/04/11 05:38 https://android.googlesource.com/kernel/common android-4.9 f6bec4e8c771 8b8de427 .config console log report syz ci-android-49-kasan-gce-386
2018/03/27 19:28 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 bf5e585c .config console log report syz ci-android-49-kasan-gce-386
2018/03/27 05:54 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 0ca7878b .config console log report syz ci-android-49-kasan-gce-386
2018/08/25 01:51 https://android.googlesource.com/kernel/common android-4.9 6a1b5923548a 9b0f5c75 .config console log report ci-android-49-kasan-gce-root
2018/08/23 13:39 https://android.googlesource.com/kernel/common android-4.9 8dd3fc2ed765 95b5c82b .config console log report ci-android-49-kasan-gce-root
2018/08/21 07:32 https://android.googlesource.com/kernel/common android-4.9 54068d61e7d8 95b5c82b .config console log report ci-android-49-kasan-gce-root
2018/08/06 15:08 https://android.googlesource.com/kernel/common android-4.9 8b21e85d919c 1beb8136 .config console log report ci-android-49-kasan-gce-root
2018/07/20 15:15 https://android.googlesource.com/kernel/common android-4.9 47bbcd6bf8f9 49f35839 .config console log report ci-android-49-kasan-gce-root
2018/07/19 00:46 https://android.googlesource.com/kernel/common android-4.9 47bbcd6bf8f9 49f35839 .config console log report ci-android-49-kasan-gce-root
2018/07/12 23:26 https://android.googlesource.com/kernel/common android-4.9 9e7903954483 06c33b3a .config console log report ci-android-49-kasan-gce-root
2018/07/08 14:19 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/08 12:57 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/08 11:28 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/08 10:17 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/08 09:15 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/08 07:16 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/08 03:01 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 c9a7a4dc .config console log report ci-android-49-kasan-gce-root
2018/07/07 23:40 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 ab89aea9 .config console log report ci-android-49-kasan-gce-root
2018/07/07 22:20 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 ab89aea9 .config console log report ci-android-49-kasan-gce-root
2018/07/07 18:34 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 ab89aea9 .config console log report ci-android-49-kasan-gce-root
2018/07/07 17:14 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 ab89aea9 .config console log report ci-android-49-kasan-gce-root
2018/07/07 15:26 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 ab89aea9 .config console log report ci-android-49-kasan-gce-root
2018/07/07 14:23 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/07 13:11 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/07 12:08 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/07 10:02 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/07 08:38 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/07 06:56 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/07 02:54 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 6c0c0099 .config console log report ci-android-49-kasan-gce-root
2018/07/07 02:08 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 9636bc93 .config console log report ci-android-49-kasan-gce-root
2018/07/07 00:12 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 9636bc93 .config console log report ci-android-49-kasan-gce-root
2018/07/06 21:54 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 9636bc93 .config console log report ci-android-49-kasan-gce-root
2018/07/06 20:53 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 9636bc93 .config console log report ci-android-49-kasan-gce-root
2018/07/06 14:48 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 9636bc93 .config console log report ci-android-49-kasan-gce-root
2018/07/06 08:40 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 18403e65 .config console log report ci-android-49-kasan-gce-root
2018/07/06 06:44 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/06 05:10 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/06 04:09 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/06 02:57 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/06 01:31 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/05 23:12 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/05 21:46 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/05 20:09 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/05 17:56 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/05 16:44 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 d3b2a0e2 .config console log report ci-android-49-kasan-gce-root
2018/07/05 14:59 https://android.googlesource.com/kernel/common android-4.9 03c70feafdb2 f525fd72 .config console log report ci-android-49-kasan-gce-root
2018/05/14 12:00 https://android.googlesource.com/kernel/common android-4.9 c2f9bce9fee8 d131f1b9 .config console log report ci-android-49-kasan-gce
2018/03/26 17:42 https://android.googlesource.com/kernel/common android-4.9 dd1e37e64645 0ca7878b .config console log report ci-android-49-kasan-gce
2018/05/04 07:30 https://android.googlesource.com/kernel/common android-4.9 0e25e2cab07a 9ce14f4b .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.