syzbot


memory leak in binder_transaction (2)

Status: fixed on 2023/12/21 03:45
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+7f10c1653e35933c0f1e@syzkaller.appspotmail.com
Fix commit: 1aa3aaf8953c binder: fix memory leaks of spam and pending work
First crash: 749d, last: 450d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] binder: fix memory leak of spamming work 4 (4) 2023/09/25 18:46
[syzbot] memory leak in binder_transaction (2) 0 (2) 2023/09/11 20:56
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in binder_transaction kernel C 3 1989d 2001d 12/28 fixed on 2019/08/05 13:45
Last patch testing requests (5)
Created Duration User Patch Repo Result
2023/09/25 21:00 10m retest repro upstream report log
2023/09/05 06:07 18m retest repro upstream report log
2023/06/27 04:10 15m retest repro upstream report log
2023/04/18 03:40 14m retest repro upstream report log
2022/11/21 01:58 14m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 59d0d52c30d4 log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810e2d6de0 (size 32):
  comm "syz-executor338", pid 5046, jiffies 4294968230 (age 13.590s)
  hex dump (first 32 bytes):
    e0 6d 2d 0e 81 88 ff ff e0 6d 2d 0e 81 88 ff ff  .m-......m-.....
    04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff81573b75>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
    [<ffffffff83d41873>] kmalloc include/linux/slab.h:599 [inline]
    [<ffffffff83d41873>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff83d41873>] binder_transaction+0x573/0x4050 drivers/android/binder.c:3152
    [<ffffffff83d45a05>] binder_thread_write+0x6b5/0x1860 drivers/android/binder.c:4010
    [<ffffffff83d486dc>] binder_ioctl_write_read drivers/android/binder.c:5066 [inline]
    [<ffffffff83d486dc>] binder_ioctl+0x1b2c/0x3cf0 drivers/android/binder.c:5352
    [<ffffffff816b25f2>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff816b25f2>] __do_sys_ioctl fs/ioctl.c:871 [inline]
    [<ffffffff816b25f2>] __se_sys_ioctl fs/ioctl.c:857 [inline]
    [<ffffffff816b25f2>] __x64_sys_ioctl+0xf2/0x140 fs/ioctl.c:857
    [<ffffffff84b30008>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84b30008>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory
write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory
write to /proc/sys/kernel/hung_task_check_interval_secs failed: No such file or directory
write to /proc/sys/kernel/softlockup_all_cpu_backtrace failed: No such file or directory

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/11 20:54 upstream 0bb80ecc33a8 59da8366 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in binder_transaction
2022/11/16 21:43 upstream 59d0d52c30d4 3a127a31 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in binder_transaction
* Struck through repros no longer work on HEAD.