syzbot


WARNING: locking bug in do_ipv6_setsockopt

Status: upstream: reported syz repro on 2019/07/24 08:25
Reported-by: syzbot+2613d182d8504b952792@syzkaller.appspotmail.com
First crash: 1936d, last: 616d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in do_ipv6_setsockopt net syz error error 29 1100d 1999d 0/28 closed as dup on 2021/01/13 13:16
linux-4.14 WARNING: locking bug in do_ipv6_setsockopt syz inconclusive 1 1611d 1936d 0/1 upstream: reported syz repro on 2019/07/24 05:37
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2020/01/15 07:18 19m bisect fix linux-4.19.y error job log
2019/12/16 06:40 37m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
WARNING: CPU: 0 PID: 30244 at kernel/locking/lockdep.c:698 arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
WARNING: CPU: 0 PID: 30244 at kernel/locking/lockdep.c:698 look_up_lock_class kernel/locking/lockdep.c:689 [inline]
WARNING: CPU: 0 PID: 30244 at kernel/locking/lockdep.c:698 register_lock_class+0x77b/0x11c0 kernel/locking/lockdep.c:748
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 30244 Comm: syz-executor.2 Not tainted 4.19.166-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2fe lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x61 kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:698 [inline]
RIP: 0010:register_lock_class+0x77b/0x11c0 kernel/locking/lockdep.c:748
Code: 8b 05 39 96 ea 0b 85 c0 0f 85 17 ff ff ff 48 c7 c6 40 1b 6a 88 48 c7 c7 00 19 6a 88 e8 59 ce ec ff 0f 0b e9 fd fe ff ff 0f 0b <0f> 0b e9 b3 fa ff ff 48 8d 70 01 48 69 c0 50 01 00 00 48 89 35 dc
RSP: 0018:ffff88807e157600 EFLAGS: 00010087
RAX: dffffc0000000000 RBX: ffff88809b2110e0 RCX: 0000000000000000
RDX: 1ffff1101364221f RSI: 0000000000000000 RDI: ffff88809b2110f8
RBP: 0000000000000000 R08: 0000000000000000 R09: 1ffff1100fc2aec8
R10: ffffffff8d23b720 R11: 0000000000000000 R12: ffffffff8cdcbfa0
R13: ffffffff894bb4a0 R14: 1ffff1100fc2aec8 R15: 0000000000000000
 __lock_acquire+0x17d/0x3ff0 kernel/locking/lockdep.c:3303
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:168
 spin_lock_bh include/linux/spinlock.h:334 [inline]
 release_sock+0x1b/0x1b0 net/core/sock.c:2879
 do_ipv6_setsockopt.constprop.0+0x504/0x3ed0 net/ipv6/ipv6_sockglue.c:916
 ipv6_setsockopt+0xb9/0x160 net/ipv6/ipv6_sockglue.c:940
 udpv6_setsockopt+0x5d/0xa0 net/ipv6/udp.c:1501
 __sys_setsockopt+0x14d/0x240 net/socket.c:1901
 __do_sys_setsockopt net/socket.c:1912 [inline]
 __se_sys_setsockopt net/socket.c:1909 [inline]
 __x64_sys_setsockopt+0xba/0x150 net/socket.c:1909
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45e219
Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8a2f6e5c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 000000000045e219
RDX: 000000000000003b RSI: 0000000000000029 RDI: 0000000000000005
RBP: 000000000119c078 R08: 0000000000000008 R09: 0000000000000000
R10: 0000000020000380 R11: 0000000000000246 R12: 000000000119c034
R13: 00007ffe5c7b10df R14: 00007f8a2f6e69c0 R15: 000000000119c034
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/10 12:55 linux-4.19.y 610bdbf6a174 2c1f2513 .config console log report syz ci2-linux-4-19
2020/12/26 11:00 linux-4.19.y 13d2ce42de8c 821e0b09 .config console log report syz ci2-linux-4-19
2019/07/24 07:24 linux-4.19.y be9b6782a9eb de453f34 .config console log report syz ci2-linux-4-19
2023/03/05 15:10 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING: locking bug in do_ipv6_setsockopt
2021/02/08 19:49 linux-4.19.y 811218eceeaa 2ce644fc .config console log report info ci2-linux-4-19 WARNING: locking bug in do_ipv6_setsockopt
* Struck through repros no longer work on HEAD.