Skip to content

binder: Use kmap_local_page() in binder_alloc.c

Fabio M. De Francesco lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3binder: Use memset_page() in binder_alloc_clear_buf()drivers/android/binder_alloc.c+1 -40 replies
2/3binder: Use kmap_local_page() in binder_alloc_copy_user_to_buffer()drivers/android/binder_alloc.c+2 -20 replies
3/3binder: Use memcpy_{to,from}_page() in binder_alloc_do_buffer_copy()drivers/android/binder_alloc.c+2 -110 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTodd KjosIra Weiny
SeriesR-b
1/3A-b
2/3A-b
3/3A-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/3] binder: Use kmap_local_page() in binder_alloc.c

Use kmap_local_page() in binder_alloc.c because kmap() and kmap_atomic() are being deprecated and kmap_local_page() is preferred where it is feasible.

With kmap_local_page(), the mapping is per thread, CPU local and not globally visible. Furthermore, the mapping can be acquired from any context, including interrupts.

Fabio M. De Francesco (3):
binder: Use memset_page() in binder_alloc_clear_buf()
binder: Use kmap_local_page() in binder_alloc_copy_user_to_buffer()
binder: Use memcpy_{to,from}_page() in binder_alloc_do_buffer_copy()

 drivers/android/binder_alloc.c | 22 +++++-----------------
 1 file changed, 5 insertions(+), 17 deletions(-)
Signature · 1 line
2.34.1