WARNING in tcp_close

11 views
Skip to first unread message

syzbot

unread,
Apr 11, 2019, 8:01:08 PM4/11/19
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: c556d1ff Merge 4.14.78 into android-4.14
git tree: android-4.14
console output: https://syzkaller.appspot.com/x/log.txt?x=15700471400000
kernel config: https://syzkaller.appspot.com/x/.config?x=71219c5dc171efec
dashboard link: https://syzkaller.appspot.com/bug?extid=7b2f8454190cc7058ea8
compiler: gcc (GCC) 8.0.1 20180413 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1323a6ad400000

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

audit: type=1400 audit(1540208593.730:9): avc: denied { map } for
pid=1821 comm="syz-execprog" path="/root/syzkaller-shm824017920" dev="sda1"
ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:file_t:s0 tclass=file permissive=1
mmap: syz-executor5 (4136) uses deprecated remap_file_pages() syscall. See
Documentation/vm/remap_file_pages.txt.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4487 at net/ipv4/tcp.c:2229 tcp_close+0xcaa/0x1030
net/ipv4/tcp.c:2229
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 4487 Comm: syz-executor0 Not tainted 4.14.78+ #22
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
panic+0x1bf/0x3a4 kernel/panic.c:181
__warn.cold.7+0x148/0x185 kernel/panic.c:542
report_bug+0x1f7/0x26c lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:177 [inline]
do_error_trap+0x1ba/0x2c0 arch/x86/kernel/traps.c:295
invalid_op+0x18/0x40 arch/x86/entry/entry_64.S:944
RIP: 0010:tcp_close+0xcaa/0x1030 net/ipv4/tcp.c:2229
RSP: 0018:ffff8801c551fa98 EFLAGS: 00010297
RAX: ffff8801c5ef8000 RBX: ffff8801c7f51600 RCX: 1ffff10038bdf105
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8801c7f516c0
RBP: ffff8801c7f51628 R08: 0000000000004fba R09: ffffffffbb0ee470
R10: ffff8801c5ef8858 R11: 0000000000000001 R12: ffff8801c7f51688
R13: ffff8801c7f51612 R14: ffff8801c7f51680 R15: 0000000000000007
inet_release+0xf7/0x1c0 net/ipv4/af_inet.c:444
inet6_release+0x4b/0x70 net/ipv6/af_inet6.c:451
__sock_release+0xce/0x250 net/socket.c:602
sock_close+0x15/0x20 net/socket.c:1138
__fput+0x25e/0x6f0 fs/file_table.c:210
task_work_run+0x116/0x190 kernel/task_work.c:113
get_signal+0x109f/0x1470 kernel/signal.c:2178
do_signal+0x8f/0x1660 arch/x86/kernel/signal.c:809
exit_to_usermode_loop+0x116/0x150 arch/x86/entry/common.c:159
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:267 [inline]
do_syscall_64+0x35d/0x4b0 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457569
RSP: 002b:00007f6840fcac78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: 0000000000364650 RBX: 0000000000000006 RCX: 0000000000457569
RDX: 08d2d601e8976aa5 RSI: 0000000020000100 RDI: 0000000000000005
RBP: 000000000072bf00 R08: 000000002031e000 R09: 000000000000001c
R10: 0000000020000004 R11: 0000000000000246 R12: 00007f6840fcb6d4
R13: 00000000004c3921 R14: 00000000004d57d8 R15: 00000000ffffffff
Kernel Offset: 0x36c00000 from 0xffffffff81000000 (relocation range:
0xffffffff80000000-0xffffffffbfffffff)
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 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