syzbot


general protection fault in tipc_conn_close (2)

Status: premoderation: reported on 2022/09/20 07:58
Reported-by: syzbot+bc8bff2d2630cc61df21@syzkaller.appspotmail.com
First crash: 78d, last: 2d03h
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 general protection fault in tipc_conn_close 7 40d 162d 0/2 upstream: reported on 2022/06/28 01:43
upstream general protection fault in tipc_conn_close C 3 1751d 1752d 6/24 fixed on 2018/05/08 18:30
linux-4.19 general protection fault in tipc_conn_close C error 3 77d 585d 0/1 upstream: reported C repro on 2021/05/01 19:58
android-5-10 general protection fault in tipc_conn_close 1 207d 207d 0/2 auto-closed as invalid on 2022/08/12 11:37
upstream general protection fault in tipc_conn_close (2) 12 36d 368d 0/24 upstream: reported on 2021/12/04 09:55
android-5-15 general protection fault in tipc_conn_close 1 40d 40d 0/2 premoderation: reported on 2022/10/28 00:49

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 0 PID: 4128 Comm: kworker/u4:6 Not tainted 5.10.156-syzkaller-00941-g37d3df60cb6a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: netns cleanup_net
RIP: 0010:tipc_conn_close+0x4d/0x130 net/tipc/topsrv.c:157
Code: 24 08 49 89 de 49 c1 ee 03 43 80 3c 3e 00 74 08 48 89 df e8 35 3b 25 fd 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 14 3b 25 fd 48 8b 1b 4c 8d bb 38
RSP: 0018:ffffc900064dfba8 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88811784e2c0
RDX: 0000000000000000 RSI: ffffffff84e8d640 RDI: ffff88810ed64400
RBP: ffffc900064dfbd8 R08: ffffffff826cecfe R09: 0000000000000003
R10: fffff52000c9bf6d R11: 1ffff92000c9bf6c R12: ffff88810ed64400
R13: ffff88811696c218 R14: 1ffff11021dac881 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdbf3a576be CR3: 00000001651ac000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tipc_topsrv_stop net/tipc/topsrv.c:701 [inline]
 tipc_topsrv_exit_net+0x149/0x340 net/tipc/topsrv.c:723
 ops_exit_list net/core/net_namespace.c:194 [inline]
 cleanup_net+0x6e4/0xd70 net/core/net_namespace.c:615
 process_one_work+0x726/0xc10 kernel/workqueue.c:2296
 worker_thread+0xb27/0x1550 kernel/workqueue.c:2442
 kthread+0x349/0x3d0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299
Modules linked in:
---[ end trace d40e811386588b13 ]---
RIP: 0010:tipc_conn_close+0x4d/0x130 net/tipc/topsrv.c:157
Code: 24 08 49 89 de 49 c1 ee 03 43 80 3c 3e 00 74 08 48 89 df e8 35 3b 25 fd 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 14 3b 25 fd 48 8b 1b 4c 8d bb 38
RSP: 0018:ffffc900064dfba8 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff88811784e2c0
RDX: 0000000000000000 RSI: ffffffff84e8d640 RDI: ffff88810ed64400
RBP: ffffc900064dfbd8 R08: ffffffff826cecfe R09: 0000000000000003
R10: fffff52000c9bf6d R11: 1ffff92000c9bf6c R12: ffff88810ed64400
R13: ffff88811696c218 R14: 1ffff11021dac881 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdbf1b7fcc0 CR3: 000000010c803000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	24 08                	and    $0x8,%al
   2:	49 89 de             	mov    %rbx,%r14
   5:	49 c1 ee 03          	shr    $0x3,%r14
   9:	43 80 3c 3e 00       	cmpb   $0x0,(%r14,%r15,1)
   e:	74 08                	je     0x18
  10:	48 89 df             	mov    %rbx,%rdi
  13:	e8 35 3b 25 fd       	callq  0xfd253b4d
  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 14 3b 25 fd       	callq  0xfd253b4d
  39:	48 8b 1b             	mov    (%rbx),%rbx
  3c:	4c                   	rex.WR
  3d:	8d                   	.byte 0x8d
  3e:	bb                   	.byte 0xbb
  3f:	38                   	.byte 0x38

Crashes (5):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-10 2022/12/05 17:30 android12-5.10-lts 37d3df60cb6a 045cbb84 .config log report info general protection fault in tipc_conn_close
ci2-android-5-10 2022/11/12 18:50 android12-5.10-lts 0118fb827bc7 f42ee5d8 .config log report info general protection fault in tipc_conn_close
ci2-android-5-10 2022/10/15 09:16 android12-5.10-lts bc7618b4936f 67cb024c .config log report info general protection fault in tipc_conn_close
ci2-android-5-10 2022/10/06 20:52 android12-5.10-lts bc7618b4936f 80b58a42 .config log report info general protection fault in tipc_conn_close
ci2-android-5-10 2022/09/20 07:57 android12-5.10-lts 59390358870a 7c41a9ba .config log report info general protection fault in tipc_conn_close
* Struck through repros no longer work on HEAD.