WARNING: locking bug in inet_dgram_connect (2)

Status: auto-obsoleted due to no activity on 2023/05/12 08:46
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+02446910ced9f8b60c06@syzkaller.appspotmail.com
First crash: 2409d, last: 1415d
Cause bisection: the cause commit could be any of (bisect log):
commit 9211bfbff80a7604273086fec5685efcdc10be2b
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:17:00 2019 +0000

  netfilter: add missing IS_ENABLED(CONFIG_BRIDGE_NETFILTER) checks to header-file.

commit 47e640af2e492cc28778dd6f894d50313f7fba75
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:17:01 2019 +0000

  netfilter: add missing IS_ENABLED(CONFIG_NF_TABLES) check to header-file.

commit a1b2f04ea527397fcacacd09e0d690927feef429
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:16:59 2019 +0000

  netfilter: add missing includes to a number of header-files.

commit 0abc8bf4f2842e409926096f0fa009b468cbd855
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:17:02 2019 +0000

  netfilter: add missing IS_ENABLED(CONFIG_NF_CONNTRACK) checks to some header-files.

commit bd96b4c75675e616eefef6d85d163530eef9c5e5
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:16:58 2019 +0000

  netfilter: inline four headers files into another one.

commit 43dd16efc7f235f153804500a4363769bd2276fc
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date: Thu Aug 1 12:09:26 2019 +0000

  netfilter: nf_tables: store data in offload context registers

commit 78458e3e08cda2aacaec9fde8c295dfc2f88618a
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:17:03 2019 +0000

  netfilter: add missing IS_ENABLED(CONFIG_NETFILTER) checks to some header-files.

commit 20a9379d9a03ee0712d225035308973ecc5f6783
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:17:04 2019 +0000

  netfilter: remove "#ifdef __KERNEL__" guards from some headers.

commit bd8699e9e29287b5571b32b68c3dcd05985fa9b1
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Date: Tue Jul 30 11:32:01 2019 +0000

  netfilter: nft_bitwise: add offload support

commit 2a475c409fe81a76fb26a6b023509d648237bbe6
Author: Jeremy Sowden <jeremy@azazel.net>
Date: Wed Aug 7 14:17:05 2019 +0000

  kbuild: remove all netfilter headers from header-test blacklist.

commit 7e59b3fea2a2510b52761c20ccc71d3e9f6b7db8
Author: yangxingwu <xingwu.yang@gmail.com>
Date: Tue Jul 16 02:13:01 2019 +0000

  netfilter: remove unnecessary spaces

commit 1b90af292e71b20d03b837d39406acfbdc5d4b2a
Author: Junwei Hu <hujunwei4@huawei.com>
Date: Wed Jul 31 16:03:30 2019 +0000

  ipvs: Improve robustness to the ipvs sysctl

commit 5785cf15fd74ec3b1a076fd39bc67382a8455fe7
Author: Valdis Klētnieks <valdis.kletnieks@vt.edu>
Date: Thu Aug 8 05:28:08 2019 +0000

  netfilter: nf_tables: add missing prototypes.

commit 0a30ba509fdeea740bedb81ce3bee4f74a759654
Author: Valdis Klētnieks <valdis.kletnieks@vt.edu>
Date: Thu Aug 8 05:43:22 2019 +0000

  netfilter: nf_nat_proto: make tables static

commit e84fb4b3666dabd3917952fb33588daa891a6ad3
Author: Matteo Croce <mcroce@redhat.com>
Date: Tue Jul 23 01:23:03 2019 +0000

  netfilter: conntrack: use shared sysctl constants

commit 105333435b4f3b21ffc325f32fae17719310db64
Author: Florian Westphal <fw@strlen.de>
Date: Mon Aug 12 11:40:04 2019 +0000

  netfilter: connlabels: prefer static lock initialiser

commit 8c0bb7873815bf8c3c4dfb24e8ebf4fefb4c35d2
Author: Fernando Fernandez Mancera <ffmancera@riseup.net>
Date: Wed Jul 10 10:05:59 2019 +0000

  netfilter: synproxy: rename mss synproxy_options field

commit c162610c7db2e9611a7b3ec806f9c97fcfec0b0b
Author: Jakub Kicinski <jakub.kicinski@netronome.com>
Date: Wed Aug 14 01:22:57 2019 +0000

  Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
Fix bisection: failed (error log, bisect log)
▶ ▼ Discussions (1)
Title Replies (including bot) Last reply
WARNING: locking bug in inet_dgram_connect (2) 0 (1) 2020/04/27 09:08
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in inet_dgram_connect net 4 1 2587d 2582d 0/30 auto-closed as invalid on 2020/01/26 13:01
▶ ▼ Last patch testing requests (6)
Created Duration User Patch Repo Result
2023/04/22 09:59 18m retest repro upstream no crash log
2023/04/22 09:59 18m retest repro upstream no crash log
2023/04/22 09:59 18m retest repro upstream no crash log
2023/04/22 09:59 18m retest repro upstream no crash log
2023/01/11 20:32 13m retest repro upstream report log
2022/10/03 18:30 11m retest repro upstream report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 18350 at kernel/locking/lockdep.c:898 look_up_lock_class+0x110/0x120 kernel/locking/lockdep.c:888
Modules linked in:
CPU: 1 PID: 18350 Comm: syz-executor.0 Not tainted 5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:look_up_lock_class+0x110/0x120 kernel/locking/lockdep.c:897
Code: 31 db 85 c0 74 af 83 3d d5 89 e1 03 00 75 a6 31 db 48 c7 c7 c0 ec 4e 8a 48 c7 c6 00 ed 4e 8a 31 c0 e8 94 1e 53 f7 0f 0b eb 8b <0f> 0b eb 87 e8 c7 fa ff ff 0f 1f 80 00 00 00 00 55 53 bd 01 00 00
RSP: 0018:ffffc9000485f8f8 EFLAGS: 00010006
RAX: ffffffff8f827ae0 RBX: ffffffff8f6ad5a0 RCX: 0000000000000527
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801a4270a0
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: ffffed10173a64a2 R11: 0000000000000000 R12: ffff88801a4270a0
R13: ffffc9000485f9c0 R14: 1ffff9200090bf30 R15: dffffc0000000000
FS:  00007eff4b471700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000004 CR3: 0000000014ffb000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 register_lock_class+0x110/0x1390 kernel/locking/lockdep.c:1246
 __lock_acquire+0x149/0x2b00 kernel/locking/lockdep.c:4894
 lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5625
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 lock_sock_nested+0x6e/0x100 net/core/sock.c:3206
 lock_sock include/net/sock.h:1615 [inline]
 inet_autobind net/ipv4/af_inet.c:180 [inline]
 inet_dgram_connect+0x13b/0x370 net/ipv4/af_inet.c:578
 __sys_connect_file net/socket.c:1896 [inline]
 __sys_connect+0x38a/0x410 net/socket.c:1913
 __do_sys_connect net/socket.c:1923 [inline]
 __se_sys_connect net/socket.c:1920 [inline]
 __x64_sys_connect+0x76/0x80 net/socket.c:1920
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7eff4bd1ca39
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007eff4b471188 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00007eff4be30020 RCX: 00007eff4bd1ca39
RDX: 000000000000001c RSI: 0000000020000040 RDI: 0000000000000005
RBP: 00007eff4bd76e8f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffc30e3daf R14: 00007eff4b471300 R15: 0000000000022000

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/29 17:55 upstream 411a44c24a56 2353a3ec .config console log report syz ci-upstream-kasan-gce-smack-root WARNING: locking bug in inet_dgram_connect
2021/05/09 21:54 upstream b741596468b0 bc5434be .config console log report syz ci-upstream-kasan-gce-smack-root WARNING: locking bug in inet_dgram_connect
2021/02/14 02:30 upstream ac30d8ce28d6 98682e5e .config console log report syz ci-upstream-kasan-gce-smack-root WARNING: locking bug in inet_dgram_connect
2020/04/23 09:03 upstream c578ddb39e56 2e44d63e .config console log report syz ci-upstream-kasan-gce-smack-root
2021/11/07 05:36 upstream 512b7931ad05 4c1be0be .config console log report info ci-upstream-kasan-gce-smack-root WARNING: locking bug in inet_dgram_connect
2021/11/05 04:35 upstream 7ddb58cb0eca 4c1be0be .config console log report info ci-upstream-kasan-gce-smack-root WARNING: locking bug in inet_dgram_connect
2020/10/03 23:44 upstream 22fbc037cd32 1a3f9408 .config console log report info ci-upstream-kasan-gce-smack-root
2020/05/08 10:29 upstream 6e7f2eacf098 6c70a1c2 .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.