[Android 6.1] general protection fault in tipc_conn_close

0 views
Skip to first unread message

syzbot

unread,
Jun 27, 2023, 4:56:06 AM6/27/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 51cb1e1cfd27 ANDROID: GKI: update symbol list file for xia..
git tree: android14-6.1
console output: https://syzkaller.appspot.com/x/log.txt?x=130d2a80a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=f3a6e543620145da
dashboard link: https://syzkaller.appspot.com/bug?extid=5a409753ea4f83796e36
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/fad847e9fb72/disk-51cb1e1c.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e544d3c8df88/vmlinux-51cb1e1c.xz
kernel image: https://storage.googleapis.com/syzbot-assets/24b8e8fa00a4/bzImage-51cb1e1c.xz

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

general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 10 Comm: kworker/u4:1 Not tainted 6.1.25-syzkaller-00127-g51cb1e1cfd27 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: netns cleanup_net
RIP: 0010:tipc_conn_close+0x54/0x140 net/tipc/topsrv.c:157
Code: d8 48 c1 e8 03 48 89 45 c8 42 80 3c 38 00 74 08 48 89 df e8 de bf cf fc 48 89 5d d0 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 bd bf cf fc 4c 8b 2b 4d 8d b5 28
RSP: 0000:ffffc900000a7ba0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888100388000
RDX: 0000000000000000 RSI: ffffffff8568ede0 RDI: ffff888137a89300
RBP: ffffc900000a7bd8 R08: ffffffff84ffba82 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff888137a89300
R13: ffff88812db80818 R14: ffff88812db8081c R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007faf024eabf0 CR3: 0000000111567000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
tipc_topsrv_stop net/tipc/topsrv.c:703 [inline]
tipc_topsrv_exit_net+0x139/0x320 net/tipc/topsrv.c:725
ops_exit_list net/core/net_namespace.c:169 [inline]
cleanup_net+0x64b/0xbf0 net/core/net_namespace.c:601
process_one_work+0x73d/0xcb0 kernel/workqueue.c:2296
worker_thread+0xa60/0x1260 kernel/workqueue.c:2443
kthread+0x26d/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:tipc_conn_close+0x54/0x140 net/tipc/topsrv.c:157
Code: d8 48 c1 e8 03 48 89 45 c8 42 80 3c 38 00 74 08 48 89 df e8 de bf cf fc 48 89 5d d0 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 bd bf cf fc 4c 8b 2b 4d 8d b5 28
RSP: 0000:ffffc900000a7ba0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff888100388000
RDX: 0000000000000000 RSI: ffffffff8568ede0 RDI: ffff888137a89300
RBP: ffffc900000a7bd8 R08: ffffffff84ffba82 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff888137a89300
R13: ffff88812db80818 R14: ffff88812db8081c R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002023b030 CR3: 000000012f719000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: d8 48 c1 fmuls -0x3f(%rax)
3: e8 03 48 89 45 callq 0x4589480b
8: c8 42 80 3c enterq $0x8042,$0x3c
c: 38 00 cmp %al,(%rax)
e: 74 08 je 0x18
10: 48 89 df mov %rbx,%rdi
13: e8 de bf cf fc callq 0xfccfbff6
18: 48 89 5d d0 mov %rbx,-0x30(%rbp)
1c: 48 8b 1b mov (%rbx),%rbx
1f: 48 83 c3 18 add $0x18,%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 bd bf cf fc callq 0xfccfbff6
39: 4c 8b 2b mov (%rbx),%r13
3c: 4d rex.WRB
3d: 8d .byte 0x8d
3e: b5 28 mov $0x28,%ch


---
This report 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 issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages