netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* WARNING: locking bug in do_ipv6_setsockopt
@ 2019-05-22 15:58 syzbot
  0 siblings, 0 replies; 2+ messages in thread
From: syzbot @ 2019-05-22 15:58 UTC (permalink / raw)
  To: davem, kuznet, linux-kernel, netdev, syzkaller-bugs, yoshfuji

Hello,

syzbot found the following crash on:

HEAD commit:    5bdd9ad8 Merge tag 'kbuild-fixes-v5.2' of git://git.kernel..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=13e8856ca00000
kernel config:  https://syzkaller.appspot.com/x/.config?x=fc045131472947d7
dashboard link: https://syzkaller.appspot.com/bug?extid=f28170ca1ee366e97283
compiler:       gcc (GCC) 9.0.0 20181231 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=10a61080a00000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+f28170ca1ee366e97283@syzkaller.appspotmail.com

WARNING: CPU: 1 PID: 19781 at kernel/locking/lockdep.c:734  
arch_local_save_flags arch/x86/include/asm/paravirt.h:762 [inline]
WARNING: CPU: 1 PID: 19781 at kernel/locking/lockdep.c:734  
arch_local_save_flags arch/x86/include/asm/paravirt.h:760 [inline]
WARNING: CPU: 1 PID: 19781 at kernel/locking/lockdep.c:734  
look_up_lock_class kernel/locking/lockdep.c:725 [inline]
WARNING: CPU: 1 PID: 19781 at kernel/locking/lockdep.c:734  
register_lock_class+0xe10/0x1860 kernel/locking/lockdep.c:1078
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 19781 Comm: syz-executor.2 Not tainted 5.2.0-rc1+ #2
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+0x172/0x1f0 lib/dump_stack.c:113
  panic+0x2cb/0x744 kernel/panic.c:218
  __warn.cold+0x20/0x4d kernel/panic.c:575
  report_bug+0x263/0x2b0 lib/bug.c:186
  fixup_bug arch/x86/kernel/traps.c:179 [inline]
  fixup_bug arch/x86/kernel/traps.c:174 [inline]
  do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
  do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
  invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:986
RIP: 0010:look_up_lock_class kernel/locking/lockdep.c:734 [inline]
RIP: 0010:register_lock_class+0xe10/0x1860 kernel/locking/lockdep.c:1078
Code: 00 48 89 da 4d 8b 76 c0 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80  
3c 02 00 0f 85 23 07 00 00 4c 89 33 e9 e3 f4 ff ff 0f 0b <0f> 0b e9 ea f3  
ff ff 44 89 e0 4c 8b 95 50 ff ff ff 83 c0 01 4c 8b
RSP: 0018:ffff88807e527568 EFLAGS: 00010083
RAX: dffffc0000000000 RBX: ffff888087f720e0 RCX: 0000000000000000
RDX: 1ffff11010fee41f RSI: 0000000000000000 RDI: ffff888087f720f8
RBP: ffff88807e527630 R08: 1ffff1100fca4eb5 R09: ffffffff8a659d40
R10: ffffffff8a2e8440 R11: 0000000000000000 R12: ffffffff8a3249a0
R13: 0000000000000000 R14: 0000000000000000 R15: ffffffff88022ba0
  __lock_acquire+0x116/0x5490 kernel/locking/lockdep.c:3673
  lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:4302
  __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline]
  _raw_spin_lock_bh+0x33/0x50 kernel/locking/spinlock.c:175
  spin_lock_bh include/linux/spinlock.h:343 [inline]
  lock_sock_nested+0x41/0x120 net/core/sock.c:2917
  lock_sock include/net/sock.h:1525 [inline]
  do_ipv6_setsockopt.isra.0+0x27a/0x4100 net/ipv6/ipv6_sockglue.c:167
  ipv6_setsockopt+0xf6/0x170 net/ipv6/ipv6_sockglue.c:946
  udpv6_setsockopt+0x68/0xb0 net/ipv6/udp.c:1571
  sock_common_setsockopt+0x94/0xd0 net/core/sock.c:3130
  __sys_setsockopt+0x17a/0x280 net/socket.c:2078
  __do_sys_setsockopt net/socket.c:2089 [inline]
  __se_sys_setsockopt net/socket.c:2086 [inline]
  __x64_sys_setsockopt+0xbe/0x150 net/socket.c:2086
  do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459279
Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007efc76669c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000459279
RDX: 0000000000000023 RSI: 0000000000000029 RDI: 0000000000000003
RBP: 000000000075c060 R08: 00000000000000e8 R09: 0000000000000000
R10: 00000000200002c0 R11: 0000000000000246 R12: 00007efc7666a6d4
R13: 00000000004ce020 R14: 00000000004dc648 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
syzbot can test patches for this bug, for details see:
https://goo.gl/tpsmEJ#testing-patches

^ permalink raw reply	[flat|nested] 2+ messages in thread

* WARNING: locking bug in do_ipv6_setsockopt
@ 2021-11-02  7:56 Hao Sun
  0 siblings, 0 replies; 2+ messages in thread
From: Hao Sun @ 2021-11-02  7:56 UTC (permalink / raw)
  To: davem, yoshfuji, dsahern, kuba, netdev, Linux Kernel Mailing List

Hello,

When using Healer to fuzz the latest Linux kernel, the following crash
was triggered.

HEAD commit: f25a5481af12 Merge tag 'libnvdimm-fixes-5.15-rc8'
git tree: upstream
console output: https://paste.ubuntu.com/p/nk3R6rmF8j/
kernel config: https://paste.ubuntu.com/p/ygjjwKn86x/

Sorry, I don't have a reproducer for this crash, hope the symbolized
report can help.
If you fix this issue, please add the following tag to the commit:
Reported-by: Hao Sun <sunhao.th@gmail.com>

------------[ cut here ]------------
WARNING: CPU: 0 PID: 7252 at kernel/locking/lockdep.c:897
look_up_lock_class.isra.0+0x6c/0xe0 kernel/locking/lockdep.c:897
Modules linked in:
CPU: 0 PID: 7252 Comm: syz-executor Not tainted 5.15.0-rc7+ #5
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:look_up_lock_class.isra.0+0x6c/0xe0 kernel/locking/lockdep.c:897
Code: 48 85 c0 75 0a eb 59 48 8b 00 48 85 c0 74 51 48 3b 50 40 75 f2
48 8b 0e 48 39 88 b0 00 00 00 74 41 48 81 3f 40 e4 ef 8e 74 38 <0f> 0b
48 83 c4 08 c3 9c 59 80 e5 02 74 c0 e8 91 47 ac fa 85 c0 74
RSP: 0018:ffffc90007f2f728 EFLAGS: 00010006
RAX: ffffffff8fd48380 RBX: ffffffff902488e0 RCX: ffffffff8aa6dfe0
RDX: ffffffff905bf3c0 RSI: ffff8880127b38b8 RDI: ffff8880127b38a0
RBP: ffff8880127b38a0 R08: 0000000000000001 R09: 0000000000000000
R10: ffff888063e32a0b R11: ffffed100c7c6541 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880127b38b8 R15: 1ffff92000fe5eef
FS: 00007f7d8ac4c700(0000) GS:ffff888063e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000001d598000 CR4: 0000000000350ef0
Call Trace:
register_lock_class+0xc4/0x1950 kernel/locking/lockdep.c:1246
__lock_acquire+0x106/0x57e0 kernel/locking/lockdep.c:4894
lock_acquire kernel/locking/lockdep.c:5625 [inline]
lock_acquire+0x1ab/0x520 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:178
spin_lock_bh include/linux/spinlock.h:368 [inline]
lock_sock_nested+0x5d/0xf0 net/core/sock.c:3206
lock_sock include/net/sock.h:1615 [inline]
do_ipv6_setsockopt.isra.0+0x30b/0x4260 net/ipv6/ipv6_sockglue.c:418
ipv6_setsockopt+0x113/0x190 net/ipv6/ipv6_sockglue.c:1003
udpv6_setsockopt+0x76/0xc0 net/ipv6/udp.c:1647
__sys_setsockopt+0x2db/0x610 net/socket.c:2176
__do_sys_setsockopt net/socket.c:2187 [inline]
__se_sys_setsockopt net/socket.c:2184 [inline]
__x64_sys_setsockopt+0xba/0x150 net/socket.c:2184
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:0x7f7d8d6e3c4d
Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 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:00007f7d8ac4bc58 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f7d8d80a0a0 RCX: 00007f7d8d6e3c4d
RDX: 0000000000000036 RSI: 0000000000000029 RDI: 0000000000000005
RBP: 00007f7d8d75cd80 R08: 0000000000000008 R09: 0000000000000000
R10: 00000000200000c0 R11: 0000000000000246 R12: 00007f7d8d80a0a0
R13: 00007ffcb83da37f R14: 00007ffcb83da520 R15: 00007f7d8ac4bdc0

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-02  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22 15:58 WARNING: locking bug in do_ipv6_setsockopt syzbot
2021-11-02  7:56 Hao Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).