syzbot


WARNING in binder_transaction_buffer_release (2)

Status: fixed on 2020/11/16 12:12
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+e113a0b970b7b3f394ba@syzkaller.appspotmail.com
Fix commit: e8b8ae7ce32e binder: Remove bogus warning on failed same-process transaction
First crash: 1461d, last: 1417d
Cause bisection: introduced by (bisect log) :
commit 44d8047f1d87adc2fd7eccc88533794f6d88c15e
Author: Todd Kjos <tkjos@android.com>
Date: Tue Aug 28 20:46:25 2018 +0000

  binder: use standard functions to allocate fds

Crash: WARNING in binder_transaction_buffer_release (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 4b836a1426cb0f1ef2a6e211d7e553221594f8fc
Author: Jann Horn <jannh@google.com>
Date: Mon Jul 27 12:04:24 2020 +0000

  binder: Prevent context manager from incrementing ref 0

  
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.9 000/757] 5.9.2-rc1 review 766 (766) 2020/10/30 08:32
[PATCH 5.8 000/633] 5.8.17-rc1 review 638 (638) 2020/10/28 22:08
[PATCH 5.4 000/408] 5.4.73-rc1 review 410 (410) 2020/10/28 06:53
[PATCH] binder: Remove bogus warning on failed same-process transaction 3 (3) 2020/08/07 14:06
WARNING in binder_transaction_buffer_release (2) 2 (4) 2020/08/06 16:14
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in binder_transaction_buffer_release kernel syz error 38 1787d 1830d 12/26 fixed on 2019/08/14 02:14

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7043 at drivers/android/binder.c:2348 binder_transaction_buffer_release+0x601/0x8a0 drivers/android/binder.c:2348
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7043 Comm: syz-executor231 Not tainted 5.7.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x27b/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:175 [inline]
 fixup_bug arch/x86/kernel/traps.c:170 [inline]
 do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:binder_transaction_buffer_release+0x601/0x8a0 drivers/android/binder.c:2348
Code: bb fd 31 ff 41 89 c5 89 c6 e8 cb fe 81 fb 45 85 ed 0f 85 f9 4b 01 00 48 8d 45 40 48 89 44 24 28 e9 fa fa ff ff e8 3f fd 81 fb <0f> 0b e9 87 fc ff ff e8 33 fd 81 fb 4c 8b 44 24 20 48 89 d8 45 31
RSP: 0018:ffffc900017a7620 EFLAGS: 00010293
RAX: ffff888091eb2040 RBX: 0000000000000058 RCX: 1ffff110123d64ab
RDX: 0000000000000000 RSI: ffffffff85f14171 RDI: ffff8880974ec848
RBP: ffff88809f427380 R08: ffff888091eb2040 R09: fffff520002f4ee7
R10: ffffc900017a7737 R11: fffff520002f4ee6 R12: ffff8880a32084c0
R13: 0000000000000060 R14: ffff8880974ec800 R15: 0000000000000060
 binder_transaction+0x146d/0x6500 drivers/android/binder.c:3486
 binder_thread_write+0x818/0x2560 drivers/android/binder.c:3796
 binder_ioctl_write_read drivers/android/binder.c:4847 [inline]
 binder_ioctl+0x1008/0x1862 drivers/android/binder.c:5024
 vfs_ioctl fs/ioctl.c:47 [inline]
 ksys_ioctl+0x11a/0x180 fs/ioctl.c:771
 __do_sys_ioctl fs/ioctl.c:780 [inline]
 __se_sys_ioctl fs/ioctl.c:778 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:778
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x44b5d9
Code: e8 8c b5 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 2b cc fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc87b5eace8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000006dcc48 RCX: 000000000044b5d9
RDX: 0000000020000540 RSI: 00000000c0306201 RDI: 0000000000000003
RBP: 00000000006dcc40 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc4c
R13: 00007ffc8061ed5f R14: 00007fc87b5eb9c0 R15: 20c49ba5e353f7cf
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (442):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/26 15:00 upstream 9cb1fd0efd19 8ca3b7d2 .config console log report syz C ci-upstream-kasan-gce-root
2020/05/26 12:53 upstream 9cb1fd0efd19 8ca3b7d2 .config console log report syz C ci-upstream-kasan-gce-root
2020/05/25 01:37 upstream caffb99b6929 bd28eb9d .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/05/24 23:08 upstream caffb99b6929 bd28eb9d .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/05/23 15:36 upstream 444565650a5f 9682898d .config console log report syz C ci-upstream-kasan-gce
2020/05/23 10:37 upstream 444565650a5f 9682898d .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/05/23 15:21 upstream 444565650a5f 9682898d .config console log report syz C ci-upstream-kasan-gce-386
2020/05/23 12:54 linux-next c11d28ab4a69 9682898d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/05/23 09:14 linux-next c11d28ab4a69 9682898d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/05/23 12:40 upstream 444565650a5f 9682898d .config console log report syz ci-upstream-kasan-gce
2020/05/23 12:44 upstream 444565650a5f 9682898d .config console log report syz ci-upstream-kasan-gce-386
2020/07/06 17:58 upstream 7cc2a8ea1048 51095195 .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/03 09:02 upstream cd77006e01b3 bed10395 .config console log report ci-upstream-kasan-gce
2020/07/03 01:16 upstream cd77006e01b3 bed10395 .config console log report ci-upstream-kasan-gce
2020/06/30 16:32 upstream 4e99b32169e8 a2cdad9d .config console log report ci-upstream-kasan-gce-root
2020/06/26 17:44 upstream 4a21185cda0f aea82c00 .config console log report ci-upstream-kasan-gce-root
2020/06/25 10:19 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-root
2020/06/24 16:15 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce
2020/06/22 14:04 upstream 7ae77150d94d eabcced4 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/19 23:15 upstream 7ae77150d94d 81abc331 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/19 23:10 upstream 7ae77150d94d 81abc331 .config console log report ci-upstream-kasan-gce-root
2020/06/17 13:50 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce
2020/06/13 19:58 upstream 7ae77150d94d dbce178a .config console log report ci-upstream-kasan-gce-root
2020/06/13 18:42 upstream 7ae77150d94d dbce178a .config console log report ci-upstream-kasan-gce
2020/06/12 20:36 upstream 7ae77150d94d df590254 .config console log report ci-upstream-kasan-gce-root
2020/06/11 00:17 upstream 7ae77150d94d a6f7998d .config console log report ci-upstream-kasan-gce
2020/06/08 15:48 upstream 7ae77150d94d 7604bb03 .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/08 00:30 upstream 7ae77150d94d 2c2b926c .config console log report ci-upstream-kasan-gce
2020/06/07 08:18 upstream 7ae77150d94d e6b89e4e .config console log report ci-upstream-kasan-gce
2020/06/07 00:17 upstream 7ae77150d94d e6b89e4e .config console log report ci-upstream-kasan-gce-root
2020/06/06 23:31 upstream 7ae77150d94d e6b89e4e .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/06 10:48 upstream 7ae77150d94d e6b89e4e .config console log report ci-upstream-kasan-gce
2020/06/04 21:45 upstream acf25aa66371 6720fdef .config console log report ci-upstream-kasan-gce-selinux-root
2020/06/04 21:29 upstream 6929f71e46bd 6720fdef .config console log report ci-qemu-upstream
2020/06/02 06:45 upstream 9bf9511e3d9f a0331e89 .config console log report ci-upstream-kasan-gce-root
2020/06/02 06:04 upstream 9bf9511e3d9f a0331e89 .config console log report ci-upstream-kasan-gce-root
2020/06/02 00:18 upstream 9bf9511e3d9f a0331e89 .config console log report ci-upstream-kasan-gce-smack-root
2020/06/02 00:11 upstream 9bf9511e3d9f a0331e89 .config console log report ci-upstream-kasan-gce-root
2020/06/23 18:45 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-386
2020/06/23 18:43 upstream 7ae77150d94d 54566aff .config console log report ci-upstream-kasan-gce-386
2020/06/17 08:03 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce-386
2020/06/17 07:38 upstream 7ae77150d94d b9f3810b .config console log report ci-upstream-kasan-gce-386
2020/06/13 19:45 upstream 7ae77150d94d dbce178a .config console log report ci-upstream-kasan-gce-386
2020/06/12 20:35 upstream 7ae77150d94d df590254 .config console log report ci-upstream-kasan-gce-386
2020/06/12 05:51 upstream 7ae77150d94d 58802067 .config console log report ci-upstream-kasan-gce-386
2020/06/11 00:07 upstream 7ae77150d94d a6f7998d .config console log report ci-upstream-kasan-gce-386
2020/06/08 15:52 upstream 7ae77150d94d 7604bb03 .config console log report ci-upstream-kasan-gce-386
2020/06/04 21:19 upstream acf25aa66371 6720fdef .config console log report ci-upstream-kasan-gce-386
2020/05/28 03:05 upstream b0c3ba31be3e 142a0957 .config console log report ci-qemu-upstream-386
2020/06/24 11:12 linux-next e7b08814b16b 54566aff .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/24 08:47 linux-next e7b08814b16b 54566aff .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/16 21:06 linux-next e7b08814b16b 559fbe2d .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/10 23:44 linux-next e7b08814b16b a6f7998d .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/10 05:47 linux-next e7b08814b16b 860c4de9 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/09 03:02 linux-next e7b08814b16b 0d60b78a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/08 06:49 linux-next e7b08814b16b 7751efd0 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/06 11:25 linux-next e7b08814b16b e6b89e4e .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/06 11:08 linux-next e7b08814b16b e6b89e4e .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/05 12:51 linux-next e7b08814b16b 2420d1bc .config console log report ci-upstream-linux-next-kasan-gce-root
2020/06/05 02:58 linux-next e7b08814b16b 6720fdef .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/23 08:44 linux-next c11d28ab4a69 9682898d .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.