syzbot


general protection fault in llc_ui_sendmsg

Status: auto-closed as invalid on 2022/08/05 11:52
Reported-by: syzbot+b49f140c84fa2c6f6deb@syzkaller.appspotmail.com
First crash: 741d, last: 739d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in llc_ui_sendmsg net C done 365 748d 753d 22/26 fixed on 2023/02/24 13:50

Sample crash report:
 sock_alloc+0x3c/0x270 net/socket.c:569
 __sock_create+0x8a/0x620 net/socket.c:1239
 sock_create net/socket.c:1315 [inline]
 SYSC_socket net/socket.c:1345 [inline]
 SyS_socket+0xd1/0x1b0 net/socket.c:1325
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
general protection fault: 0000 [#1] PREEMPT SMP KASAN
RIP: 0033:0x7f284f7ef049
Modules linked in:
RSP: 002b:00007f284e164168 EFLAGS: 00000246
 ORIG_RAX: 0000000000000029
CPU: 1 PID: 17300 Comm: syz-executor.5 Not tainted 4.14.275-syzkaller #0
RAX: ffffffffffffffda RBX: 00007f284f901f60 RCX: 00007f284f7ef049
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000a
task: ffff8880a2a14280 task.stack: ffff88807c240000
RBP: 00007f284e1641d0 R08: 0000000000000000 R09: 0000000000000000
RIP: 0010:dev_put include/linux/netdevice.h:3381 [inline]
RIP: 0010:llc_ui_autobind.isra.0+0x26b/0x390 net/llc/af_llc.c:320
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
RSP: 0018:ffff88807c247bf8 EFLAGS: 00010202
R13: 00007ffdb1a21e5f R14: 00007f284e164300 R15: 0000000000022000
socket: no more sockets
RAX: dffffc0000000000 RBX: ffff88809f096bc0 RCX: ffffc90005bec000
RDX: 00000000000000a8 RSI: ffffffff85d0c563 RDI: 0000000000000540
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000ffffffea
socket: no more sockets
R13: ffff88807c247e28 R14: ffff888090307640 R15: ffff888090307660
FS:  00007f82cf978700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7ee2212920 CR3: 00000000a3672000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 llc_ui_sendmsg+0x638/0xec0 net/llc/af_llc.c:952
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 SYSC_sendto net/socket.c:1763 [inline]
 SyS_sendto+0x1c7/0x2c0 net/socket.c:1731
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f82d1003049
RSP: 002b:00007f82cf978168 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f82d1115f60 RCX: 00007f82d1003049
RDX: 00000000000001c3 RSI: 00000000200002c0 RDI: 0000000000000005
RBP: 00007f82d105d08d R08: 0000000020001380 R09: 0000000000000080
R10: 00000000000040c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffea17878ff R14: 00007f82cf978300 R15: 0000000000022000
Code: 55 ff ff 48 0f ba 73 60 08 45 31 e4 31 ed e8 dd 7c 84 fb 48 8d bd 40 05 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 f2 00 00 00 48 8b 85 40 05 00 00 65 ff 08 44 
RIP: dev_put include/linux/netdevice.h:3381 [inline] RSP: ffff88807c247bf8
RIP: llc_ui_autobind.isra.0+0x26b/0x390 net/llc/af_llc.c:320 RSP: ffff88807c247bf8
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
CPU: 1 PID: 17320 Comm: syz-executor.2 Tainted: G      D         4.14.275-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
 should_failslab+0xd6/0x130 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:421 [inline]
 slab_alloc mm/slab.c:3376 [inline]
 kmem_cache_alloc_trace+0x29a/0x3d0 mm/slab.c:3616
 kmalloc include/linux/slab.h:488 [inline]
 sock_alloc_inode+0x5f/0x250 net/socket.c:254
 alloc_inode+0x5d/0x170 fs/inode.c:210
 new_inode_pseudo+0x14/0xe0 fs/inode.c:899
 sock_alloc+0x3c/0x270 net/socket.c:569
 __sock_create+0x8a/0x620 net/socket.c:1239
 sock_create net/socket.c:1315 [inline]
 SYSC_socket net/socket.c:1345 [inline]
 SyS_socket+0xd1/0x1b0 net/socket.c:1325
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f284f7ef049
RSP: 002b:00007f284e164168 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007f284f901f60 RCX: 00007f284f7ef049
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000a
RBP: 00007f284e1641d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdb1a21e5f R14: 00007f284e164300 R15: 0000000000022000
CPU: 0 PID: 17328 Comm: syz-executor.1 Tainted: G      D         4.14.275-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
socket: no more sockets
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
 should_failslab+0xd6/0x130 mm/failslab.c:32
 slab_pre_alloc_hook mm/slab.h:421 [inline]
 slab_alloc mm/slab.c:3376 [inline]
 kmem_cache_alloc_trace+0x29a/0x3d0 mm/slab.c:3616
 kmalloc include/linux/slab.h:488 [inline]
 sock_alloc_inode+0x5f/0x250 net/socket.c:254
 alloc_inode+0x5d/0x170 fs/inode.c:210
 new_inode_pseudo+0x14/0xe0 fs/inode.c:899
 sock_alloc+0x3c/0x270 net/socket.c:569
 __sock_create+0x8a/0x620 net/socket.c:1239
 sock_create net/socket.c:1315 [inline]
 SYSC_socket net/socket.c:1345 [inline]
 SyS_socket+0xd1/0x1b0 net/socket.c:1325
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
FAULT_INJECTION: forcing a failure.
name failslab, interval 1, probability 0, space 0, times 0
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f034e805049
RSP: 002b:00007f034d17a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 00007f034e917f60 RCX: 00007f034e805049
RDX: 000000000000a129 RSI: 0000000000000000 RDI: 000000000000000a
RBP: 00007f034d17a1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffcec4d663f R14: 00007f034d17a300 R15: 0000000000022000
socket: no more sockets
CPU: 1 PID: 17345 Comm: syz-executor.2 Tainted: G      D         4.14.275-syzkaller #0
---[ end trace 108de84d94379305 ]---
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	ff 48 0f             	decl   0xf(%rax)
   3:	ba 73 60 08 45       	mov    $0x45086073,%edx
   8:	31 e4                	xor    %esp,%esp
   a:	31 ed                	xor    %ebp,%ebp
   c:	e8 dd 7c 84 fb       	callq  0xfb847cee
  11:	48 8d bd 40 05 00 00 	lea    0x540(%rbp),%rdi
  18:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1f:	fc ff df
  22:	48 89 fa             	mov    %rdi,%rdx
  25:	48 c1 ea 03          	shr    $0x3,%rdx
* 29:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2d:	0f 85 f2 00 00 00    	jne    0x125
  33:	48 8b 85 40 05 00 00 	mov    0x540(%rbp),%rax
  3a:	65 ff 08             	decl   %gs:(%rax)
  3d:	44                   	rex.R

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/07 11:52 linux-4.14.y 74766a973637 53c67432 .config console log report info ci2-linux-4-14 general protection fault in llc_ui_sendmsg
2022/04/05 04:04 linux-4.14.y 74766a973637 5915c2cb .config console log report info ci2-linux-4-14 general protection fault in llc_ui_sendmsg
* Struck through repros no longer work on HEAD.