Skip to content

binder: several fixes for frozen notification

Carlos Llamas lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 15 repliesIn review
  2. v14 patches 16 repliesSuperseded

Changes in v2 from the cover letter

* debug output for BINDER_WORK_CLEAR_FREEZE_NOTIFICATION (Alice)
* allow notifications for dead nodes instead of EINVAL (Alice)
* add fix for memleak of proc->delivered_freeze
* add proc->delivered_freeze to debug output
* collect tags

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8binder: fix node UAF in binder_add_freeze_work()drivers/android/binder.c+7 -00 replies
2/8binder: fix OOB in binder_add_freeze_work()drivers/android/binder.c+2 -00 replies
3/8binder: fix freeze UAF in binder_release_work()drivers/android/binder.c+6 -00 replies
4/8binder: fix BINDER_WORK_FROZEN_BINDER debug logsdrivers/android/binder.c+3 -01 reply
5/8binder: fix BINDER_WORK_CLEAR_FREEZE_NOTIFICATION debug logsdrivers/android/binder.c+3 -02 replies
6/8binder: allow freeze notification for dead nodesdrivers/android/binder.c+13 -157 replies
7/8binder: fix memleak of proc->delivered_freezedrivers/android/binder.c+11 -02 replies
8/8binder: add delivered_freeze to debugfs outputdrivers/android/binder.c+4 -02 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchAlice RyhlTodd Kjos
1/8R-b A-b
2/8R-b A-b
3/8R-b A-b
4/8R-b A-b
5/8R-b A-b
6/8A-b
7/8R-b A-b
8/8R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] binder: several fixes for frozen notification

These are all fixes for the frozen notification patch [1], which as of today hasn't landed in mainline yet. As such, this patchset is rebased on top of the char-misc-next branch.

[1] https://lore.kernel.org/all/[email protected]/

Cc Yu-Ting Tseng <[email protected]>
Cc Alice Ryhl <[email protected]>
Cc Todd Kjos <[email protected]>
Cc Martijn Coenen <[email protected]>
Cc Arve Hjønnevåg <[email protected]>
Cc Viktor Martensson <[email protected]>

v1: https://lore.kernel.org/all/[email protected]/

v2:
* debug output for BINDER_WORK_CLEAR_FREEZE_NOTIFICATION (Alice)
* allow notifications for dead nodes instead of EINVAL (Alice)
* add fix for memleak of proc->delivered_freeze
* add proc->delivered_freeze to debug output
* collect tags

Carlos Llamas (8):
binder: fix node UAF in binder_add_freeze_work()
binder: fix OOB in binder_add_freeze_work()
binder: fix freeze UAF in binder_release_work()
binder: fix BINDER_WORK_FROZEN_BINDER debug logs
binder: fix BINDER_WORK_CLEAR_FREEZE_NOTIFICATION debug logs
binder: allow freeze notification for dead nodes
binder: fix memleak of proc->delivered_freeze
binder: add delivered_freeze to debugfs output

 drivers/android/binder.c | 64 ++++++++++++++++++++++++++++++----------
 1 file changed, 49 insertions(+), 15 deletions(-)
Signature · 1 line
2.46.1.824.gd892dcdcdd-goog