syzbot


general protection fault in cleanup_bearer

Status: upstream: reported C repro on 2024/12/27 14:28
Reported-by: syzbot+b793153f7d0028dac753@syzkaller.appspotmail.com
First crash: 16d, last: 3d13h
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 general protection fault in cleanup_bearer origin:lts-only syz error 458 14d 19d 0/3 upstream: reported syz repro on 2024/12/14 20:37
upstream general protection fault in cleanup_bearer tipc C 13668 14d 29d 26/28 upstream: reported C repro on 2024/12/04 17:03
linux-6.1 general protection fault in cleanup_bearer syz 634 14d 19d 0/3 upstream: reported syz repro on 2024/12/14 20:16

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000006: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000030-0x0000000000000037]
CPU: 1 PID: 25 Comm: kworker/1:1 Not tainted 5.10.231-syzkaller-00700-g4055d754db6f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events cleanup_bearer
RIP: 0010:read_pnet include/net/net_namespace.h:335 [inline]
RIP: 0010:sock_net include/net/sock.h:2653 [inline]
RIP: 0010:cleanup_bearer+0x1dc/0x2b0 net/tipc/udp_media.c:815
Code: 8b 1e 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 42 16 0a fd 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 25 16 0a fd 4c 8b 33 48 c7 c0 80
RSP: 0018:ffffc900001afcf0 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff867996f0
RBP: ffffc900001afd30 R08: dffffc0000000000 R09: fffffbfff0cf32df
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888109acfe00
R13: dffffc0000000000 R14: ffff88810f10ac08 R15: ffff88810f10ac18
FS:  0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f600f460ae0 CR3: 000000000660f000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 process_one_work+0x6dc/0xbd0 kernel/workqueue.c:2301
 worker_thread+0xaea/0x1510 kernel/workqueue.c:2447
 kthread+0x34b/0x3d0 kernel/kthread.c:313
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
Modules linked in:
---[ end trace be534e2e2457556a ]---
RIP: 0010:read_pnet include/net/net_namespace.h:335 [inline]
RIP: 0010:sock_net include/net/sock.h:2653 [inline]
RIP: 0010:cleanup_bearer+0x1dc/0x2b0 net/tipc/udp_media.c:815
Code: 8b 1e 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 42 16 0a fd 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 
----------------
Code disassembly (best guess):
   0:	8b 1e                	mov    (%rsi),%ebx
   2:	48 83 c3 18          	add    $0x18,%rbx
   6:	48 89 d8             	mov    %rbx,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  12:	74 08                	je     0x1c
  14:	48 89 df             	mov    %rbx,%rdi
  17:	e8 42 16 0a fd       	call   0xfd0a165e
  1c:	48 8b 1b             	mov    (%rbx),%rbx
  1f:	48 83 c3 30          	add    $0x30,%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 25 16 0a fd       	call   0xfd0a165e
  39:	4c 8b 33             	mov    (%rbx),%r14
  3c:	48                   	rex.W
  3d:	c7                   	.byte 0xc7
  3e:	c0                   	.byte 0xc0
  3f:	80                   	.byte 0x80

Crashes (14034):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/27 14:22 android13-5.10-lts 4055d754db6f d3ccff63 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/19 21:10 android13-5.10-lts 4055d754db6f 5905cb39 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/18 09:41 android13-5.10-lts 4055d754db6f a0626d3a .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/18 08:39 android13-5.10-lts 4055d754db6f a0626d3a .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 09:28 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 09:00 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 08:32 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 08:14 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 07:55 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 07:31 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 07:07 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 06:40 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 06:14 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 05:59 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 05:42 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 05:19 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 05:05 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 04:44 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 04:27 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 04:09 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 03:53 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 03:39 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 03:24 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 03:02 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 02:44 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 02:18 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 01:58 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 01:42 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 01:24 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 00:58 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 00:43 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 00:20 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/30 00:03 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 23:47 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 23:25 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 22:55 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 22:31 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 22:00 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 21:36 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 21:16 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 20:53 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 20:33 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 20:10 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 19:44 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 19:19 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/29 18:58 android13-5.10-lts 4055d754db6f d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 general protection fault in cleanup_bearer
2024/12/25 14:10 android13-5.10-lts 4055d754db6f 444551c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: use-after-free Read in cleanup_bearer
2024/12/21 19:52 android13-5.10-lts 4055d754db6f d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KFENCE: use-after-free in cleanup_bearer
* Struck through repros no longer work on HEAD.