syzbot


general protection fault in tipc_conn_close

Status: auto-obsoleted due to no activity on 2023/07/18 14:57
Reported-by: syzbot+2e73e8bea611626e2aeb@syzkaller.appspotmail.com
First crash: 877d, last: 612d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 general protection fault in tipc_conn_close (2) 2 394d 469d 0/2 auto-obsoleted due to no activity on 2024/01/22 16:54
android-5-15 general protection fault in tipc_conn_close (2) 4 314d 430d 0/2 auto-obsoleted due to no activity on 2024/04/11 01:35
android-5-10 general protection fault in tipc_conn_close (3) 1 433d 433d 0/2 auto-obsoleted due to no activity on 2023/12/14 05:20
upstream general protection fault in tipc_conn_close tipc C 3 2466d 2467d 5/28 fixed on 2018/05/08 18:30
android-6-1 general protection fault in tipc_conn_close 6 286d 513d 0/2 auto-obsoleted due to no activity on 2024/05/18 20:39
linux-4.19 general protection fault in tipc_conn_close C error 3 792d 1299d 0/1 upstream: reported C repro on 2021/05/01 19:58
android-5-10 general protection fault in tipc_conn_close 1 922d 922d 0/2 auto-closed as invalid on 2022/08/12 11:37
android-5-10 general protection fault in tipc_conn_close (2) 6 707d 793d 0/2 auto-obsoleted due to no activity on 2023/04/11 05:56
upstream general protection fault in tipc_conn_close (3) tipc 1 398d 394d 0/28 auto-obsoleted due to no activity on 2024/01/18 09:00
upstream general protection fault in tipc_conn_close (2) tipc 21 511d 1083d 0/28 auto-obsoleted due to no activity on 2023/10/06 23:51
android-5-15 general protection fault in tipc_conn_close 4 540d 755d 0/2 auto-obsoleted due to no activity on 2023/08/28 21:57

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: 12667 Comm: kworker/u4:2 Tainted: G        W         5.4.225-syzkaller-00003-gf4e4be09c27c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: netns cleanup_net
RIP: 0010:tipc_conn_close+0x4a/0x140 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 58 6f 69 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 38 6f 69 fd 48 8b 1b 4c 8d bb 38 02
RSP: 0018:ffff8881b88c7bf0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8881e3004ec0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8881ed224400
RBP: dffffc0000000000 R08: ffffffff8225ddc1 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8881ed224400
R13: ffff8881e78b9118 R14: 1ffff1103da44881 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fca25bfe058 CR3: 00000001e5161000 CR4: 00000000003406f0
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+0x141/0x320 net/tipc/topsrv.c:723
 ops_exit_list net/core/net_namespace.c:179 [inline]
 cleanup_net+0x665/0xc90 net/core/net_namespace.c:609
 process_one_work+0x765/0xd20 kernel/workqueue.c:2287
 worker_thread+0xaef/0x1470 kernel/workqueue.c:2433
 kthread+0x2da/0x360 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:354
Modules linked in:
---[ end trace a8de910b35f985a8 ]---
RIP: 0010:tipc_conn_close+0x4a/0x140 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 58 6f 69 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 38 6f 69 fd 48 8b 1b 4c 8d bb 38 02
RSP: 0018:ffff8881b88c7bf0 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: ffff8881e3004ec0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8881ed224400
RBP: dffffc0000000000 R08: ffffffff8225ddc1 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8881ed224400
R13: ffff8881e78b9118 R14: 1ffff1103da44881 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fca25bfe058 CR3: 00000001b8219000 CR4: 00000000003406f0
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 58 6f 69 fd       	callq  0xfd696f70
  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 38 6f 69 fd       	callq  0xfd696f70
  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 (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/20 14:56 android12-5.4 f4e4be09c27c 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in tipc_conn_close
2023/01/28 03:34 android12-5.4 ac6c87b5296b 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan general protection fault in tipc_conn_close
2022/09/28 11:13 android12-5.4 871bb50ab5b1 75c78242 .config console log report info [disk image] [vmlinux] ci2-android-5-4-kasan general protection fault in tipc_conn_close
2022/08/17 08:58 android12-5.4 2bf0b614f0fb 4e72d229 .config console log report info ci2-android-5-4-kasan general protection fault in tipc_conn_close
2022/07/28 22:25 android12-5.4 8368124477c8 fb95c74d .config console log report info ci2-android-5-4-kasan general protection fault in tipc_conn_close
2022/07/16 00:56 android12-5.4 330fa791a029 95cb00d1 .config console log report info ci2-android-5-4-kasan general protection fault in tipc_conn_close
2022/07/13 08:40 android12-5.4 337727eae73d 5d921b08 .config console log report info ci2-android-5-4-kasan general protection fault in tipc_conn_close
2022/06/28 01:42 android12-5.4 9ce4508d6de9 ef82eb2c .config console log report info ci2-android-5-4-kasan general protection fault in tipc_conn_close
2022/10/28 13:15 android12-5.4 035e4939365c 8168b69e .config console log report info ci2-android-5-4-kasan KASAN: use-after-free Read in tipc_conn_close
* Struck through repros no longer work on HEAD.