kernel BUG at net/sctp/sm_sideeffect.c:LINE!

5 views
Skip to the first unread message

syzbot

unread,
24 Mar 2020, 14:52:1624/03/2020
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 14cfdbd3 Linux 4.19.112
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13692b19e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=48ea0e0a21a4900f
dashboard link: https://syzkaller.appspot.com/bug?extid=0472f587206363fdf382
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16000c13e00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=161fbbf9e00000

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

IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready
------------[ cut here ]------------
kernel BUG at net/sctp/sm_sideeffect.c:1538!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8352 Comm: syz-executor819 Not tainted 4.19.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1538 [inline]
RIP: 0010:sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
RIP: 0010:sctp_do_sm+0x41f6/0x4f20 net/sctp/sm_sideeffect.c:1170
Code: 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 74 08 3c 03 0f 8e 2c 09 00 00 41 8b 9f b0 02 00 00 e9 fc f7 ff ff e8 4a ed cf fa <0f> 0b e8 43 ed cf fa 68 20 00 48 00 ff 74 24 08 e9 6e de ff ff e8
RSP: 0018:ffff8880a4b5f9a0 EFLAGS: 00010293
RAX: ffff888080dc05c0 RBX: 0000000000000003 RCX: ffffffff86977ac5
RDX: 0000000000000000 RSI: ffffffff8697b776 RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff888080dc05c0 R09: ffffed1012866661
R10: ffffed1012866660 R11: ffff888094333307 R12: ffff8880a7dd25f0
R13: 0000000000000012 R14: dffffc0000000000 R15: ffff8880a7dd2200
FS: 0000000001b38940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe67e5ff8 CR3: 0000000092db8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
sctp_primitive_SHUTDOWN+0x9b/0xc0 net/sctp/primitive.c:104
sctp_close+0x3ce/0x7b0 net/sctp/socket.c:1545
inet_release+0xd7/0x1e0 net/ipv4/af_inet.c:427
inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:472
__sock_release+0xcd/0x2a0 net/socket.c:579
sock_close+0x15/0x20 net/socket.c:1140
__fput+0x2cd/0x890 fs/file_table.c:278
task_work_run+0x13f/0x1b0 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:193 [inline]
exit_to_usermode_loop+0x25a/0x2b0 arch/x86/entry/common.c:167
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x404d70
Code: 01 f0 ff ff 0f 83 c0 0f 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d 1d a2 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 94 0f 00 00 c3 48 83 ec 08 e8 fa 04 00 00
RSP: 002b:00007ffd8f40b488 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 0000000000404d70
RDX: 000000000000006e RSI: 0000000000000084 RDI: 0000000000000003
RBP: 00007ffd8f40b4b0 R08: 0000000000000020 R09: 0000000000000003
R10: 0000000020000000 R11: 0000000000000246 R12: 00007ffd8f40b4e0
R13: 0000000000000004 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace bda084c392ac197a ]---
RIP: 0010:sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1538 [inline]
RIP: 0010:sctp_side_effects net/sctp/sm_sideeffect.c:1199 [inline]
RIP: 0010:sctp_do_sm+0x41f6/0x4f20 net/sctp/sm_sideeffect.c:1170
Code: 00 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 74 08 3c 03 0f 8e 2c 09 00 00 41 8b 9f b0 02 00 00 e9 fc f7 ff ff e8 4a ed cf fa <0f> 0b e8 43 ed cf fa 68 20 00 48 00 ff 74 24 08 e9 6e de ff ff e8
RSP: 0018:ffff8880a4b5f9a0 EFLAGS: 00010293
RAX: ffff888080dc05c0 RBX: 0000000000000003 RCX: ffffffff86977ac5
RDX: 0000000000000000 RSI: ffffffff8697b776 RDI: 0000000000000007
RBP: 0000000000000000 R08: ffff888080dc05c0 R09: ffffed1012866661
R10: ffffed1012866660 R11: ffff888094333307 R12: ffff8880a7dd25f0
R13: 0000000000000012 R14: dffffc0000000000 R15: ffff8880a7dd2200
FS: 0000000001b38940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffe67e5ff8 CR3: 0000000092db8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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 syzk...@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
Reply all
Reply to author
Forward
0 new messages