09 Jun, 2019

1 commit


05 Jun, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this software is licensed under the terms of the gnu general public
    license version 2 as published by the free software foundation and
    may be copied distributed and modified under those terms this
    program is distributed in the hope that it will be useful but
    without any warranty without even the implied warranty of
    merchantability or fitness for a particular purpose see the gnu
    general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 285 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Alexios Zavras
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190529141900.642774971@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

04 May, 2019

2 commits

  • Change-Id: I4380c68c3474026a42ffa9f95c525f9a563ba7a3

    Todd Kjos
     
  • Adds support for SCHED_BATCH/SCHED_FIFO/SCHED_RR
    priority inheritance.

    Bug: 34461621
    Bug: 37293077
    Bug: 120446518
    Change-Id: I71f356e476be2933713a0ecfa2cc31aa141e2dc6
    Signed-off-by: Martijn Coenen
    [AmitP: Include for struct sched_param]
    Signed-off-by: Amit Pundir
    [astrachan: Folded the following changes into this patch:
    69308b3b07dd ("ANDROID: binder: add min sched_policy to node.")
    7a6edeb62d86 ("ANDROID: binder: improve priority inheritance.")
    22b061b17679 ("ANDROID: binder: don't check prio permissions on restore.")
    67cf97141d81 ("ANDROID: binder: Add tracing for binder priority inheritance.")
    fb92c34f7ba3 ("ANDROID: binder: add RT inheritance flag to node.")
    c847b48f8cda ("ANDROID: binder: init desired_prio.sched_policy before use it")]
    Signed-off-by: Alistair Strachan

    Martijn Coenen
     

12 Feb, 2019

1 commit

  • Now that alloc->buffer points to the userspace vm_area
    rename buffer->data to buffer->user_data and rename
    local pointers that hold user addresses. Also use the
    "__user" tag to annotate all user pointers so sparse
    can flag cases where user pointer vaues are copied to
    kernel pointers. Refactor code to use offsets instead
    of user pointers.

    Signed-off-by: Todd Kjos
    Signed-off-by: Greg Kroah-Hartman

    Todd Kjos
     

14 Sep, 2018

1 commit

  • Binder uses internal fs interfaces to allocate and install fds:

    __alloc_fd
    __fd_install
    __close_fd
    get_files_struct
    put_files_struct

    These were used to support the passing of fds between processes
    as part of a transaction. The actual allocation and installation
    of the fds in the target process was handled by the sending
    process so the standard functions, alloc_fd() and fd_install()
    which assume task==current couldn't be used.

    This patch refactors this mechanism so that the fds are
    allocated and installed by the target process allowing the
    standard functions to be used.

    The sender now creates a list of fd fixups that contains the
    struct *file and the address to fixup with the new fd once
    it is allocated. This list is processed by the target process
    when the transaction is dequeued.

    A new error case is introduced by this change. If an async
    transaction with file descriptors cannot allocate new
    fds in the target (probably due to out of file descriptors),
    the transaction is discarded with a log message. In the old
    implementation this would have been detected in the sender
    context and failed prior to sending.

    Signed-off-by: Todd Kjos
    Signed-off-by: Greg Kroah-Hartman

    Todd Kjos
     

02 Aug, 2018

1 commit


28 Aug, 2017

1 commit


17 Jul, 2017

3 commits

  • Once locks are added, binder_ref's will only be accessed
    safely with the proc lock held. Refactor the inc/dec paths
    to make them atomic with the binder_get_ref* paths and
    node inc/dec. For example, instead of:

    ref = binder_get_ref(proc, handle, strong);
    ...
    binder_dec_ref(ref, strong);

    we now have:

    ret = binder_dec_ref_for_handle(proc, handle, strong, &rdata);

    Since the actual ref is no longer exposed to callers, a
    new struct binder_ref_data is introduced which can be used
    to return a copy of ref state.

    Signed-off-by: Todd Kjos
    Signed-off-by: Greg Kroah-Hartman

    Todd Kjos
     
  • Continuation of splitting the binder allocator from the binder
    driver. Separate binder_alloc functions from normal binder
    functions. Protect the allocator with a separate mutex.

    Signed-off-by: Todd Kjos
    Signed-off-by: Greg Kroah-Hartman

    Todd Kjos
     
  • The binder allocator is logically separate from the rest
    of the binder drivers. Separating the data structures
    to prepare for splitting into separate file with separate
    locking.

    Signed-off-by: Todd Kjos
    Signed-off-by: Greg Kroah-Hartman

    Todd Kjos
     

20 Oct, 2014

1 commit