syzbot


WARNING: locking bug in selinux_netlbl_socket_connect

Status: upstream: reported syz repro on 2019/08/24 07:50
Reported-by: syzbot+02e7843d4a2e22d8e246@syzkaller.appspotmail.com
First crash: 1946d, last: 1533d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING: locking bug in selinux_netlbl_socket_connect selinux syz done error 10 713d 1917d 0/28 auto-obsoleted due to no activity on 2023/05/08 04:25

Sample crash report:
IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
WARNING: CPU: 1 PID: 14826 at kernel/locking/lockdep.c:698 arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline]
WARNING: CPU: 1 PID: 14826 at kernel/locking/lockdep.c:698 look_up_lock_class kernel/locking/lockdep.c:689 [inline]
WARNING: CPU: 1 PID: 14826 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: 1 PID: 14826 Comm: syz-executor.0 Not tainted 4.19.142-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 59 99 52 0a 85 c0 0f 85 17 ff ff ff 48 c7 c6 80 8f 8a 87 48 c7 c7 40 8d 8a 87 e8 79 d5 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 fc
RSP: 0018:ffff8880891679f8 EFLAGS: 00010087
RAX: dffffc0000000000 RBX: ffff8880a400e820 RCX: 0000000000000000
RDX: 1ffff11014801d07 RSI: 0000000000000000 RDI: ffff8880a400e838
RBP: 0000000000000000 R08: 0000000000000000 R09: 1ffff1101122cf47
R10: ffffffff8b916aa0 R11: 0000000000000000 R12: ffffffff8b4a6750
R13: ffffffff882aa3a0 R14: 1ffff1101122cf47 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]
 lock_sock_nested+0x3b/0x110 net/core/sock.c:2864
 lock_sock include/net/sock.h:1510 [inline]
 selinux_netlbl_socket_connect+0x18/0x40 security/selinux/netlabel.c:621
 selinux_socket_connect+0x65/0x80 security/selinux/hooks.c:4877
 security_socket_connect+0x50/0xb0 security/security.c:1398
 __sys_connect+0x1b1/0x2c0 net/socket.c:1659
 __do_sys_connect net/socket.c:1674 [inline]
 __se_sys_connect net/socket.c:1671 [inline]
 __x64_sys_connect+0x6f/0xb0 net/socket.c:1671
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5b9
Code: 5d 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f45ca5c1c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 0000000000002300 RCX: 000000000045d5b9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 000000000118d020 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec
R13: 00007ffd554f2bef R14: 00007f45ca5c29c0 R15: 000000000118cfec
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/01 21:38 linux-4.19.y f6d5cb9e2c06 abf9ba4f .config console log report syz ci2-linux-4-19
2020/04/03 03:39 linux-4.19.y dda0e2920330 a34e2c33 .config console log report syz ci2-linux-4-19
2020/03/23 10:37 linux-4.19.y 14cfdbd39e31 78267cec .config console log report syz ci2-linux-4-19
2019/09/14 01:44 linux-4.19.y ee809c7e0895 32d59357 .config console log report syz ci2-linux-4-19
2020/10/09 18:47 linux-4.19.y a1b977b49b66 fa79ed2a .config console log report info ci2-linux-4-19
2020/08/02 18:18 linux-4.19.y 13af6c74b14a 96dd3623 .config console log report ci2-linux-4-19
2020/07/27 18:35 linux-4.19.y 20b3a3dfdf6c cb93dc6a .config console log report ci2-linux-4-19
2020/06/19 02:47 linux-4.19.y 3fc898571b97 bc258b50 .config console log report ci2-linux-4-19
2020/02/26 09:31 linux-4.19.y f25804f38984 4f588111 .config console log report ci2-linux-4-19
2019/12/07 08:21 linux-4.19.y fb683b5e3f53 85f26751 .config console log report ci2-linux-4-19
2019/09/14 00:53 linux-4.19.y ee809c7e0895 32d59357 .config console log report ci2-linux-4-19
2019/09/10 05:38 linux-4.19.y e7d2672c66e4 a60cb4cd .config console log report ci2-linux-4-19
2019/08/24 06:49 linux-4.19.y a5aa80588fcd 78ded196 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.