syzbot


WARNING: locking bug in do_ipv6_setsockopt

Status: closed as dup on 2021/01/13 13:16
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+f28170ca1ee366e97283@syzkaller.appspotmail.com
First crash: 2041d, last: 1141d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: failed (error log, bisect log)
  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING: locking bug in do_ipv6_getsockopt net syz done error 3 740d 1999d
Discussions (2)
Title Replies (including bot) Last reply
Reminder: 2 open syzbot bugs in "net/l2tp" subsystem 1 (1) 2019/07/24 02:45
WARNING: locking bug in do_ipv6_setsockopt 0 (1) 2019/05/22 15:58
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING: locking bug in do_ipv6_setsockopt syz inconclusive 1 1652d 1977d 0/1 upstream: reported syz repro on 2019/07/24 05:37
linux-4.19 WARNING: locking bug in do_ipv6_setsockopt syz error 5 657d 1977d 0/1 upstream: reported syz repro on 2019/07/24 08:25
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2019/12/18 10:53 19m bisect fix upstream error job log
2019/08/23 07:19 33m bisect fix upstream OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8602 at kernel/locking/lockdep.c:897 look_up_lock_class+0x6a/0xd0 kernel/locking/lockdep.c:897
Modules linked in:
CPU: 0 PID: 8602 Comm: syz-executor.0 Not tainted 5.14.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:look_up_lock_class+0x6a/0xd0 kernel/locking/lockdep.c:897
Code: 85 c0 75 0a eb 57 48 8b 00 48 85 c0 74 4f 48 39 70 40 75 f2 48 8b 4f 18 48 39 88 b0 00 00 00 74 0b 48 81 3f c0 f3 ed 8e 74 02 <0f> 0b 5d c3 9c 5a 80 e6 02 74 c2 e8 76 e6 a8 fa 85 c0 74 1f 8b 05
RSP: 0018:ffffc90009737788 EFLAGS: 00010006
RAX: ffffffff8fd27e00 RBX: ffffffff90229760 RCX: ffffffff8aa4db20
RDX: 0000000000000046 RSI: ffffffff905a9b40 RDI: ffff8880319f7860
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880319f7860
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fe704e50700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe704e50718 CR3: 000000003146e000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 register_lock_class+0xb7/0x10c0 kernel/locking/lockdep.c:1246
 __lock_acquire+0x105/0x54a0 kernel/locking/lockdep.c:4894
 lock_acquire kernel/locking/lockdep.c:5625 [inline]
 lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175
 spin_lock_bh include/linux/spinlock.h:359 [inline]
 lock_sock_nested+0x40/0x120 net/core/sock.c:3162
 lock_sock include/net/sock.h:1613 [inline]
 do_ipv6_setsockopt.constprop.0+0x2e8/0x4230 net/ipv6/ipv6_sockglue.c:418
 ipv6_setsockopt+0xd6/0x180 net/ipv6/ipv6_sockglue.c:1003
 udpv6_setsockopt+0x76/0xc0 net/ipv6/udp.c:1646
 __sys_setsockopt+0x2db/0x610 net/socket.c:2159
 __do_sys_setsockopt net/socket.c:2170 [inline]
 __se_sys_setsockopt net/socket.c:2167 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:2167
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665e9
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:00007fe704e50188 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665e9
RDX: 000000000000003b RSI: 0000000000000029 RDI: 0000000000000005
RBP: 00000000004bfcc4 R08: 0000000000000008 R09: 0000000000000000
R10: 0000000020000380 R11: 0000000000000246 R12: 000000000056c038
R13: 00007ffff563f67f R14: 00007fe704e50300 R15: 0000000000022000

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/08 18:25 upstream 85a90500f9a1 6972b106 .config console log report syz ci-upstream-kasan-gce-selinux-root WARNING: locking bug in do_ipv6_setsockopt
2021/02/13 16:49 upstream c6d8570e4d64 98682e5e .config console log report syz ci-upstream-kasan-gce WARNING: locking bug in do_ipv6_setsockopt
2020/02/29 07:17 upstream f8788d86ab28 59b57593 .config console log report syz ci-upstream-kasan-gce-root
2019/07/24 07:19 upstream c6dd78fcb8ee de453f34 .config console log report syz ci-upstream-kasan-gce-smack-root
2019/06/21 06:10 upstream abf02e2964b3 34bf9440 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/06/21 05:23 upstream abf02e2964b3 34bf9440 .config console log report syz ci-upstream-kasan-gce-root
2019/06/21 00:40 upstream abf02e2964b3 34bf9440 .config console log report syz ci-upstream-kasan-gce
2019/06/04 08:01 upstream 788a024921c4 ce07a7ae .config console log report syz ci-upstream-kasan-gce
2019/06/01 07:04 upstream 3ab4436f688c 53c81ea5 .config console log report syz ci-upstream-kasan-gce-root
2019/05/31 02:43 upstream bec7550cca10 d9aaf3c2 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/05/22 00:41 upstream 5bdd9ad875b6 13427bd9 .config console log report syz ci-upstream-kasan-gce-selinux-root
2019/05/31 02:55 upstream bec7550cca10 d9aaf3c2 .config console log report syz ci-upstream-kasan-gce-386
2019/05/31 00:46 net-old 4b280531e84c d9aaf3c2 .config console log report syz ci-upstream-net-this-kasan-gce
2019/05/23 06:55 net-old 54dee406374c 84b9d384 .config console log report syz ci-upstream-net-this-kasan-gce
2019/06/20 21:03 net-next-old dca73a65a683 34bf9440 .config console log report syz ci-upstream-net-kasan-gce
2019/06/11 05:07 linux-next 3f310e51ceb1 0159583c .config console log report syz ci-upstream-linux-next-kasan-gce-root
2021/11/06 04:18 net-next-old cc0356d6a02e 4c1be0be .config console log report info ci-upstream-net-kasan-gce WARNING: locking bug in do_ipv6_setsockopt
2021/10/01 06:28 net-next-old 69508d43334e 1d849ab4 .config console log report info ci-upstream-net-kasan-gce WARNING: locking bug in do_ipv6_setsockopt
2020/09/22 19:30 upstream 98477740630f 3e8f6c27 .config console log report info ci-upstream-kasan-gce
2020/09/22 13:06 upstream 98477740630f 9e1fa68e .config console log report info ci-upstream-kasan-gce-root
2020/09/22 12:43 upstream 98477740630f 9e1fa68e .config console log report info ci-upstream-kasan-gce
2020/09/20 21:17 upstream 325d0eab4f31 9564d2e9 .config console log report info ci-upstream-kasan-gce
2020/08/30 23:06 upstream 1127b219ce94 d5a3ae1f .config console log report ci-upstream-kasan-gce
2019/07/04 17:37 upstream 550d1f5bda33 55565fa0 .config console log report ci-upstream-kasan-gce
2019/06/20 19:41 upstream abf02e2964b3 34bf9440 .config console log report ci-upstream-kasan-gce
2019/07/20 00:21 net-old 8d650cdedaab 1656845f .config console log report ci-upstream-net-this-kasan-gce
2019/10/30 10:23 net-next-old 749234419aee 5ea87a66 .config console log report ci-upstream-net-kasan-gce
2019/06/30 21:43 net-next-old f072218cca5b 699d6448 .config console log report ci-upstream-net-kasan-gce
2019/10/15 16:22 linux-next 0e9d28bc6c81 b5268b89 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.