syzbot


kernel BUG in binder_alloc_deferred_release (2)

Status: upstream: reported C repro on 2024/10/28 16:33
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+dee8aa54cb2f5a150f9e@syzkaller.appspotmail.com
First crash: 43d, last: 30d
Cause bisection: introduced by (bisect log) :
commit f8d112a4e657c65c888e6b8a8435ef61a66e4ab8
Author: Liam R. Howlett <Liam.Howlett@Oracle.com>
Date: Fri Aug 30 04:00:54 2024 +0000

  mm/mmap: avoid zeroing vma tree in mmap_region()

Crash: kernel BUG in binder_alloc_deferred_release (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] kernel BUG in binder_alloc_deferred_release (2) 2 (6) 2024/11/04 17:32
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in binder_alloc_deferred_release kernel C done 4 899d 901d 22/28 fixed on 2023/02/24 13:50
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/11/21 06:56 25m retest repro upstream OK log
2024/11/04 16:26 30m liam.howlett@oracle.com git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/ mm-hotfixes-unstable OK log
2024/10/29 11:21 23m hdanton@sina.com patch upstream OK log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2024/11/04 11:37 4h42m bisect upstream OK (1) job log log
2024/10/25 15:11 2h31m bisect upstream error job log

Sample crash report:
------------[ cut here ]------------
kernel BUG at drivers/android/binder_alloc.c:897!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 1 UID: 0 PID: 5958 Comm: kworker/1:6 Not tainted 6.12.0-rc6-syzkaller-00099-g7758b206117d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events binder_deferred_func
RIP: 0010:binder_alloc_deferred_release+0xa2f/0xa40 drivers/android/binder_alloc.c:897
Code: 80 e1 07 80 c1 03 38 c1 7c b6 48 89 ef e8 79 1c c1 f8 eb ac e8 32 7a 5a f8 90 0f 0b e8 2a 7a 5a f8 90 0f 0b e8 22 7a 5a f8 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 90 90 90 90
RSP: 0018:ffffc900048afa48 EFLAGS: 00010293
RAX: ffffffff893a5fde RBX: ffff88807fa25a60 RCX: ffff88801cb00000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900048af9c0
RBP: ffff88807fa25a20 R08: 0000000000000003 R09: fffff52000915f38
R10: dffffc0000000000 R11: fffff52000915f38 R12: dffffc0000000000
R13: ffff88807fa25ac8 R14: dffffc0000000000 R15: ffff888029748910
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffca401ef00 CR3: 00000000611ae000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 binder_free_proc drivers/android/binder.c:5237 [inline]
 binder_proc_dec_tmpref+0x29e/0x500 drivers/android/binder.c:1559
 binder_deferred_release drivers/android/binder.c:6269 [inline]
 binder_deferred_func+0x12df/0x1460 drivers/android/binder.c:6296
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa63/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:binder_alloc_deferred_release+0xa2f/0xa40 drivers/android/binder_alloc.c:897
Code: 80 e1 07 80 c1 03 38 c1 7c b6 48 89 ef e8 79 1c c1 f8 eb ac e8 32 7a 5a f8 90 0f 0b e8 2a 7a 5a f8 90 0f 0b e8 22 7a 5a f8 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 90 90 90 90
RSP: 0018:ffffc900048afa48 EFLAGS: 00010293
RAX: ffffffff893a5fde RBX: ffff88807fa25a60 RCX: ffff88801cb00000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc900048af9c0
RBP: ffff88807fa25a20 R08: 0000000000000003 R09: fffff52000915f38
R10: dffffc0000000000 R11: fffff52000915f38 R12: dffffc0000000000
R13: ffff88807fa25ac8 R14: dffffc0000000000 R15: ffff888029748910
FS:  0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffca401ef00 CR3: 00000000611ae000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/07 05:39 upstream 7758b206117d df3dc63b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in binder_alloc_deferred_release
2024/10/25 02:30 upstream c2ee9f594da8 9fc8fe02 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in binder_alloc_deferred_release
2024/10/25 01:44 upstream c2ee9f594da8 9fc8fe02 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in binder_alloc_deferred_release
* Struck through repros no longer work on HEAD.