syzbot


invalid opcode in binder_alloc_do_buffer_copy

Status: closed as dup on 2019/05/17 09:50
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+f16bdc2ff181f48a0113@syzkaller.appspotmail.com
First crash: 2116d, last: 2114d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
kernel BUG at drivers/android/binder_alloc.c:LINE! (3) kernel C done 24 2025d 2094d

Sample crash report:
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 1373 Comm: syz-executor.4 Not tainted 5.0.0+ #13
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:binder_alloc_do_buffer_copy+0xd6/0x510 drivers/android/binder_alloc.c:1141
Code: 02 00 0f 85 20 04 00 00 4d 8b 64 24 58 49 29 dc e8 1f 18 28 fc 4c 89 e6 4c 89 ef e8 34 19 28 fc 4d 39 e5 76 07 e8 0a 18 28 fc <0f> 0b e8 03 18 28 fc 4c 8b 75 d0 4d 29 ec 4c 89 e6 4c 89 f7 e8 11
netlink: 4 bytes leftover after parsing attributes in process `syz-executor.1'.
RSP: 0018:ffff888200fdf550 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000020004000 RCX: ffffc9000e663000
RDX: 00000000000003b2 RSI: ffffffff85483df6 RDI: 0000000000000006
RBP: ffff888200fdf5d0 R08: ffff8880883c00c0 R09: 0000000000000028
R10: ffffed10401fbf01 R11: ffff888200fdf80f R12: 0000000000000008
R13: 0000000000000028 R14: ffff888012f32fd0 R15: 0000000000000000
FS:  00007f3b38c4d700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004dbf88 CR3: 0000000056846000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
kobject: 'hwsim1861' (00000000872cdd77): kobject_add_internal: parent: 'mac80211_hwsim', set: 'devices'
 binder_alloc_copy_from_buffer+0x37/0x42 drivers/android/binder_alloc.c:1187
 binder_get_object+0xc3/0x200 drivers/android/binder.c:2062
 binder_transaction+0x2b4a/0x6690 drivers/android/binder.c:3231
kobject: 'hwsim1861' (00000000872cdd77): kobject_uevent_env
 binder_thread_write+0x64a/0x2820 drivers/android/binder.c:3792
kobject: 'hwsim1861' (00000000872cdd77): fill_kobj_path: path = '/devices/virtual/mac80211_hwsim/hwsim1861'
 binder_ioctl_write_read drivers/android/binder.c:4825 [inline]
 binder_ioctl+0x1033/0x183b drivers/android/binder.c:5002
kobject: 'loop3' (000000009ef0c43f): kobject_uevent_env
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0xd6e/0x1390 fs/ioctl.c:696
kobject: 'loop3' (000000009ef0c43f): fill_kobj_path: path = '/devices/virtual/block/loop3'
kobject: 'hwsim1861' (00000000872cdd77): kobject_uevent_env
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457f29
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f3b38c4cc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457f29
RDX: 00000000200003c0 RSI: 00000000c0306201 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3b38c4d6d4
R13: 00000000004bf25a R14: 00000000004d0c00 R15: 00000000ffffffff
Modules linked in:
kobject: 'loop2' (00000000aa4db5c8): kobject_uevent_env
---[ end trace 1f5a981b95bbf9e6 ]---
kobject: 'hwsim1861' (00000000872cdd77): fill_kobj_path: path = '/devices/virtual/mac80211_hwsim/hwsim1861'
RIP: 0010:binder_alloc_do_buffer_copy+0xd6/0x510 drivers/android/binder_alloc.c:1141
kobject: 'loop2' (00000000aa4db5c8): fill_kobj_path: path = '/devices/virtual/block/loop2'
Code: 02 00 0f 85 20 04 00 00 4d 8b 64 24 58 49 29 dc e8 1f 18 28 fc 4c 89 e6 4c 89 ef e8 34 19 28 fc 4d 39 e5 76 07 e8 0a 18 28 fc <0f> 0b e8 03 18 28 fc 4c 8b 75 d0 4d 29 ec 4c 89 e6 4c 89 f7 e8 11
kobject: 'ieee80211' (000000007bd63563): kobject_add_internal: parent: 'hwsim1861', set: '(null)'
RSP: 0018:ffff888200fdf550 EFLAGS: 00010216
kobject: 'phy1861' (000000000c2c12da): kobject_add_internal: parent: 'ieee80211', set: 'devices'
RAX: 0000000000040000 RBX: 0000000020004000 RCX: ffffc9000e663000
kobject: 'phy1861' (000000000c2c12da): kobject_uevent_env
kobject: 'phy1861' (000000000c2c12da): fill_kobj_path: path = '/devices/virtual/mac80211_hwsim/hwsim1861/ieee80211/phy1861'
RDX: 00000000000003b2 RSI: ffffffff85483df6 RDI: 0000000000000006
RBP: ffff888200fdf5d0 R08: ffff8880883c00c0 R09: 0000000000000028
R10: ffffed10401fbf01 R11: ffff888200fdf80f R12: 0000000000000008
R13: 0000000000000028 R14: ffff888012f32fd0 R15: 0000000000000000
kobject: 'loop2' (00000000aa4db5c8): kobject_uevent_env
FS:  00007f3b38c4d700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
kobject: 'loop2' (00000000aa4db5c8): fill_kobj_path: path = '/devices/virtual/block/loop2'
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000470080 CR3: 0000000056846000 CR4: 00000000001406f0
binder_translate_handle: 4 callbacks suppressed
binder: 1774:1782 got transaction with invalid handle, 0
kobject: 'loop3' (000000009ef0c43f): kobject_uevent_env
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
kobject: 'loop3' (000000009ef0c43f): fill_kobj_path: path = '/devices/virtual/block/loop3'
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/03/09 10:55 upstream 3601fe43e816 12365b99 .config console log report ci-upstream-kasan-gce-smack-root
2019/03/07 10:42 upstream f90d64483ebd 8c085c5e .config console log report ci-upstream-kasan-gce-smack-root
* Struck through repros no longer work on HEAD.