syzbot


WARNING: locking bug in do_ipv6_setsockopt

Status: upstream: reported syz repro on 2019/07/24 05:37
Reported-by: syzbot+8890bb45d4f6cf5538c3@syzkaller.appspotmail.com
First crash: 1798d, last: 1472d
Fix bisection the fix commit could be any of (bisect log):
  ff33472c282e Linux 4.14.134
  56dfe6252c68 Linux 4.14.188
  
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 962d 1860d 0/27 closed as dup on 2021/01/13 13:16
linux-4.19 WARNING: locking bug in do_ipv6_setsockopt syz error 5 477d 1798d 0/1 upstream: reported syz repro on 2019/07/24 08:25
Last patch testing requests (2)
Created Duration User Patch Repo Result
2023/01/25 15:32 10m retest repro linux-4.14.y report log
2022/09/07 20:27 13m retest repro linux-4.14.y report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2020/07/13 15:14 31m bisect fix linux-4.14.y job log (2)
2020/06/13 13:06 24m bisect fix linux-4.14.y job log (0) log
2020/05/14 12:37 28m bisect fix linux-4.14.y job log (0) log
2020/04/14 12:10 26m bisect fix linux-4.14.y job log (0) log
2020/03/15 08:12 28m bisect fix linux-4.14.y job log (0) log
2020/02/14 07:21 33m bisect fix linux-4.14.y job log (0) log
2020/01/15 06:36 30m bisect fix linux-4.14.y job log (0) log
2019/12/16 06:08 28m bisect fix linux-4.14.y job log (0) log

Sample crash report:
l2tp_core: tunl 4: sockfd_lookup(fd=5) returned -9
l2tp_core: tunl 4: sockfd_lookup(fd=5) returned -9
------------[ cut here ]------------
WARNING: CPU: 0 PID: 26226 at kernel/locking/lockdep.c:722 arch_local_save_flags arch/x86/include/asm/paravirt.h:773 [inline]
WARNING: CPU: 0 PID: 26226 at kernel/locking/lockdep.c:722 arch_local_save_flags arch/x86/include/asm/paravirt.h:771 [inline]
WARNING: CPU: 0 PID: 26226 at kernel/locking/lockdep.c:722 look_up_lock_class kernel/locking/lockdep.c:713 [inline]
WARNING: CPU: 0 PID: 26226 at kernel/locking/lockdep.c:722 register_lock_class+0xd80/0x1730 kernel/locking/lockdep.c:756
kobject: 'loop5' (ffff8880a4aed3a0): kobject_uevent_env
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 26226 Comm: syz-executor.1 Not tainted 4.14.134 #29
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x138/0x19c lib/dump_stack.c:53
 panic+0x1f2/0x426 kernel/panic.c:182
 __warn.cold+0x2f/0x36 kernel/panic.c:546
 report_bug+0x216/0x254 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:960
RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:722 [inline]
RIP: 0010:register_lock_class+0xd80/0x1730 kernel/locking/lockdep.c:756
RSP: 0018:ffff888096a4f610 EFLAGS: 00010083
RAX: dffffc0000000000 RBX: ffffffff891a66c0 RCX: ffff8880895378e0
RDX: 1ffff110112a6f1f RSI: 1ffffffff11a50d6 RDI: ffff8880895378f8
RBP: ffff888096a4f6d0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff88cbd5a0 R11: 0000000000000000 R12: ffffffff88d28690
R13: 1ffff11012d49ecd R14: ffffffff86eec1c0 R15: 0000000000000000
kobject: 'loop5' (ffff8880a4aed3a0): fill_kobj_path: path = '/devices/virtual/block/loop5'
 __lock_acquire+0x147/0x45e0 kernel/locking/lockdep.c:3374
kobject: 'loop5' (ffff8880a4aed3a0): kobject_uevent_env
 lock_acquire+0x16f/0x430 kernel/locking/lockdep.c:3991
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
 _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:176
kobject: 'loop5' (ffff8880a4aed3a0): fill_kobj_path: path = '/devices/virtual/block/loop5'
 spin_lock_bh include/linux/spinlock.h:322 [inline]
 lock_sock_nested+0x3f/0x110 net/core/sock.c:2757
 lock_sock include/net/sock.h:1462 [inline]
 do_ipv6_setsockopt.isra.0+0x20c/0x36d0 net/ipv6/ipv6_sockglue.c:167
kobject: 'loop0' (ffff8880a498c6a0): kobject_uevent_env
kobject: 'loop0' (ffff8880a498c6a0): fill_kobj_path: path = '/devices/virtual/block/loop0'
kobject: 'loop5' (ffff8880a4aed3a0): kobject_uevent_env
 ipv6_setsockopt+0xd4/0x130 net/ipv6/ipv6_sockglue.c:925
 udpv6_setsockopt+0x4e/0x90 net/ipv6/udp.c:1459
 sock_common_setsockopt+0x94/0xd0 net/core/sock.c:2963
 SYSC_setsockopt net/socket.c:1865 [inline]
 SyS_setsockopt+0x13c/0x210 net/socket.c:1844
kobject: 'loop5' (ffff8880a4aed3a0): fill_kobj_path: path = '/devices/virtual/block/loop5'
 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292
kobject: 'loop2' (ffff8880a4a369a0): kobject_uevent_env
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x459829
RSP: 002b:00007fb21353ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000459829
RDX: 0000000000000023 RSI: 0000000000000029 RDI: 0000000000000005
RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb21353f6d4
R13: 00000000004ced30 R14: 00000000004dd678 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/24 04:36 linux-4.14.y ff33472c282e de453f34 .config console log report syz ci2-linux-4-14
* Struck through repros no longer work on HEAD.