Skip to content
Snippets Groups Projects
  1. Mar 01, 2023
  2. Feb 15, 2023
  3. Feb 13, 2023
  4. Feb 10, 2023
    • Maulik Shah's avatar
      ANDROID: cpuidle-psci: Fix suspicious RCU usage · 3d91858a
      Maulik Shah authored
      
      This change fixes suspicious RCU usage warnings from vendor hook.
      
          =============================
          WARNING: suspicious RCU usage
          5.15.41-debug-gc1163f69ba3b-dirty #1 Not tainted
          -----------------------------
          include/trace/events/lock.h:37 suspicious rcu_dereference_check() usage!
      
          other info that might help us debug this:
      
          rcu_scheduler_active = 2, debug_locks = 1
          RCU used illegally from extended quiescent state!
          no locks held by swapper/0/0.
      
          stack backtrace:
          CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.41-debug-gc1163f69ba3b-dirty #1
      
          Call trace:
           dump_backtrace+0x0/0x1d8
           dump_stack+0x1c/0x4c
          ..
          ..
           _printk+0x58/0x84
           lockdep_rcu_suspicious+0x44/0x15c
           trace_android_vh_printk_caller_id+0xc4/0x13c
           vprintk_store+0x54/0x59c
           vprintk_emit+0x8c/0x130
           vprintk_default+0x48/0x74
           vprintk+0xf8/0x13c
           _printk+0x58/0x84
           lockdep_rcu_suspicious+0x44/0x15c
           trace_android_vh_cpuidle_psci_enter+0xc4/0x144
           __psci_enter_domain_idle_state+0x64/0x118
           psci_enter_domain_idle_state+0x1c/0x2c
           cpuidle_enter_state+0x14c/0x2fc
           cpuidle_enter+0x3c/0x58
      
      Bug: 267847290
      Fixes: 3567f516 ("ANDROID: cpuidle-psci: Add vendor hook for cpuidle psci enter and exit")
      Change-Id: I910a6a0595c3a79b75e581297eb56d512ce5885c
      Signed-off-by: default avatarMaulik Shah <quic_mkshah@quicinc.com>
      3d91858a
    • Ray Chi's avatar
      ANDROID: Update the ABI representation · df71c552
      Ray Chi authored
      
      1 function symbol(s) added
        'void usb_udc_vbus_handler(struct usb_gadget *, bool)'
      
      Bug: 267846601
      Change-Id: Ie1e8a39eca7c610b410a8768d3f3ba32eed9a46d
      Signed-off-by: default avatarRay Chi <raychi@google.com>
      df71c552
  5. Feb 09, 2023
    • Greg Kroah-Hartman's avatar
      ANDROID: fix up struct task_struct ABI change in 5.10.162 · bb12156e
      Greg Kroah-Hartman authored
      
      In commit 76050cdc ("UPSTREAM: io_uring: import 5.15-stable
      io_uring"), a new field was added to struct task_struct.  Move it to the
      proper location and macro in order to preserve the kernel ABI.
      
      Because of this preservation, the .xml file also is updated:
      
      type 'struct task_struct' changed
        member 'union { void* pf_io_worker; struct { u64 android_kabi_reserved1; }; union { }; }' was added
        member 'u64 android_kabi_reserved1' was removed
      
      Bug: 161946584
      Bug: 268174392
      Fixes: 76050cdc ("UPSTREAM: io_uring: import 5.15-stable io_uring")
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      Change-Id: Ib2f65b7c1a973794b7ab525a9304f666ffebc9ee
      bb12156e
    • Greg Kroah-Hartman's avatar
      ANDROID: struct io_uring ABI preservation hack for 5.10.162 changes · 302ed29f
      Greg Kroah-Hartman authored
      
      In the 5.10.162 release, the io_uring code was synced with the version
      that is in the 5.15.y kernel tree in order to resolve a huge number of
      potential, and known, problems with the codebase.  This makes for a more
      secure and easier-to-update-and-maintain 5.10.y kernel tree, so this is
      a great thing, however this caused some issues when it comes to the
      Android KABI preservation and checking tools.
      
      A number of the io_uring structures get used in other core kernel
      structures, only as "opaque" pointers, so there is not any real ABI
      breakage.  But, due to the visibility of the structures going away, the
      CRC values of many scheduler variables and functions were changed.
      
      In order to preserve the CRC values, to prevent all device kernels to be
      forced to rebuild for no reason whatsoever from a functional point of
      view, we need to keep around the "old" io_uring structures for the CRC
      calculation only.  This is done by the following definitions of struct
      io_identity and struct io_uring_task which will only be visible when the
      CRC calculation build happens, not in any functional kernel build.
      
      Yes, this all is a horrible hack, and these really are not the true
      structures that any code uses, but so life is in the world of stable
      apis.
      
      Bug: 161946584
      Bug: 268174392
      Fixes: 76050cdc ("UPSTREAM: io_uring: import 5.15-stable io_uring")
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      Change-Id: I2294f220ae78fe9aa32ee25b81829ae765e9deb2
      302ed29f
    • Greg Kroah-Hartman's avatar
      ANDROID: add flags variable back to struct proto_ops · d2c5262f
      Greg Kroah-Hartman authored
      
      In commit a2b8beeb ("UPSTREAM: net: remove cmsg restriction from
      io_uring based send/recvmsg calls") the flags variable was removed from
      struct proto_ops as it is no longer needed.
      
      But the ABI signatures break, so put it back to preserve this, there's
      no functional change here.
      
      Bug: 161946584
      Bug: 268174392
      Fixes: a2b8beeb ("UPSTREAM: net: remove cmsg restriction from io_uring based send/recvmsg calls")
      Change-Id: Ic6a868f038701a61c993e18b44cdd8ec8b0a4d58
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      d2c5262f
  6. Feb 08, 2023
Loading