android_kernel_samsung_sm8650/include
Shaleen Agrawal abe2e577c3 ANDROID: sched: Fix wake_q length tracking
The current approach to carry the wake_q length is exposed to an
intertask stack access. For example, if A sets the wake_q_head for
B but is preempted before it is able to set it back to NULL,
then B continues to point to an address corresponding to A's stack.
If B is then woken up by another task, it ends up accessing
the address pointing to A's stack. This causes a memory fault.

Replace this with a simple parameter which indicates the number
of tasks that are being woken up as part of the same event. This
avoids saving and accessing on stack pointers.

Bug: 173981591
Change-Id: I0031747d79a27673e680f7b1121eb4896ac7c699
Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
(cherry picked from commit 1e674650ffcd43de38d8a68549b345683a0a5f1d)
Signed-off-by: Quentin Perret <qperret@google.com>
2021-06-30 15:19:50 +00:00
..
acpi
asm-generic vmlinux.lds.h: Avoid orphan section with !SMP 2021-06-02 12:43:55 -07:00
clocksource
crypto
drm Revert "FROMLIST: drm/prime: add support for virtio exported objects" 2021-05-27 13:04:53 +01:00
dt-bindings dt-bindings: connector: Add PD rev 2.0 VDO definition 2021-06-04 11:43:01 +02:00
keys integrity-v5.13 2021-05-01 15:32:18 -07:00
kunit
kvm
linux ANDROID: sched: Fix wake_q length tracking 2021-06-30 15:19:50 +00:00
math-emu
media Merge 16b3d0cf5b Merge tag 'sched-core-2021-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into android-mainline 2021-05-10 10:28:52 +01:00
memory
misc
net Merge tag 'v5.13-rc7' into android-mainline 2021-06-21 15:14:49 +02:00
pcmcia
ras
rdma
scsi SCSI misc on 20210428 2021-04-28 17:22:10 -07:00
soc Networking changes for 5.13. 2021-04-29 11:57:23 -07:00
sound Linux 5.13-rc4 2021-06-01 09:10:12 +02:00
target
trace ANDROID: iommu: Add vendor hook for setting up DMA ops for IOMMU clients 2021-06-03 13:46:10 -07:00
uapi Merge 625acffd7a ("Merge tag 's390-5.13-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux") into android-mainline 2021-06-28 07:27:46 +02:00
vdso
video
xen xen/arm: move xen_swiotlb_detect to arm/swiotlb-xen.h 2021-05-14 15:52:05 +02:00
OWNERS ANDROID: Improve OWNERS file definitions 2021-05-21 14:25:12 +00:00