syzbot


general protection fault in tipc_conn_close

Status: upstream: reported on 2022/06/28 01:43
Reported-by: syzbot+2e73e8bea611626e2aeb@syzkaller.appspotmail.com
First crash: 154d, last: 31d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in tipc_conn_close C 3 1743d 1744d 6/24 fixed on 2018/05/08 18:30
linux-4.19 general protection fault in tipc_conn_close C error 3 68d 576d 0/1 upstream: reported C repro on 2021/05/01 19:58
android-5-10 general protection fault in tipc_conn_close 1 198d 198d 0/2 auto-closed as invalid on 2022/08/12 11:37
android-5-10 general protection fault in tipc_conn_close (2) 4 16d 69d 0/2 premoderation: reported on 2022/09/20 07:58
upstream general protection fault in tipc_conn_close (2) 12 27d 359d 0/24 upstream: reported on 2021/12/04 09:55
android-5-15 general protection fault in tipc_conn_close 1 32d 32d 0/2 premoderation: reported on 2022/10/28 00:49

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 172 Comm: kworker/u4:2 Not tainted 5.4.210-syzkaller-00030-g871bb50ab5b1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
Workqueue: netns cleanup_net
RIP: 0010:tipc_conn_close+0x4a/0x130 net/tipc/topsrv.c:158
Code: 24 08 49 89 de 49 c1 ee 03 41 80 3c 2e 00 74 08 48 89 df e8 b8 a6 7b fd 48 89 1c 24 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 98 a6 7b fd 48 8b 1b 4c 8d bb 38 02
RSP: 0018:ffff8881e4fa7c30 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8881e4f9de80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8881ead60200
RBP: dffffc0000000000 R08: ffffffff821d0f54 R09: ffffed103c9f4f87
R10: ffffed103c9f4f87 R11: 1ffff1103c9f4f86 R12: ffff8881ead60200
R13: ffff8881dedb8f18 R14: 1ffff1103d5ac041 R15: ffff8881dedb8f1c
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa42f131fe8 CR3: 00000001df13c000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 tipc_topsrv_stop net/tipc/topsrv.c:694 [inline]
 tipc_topsrv_exit_net+0x148/0x330 net/tipc/topsrv.c:715
 ops_exit_list net/core/net_namespace.c:172 [inline]
 cleanup_net+0x654/0xcf0 net/core/net_namespace.c:602
 process_one_work+0x6ca/0xc40 kernel/workqueue.c:2287
 worker_thread+0xae0/0x1440 kernel/workqueue.c:2433
 kthread+0x2d8/0x360 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 4e19219b8e52f2c6 ]---
RIP: 0010:tipc_conn_close+0x4a/0x130 net/tipc/topsrv.c:158
Code: 24 08 49 89 de 49 c1 ee 03 41 80 3c 2e 00 74 08 48 89 df e8 b8 a6 7b fd 48 89 1c 24 48 8b 1b 48 83 c3 18 48 89 d8 48 c1 e8 03 <80> 3c 28 00 74 08 48 89 df e8 98 a6 7b fd 48 8b 1b 4c 8d bb 38 02
RSP: 0018:ffff8881e4fa7c30 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8881e4f9de80
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8881ead60200
RBP: dffffc0000000000 R08: ffffffff821d0f54 R09: ffffed103c9f4f87
R10: ffffed103c9f4f87 R11: 1ffff1103c9f4f86 R12: ffff8881ead60200
R13: ffff8881dedb8f18 R14: 1ffff1103d5ac041 R15: ffff8881dedb8f1c
FS:  0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa42f152fe8 CR3: 00000001b608d000 CR4: 00000000003406e0
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:	41 80 3c 2e 00       	cmpb   $0x0,(%r14,%rbp,1)
   e:	74 08                	je     0x18
  10:	48 89 df             	mov    %rbx,%rdi
  13:	e8 b8 a6 7b fd       	callq  0xfd7ba6d0
  18:	48 89 1c 24          	mov    %rbx,(%rsp)
  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:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1) <-- trapping instruction
  2e:	74 08                	je     0x38
  30:	48 89 df             	mov    %rbx,%rdi
  33:	e8 98 a6 7b fd       	callq  0xfd7ba6d0
  38:	48 8b 1b             	mov    (%rbx),%rbx
  3b:	4c                   	rex.WR
  3c:	8d                   	.byte 0x8d
  3d:	bb                   	.byte 0xbb
  3e:	38 02                	cmp    %al,(%rdx)

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2022/09/28 11:13 android12-5.4 871bb50ab5b1 75c78242 .config log report info general protection fault in tipc_conn_close
ci2-android-5-4-kasan 2022/08/17 08:58 android12-5.4 2bf0b614f0fb 4e72d229 .config log report info general protection fault in tipc_conn_close
ci2-android-5-4-kasan 2022/07/28 22:25 android12-5.4 8368124477c8 fb95c74d .config log report info general protection fault in tipc_conn_close
ci2-android-5-4-kasan 2022/07/16 00:56 android12-5.4 330fa791a029 95cb00d1 .config log report info general protection fault in tipc_conn_close
ci2-android-5-4-kasan 2022/07/13 08:40 android12-5.4 337727eae73d 5d921b08 .config log report info general protection fault in tipc_conn_close
ci2-android-5-4-kasan 2022/06/28 01:42 android12-5.4 9ce4508d6de9 ef82eb2c .config log report info general protection fault in tipc_conn_close
ci2-android-5-4-kasan 2022/10/28 13:15 android12-5.4 035e4939365c 8168b69e .config log report info KASAN: use-after-free Read in tipc_conn_close
* Struck through repros no longer work on HEAD.