Merge branch 'android12-5.10' into android12-5.10-lts
Sync up with android12-5.10 for the following commits:591f4296ccUPSTREAM: f2fs: fix UAF in f2fs_available_free_memorycd5f87fadeFROMGIT: regmap-irq: Update interrupt clear register for proper reset5501913544UPSTREAM: iommu: Fix potential use-after-free during probe4c47eaa7c8BACKPORT: sched/fair: Fix fault in reweight_entityc3daae52afUPSTREAM: rcu/exp: Mark current CPU as exp-QS in IPI loop second passcb7e10d31bANDROID: vendor_hooks: Add hooks for binder proc transaction16d19b6561UPSTREAM: usb: gadget: rndis: check size of RNDIS_MSG_SET commandc7732dbce5UPSTREAM: USB: gadget: validate interface OS descriptor requests6f915dd2afANDROID: incremental-fs: remove index and incomplete dir on umountcbac4c1652ANDROID: GKI: rockchip: Update symbol need by system heap64fe36c410UPSTREAM: kfence: fix memory leak when cat kfence objects7a1e7dc41eUPSTREAM: arm64: mte: DC {GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1132cc28d20UPSTREAM: dma-buf: system_heap: Use 'for_each_sgtable_sg' in pages free flow01e13a46e4BACKPORT: arm64: uaccess: avoid blocking within critical sectionse97e339a68UPSTREAM: arm64: arm64_ftr_reg->name may not be a human-readable stringc6672561bcUPSTREAM: net: add and use skb_unclone_keeptruesize() helpera5c4e6ce74UPSTREAM: mm/userfaultfd: selftests: fix memory corruption with thp enableda90890b4c7UPSTREAM: KVM: arm64: Fix host stage-2 PGD refcountf6f03a70c2UPSTREAM: remoteproc: Fix the wrong default value of is_iomemcf59c9b9b2UPSTREAM: remoteproc: elf_loader: Fix loading segment when is_iomem true35c4c40dbbUPSTREAM: scsi: ufs: core: Unbreak the reset handler81ec07b6b9UPSTREAM: blkcg: fix memory leak in blk_iolatency_init234844b9feUPSTREAM: arm64: dts: qcom: ipq8074: remove USB tx-fifo-resize propertyafb9df4c90UPSTREAM: usb: xhci-mtk: fix issue of out-of-bounds array access900c38d4edUPSTREAM: mm/slub: fix endianness bug for alloc/free_traces attributese4f41530d4UPSTREAM: Revert "usb: dwc3: dwc3-qcom: Enable tx-fifo-resize property by default"e4757e9070UPSTREAM: usb: dwc3: core: Revise GHWPARAMS9 offsetf8b20495b7UPSTREAM: firmware: arm_scmi: Fix type error assignment in voltage protocold7ba0f636dUPSTREAM: firmware: arm_scmi: Fix type error in sensor protocol986262ed83UPSTREAM: coresight: trbe: Fix incorrect access of the sink specific datade27f42b19UPSTREAM: device property: Add missed header in fwnode.h5be4ad1d99UPSTREAM: usb: typec: tcpci: don't handle vSafe0V event if it's not enabledcac9433c3aUPSTREAM: driver core: fw_devlink: Improve handling of cyclic dependencies4137188c10UPSTREAM: tracing/boot: Fix to loop on only subkeyse44b1adb9eBACKPORT: mm/memory_hotplug: fix potential permanent lru cache disable1d3cff0b48UPSTREAM: usb: gadget: f_serial: Ensure gserial disconnected during unbinda8f9df1ffcFROMGIT: scsi: ufs: Fix a deadlock in the error handlerfb0fa7dc29UPSTREAM: scsi: ufs: Use DECLARE_COMPLETION_ONSTACK() where appropriate18d48b7c6dANDROID: GKI: Enable CONFIG_SERIAL_8250_RUNTIME_UARTS=08f280376b4BACKPORT: f2fs: fix up f2fs_lookup tracepoints233aba68e8UPSTREAM: tipc: improve size validations for received domain records944437cac9ANDROID: gki_defconfig: Enable NET_ACT_BPF Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I02bf56df8b0fc823b4f445603ced4adf53021ef1
This commit is contained in:
@@ -880,8 +880,9 @@ int tg_nop(struct task_group *tg, void *data)
|
||||
}
|
||||
#endif
|
||||
|
||||
static void set_load_weight(struct task_struct *p, bool update_load)
|
||||
static void set_load_weight(struct task_struct *p)
|
||||
{
|
||||
bool update_load = !(READ_ONCE(p->state) & TASK_NEW);
|
||||
int prio = p->static_prio - MAX_RT_PRIO;
|
||||
struct load_weight *load = &p->se.load;
|
||||
|
||||
@@ -3484,7 +3485,7 @@ int sched_fork(unsigned long clone_flags, struct task_struct *p)
|
||||
p->static_prio = NICE_TO_PRIO(0);
|
||||
|
||||
p->prio = p->normal_prio = p->static_prio;
|
||||
set_load_weight(p, false);
|
||||
set_load_weight(p);
|
||||
|
||||
/*
|
||||
* We don't need the reset flag anymore after the fork. It has
|
||||
@@ -5252,7 +5253,7 @@ void set_user_nice(struct task_struct *p, long nice)
|
||||
put_prev_task(rq, p);
|
||||
|
||||
p->static_prio = NICE_TO_PRIO(nice);
|
||||
set_load_weight(p, true);
|
||||
set_load_weight(p);
|
||||
old_prio = p->prio;
|
||||
p->prio = effective_prio(p);
|
||||
|
||||
@@ -5426,7 +5427,7 @@ static void __setscheduler_params(struct task_struct *p,
|
||||
*/
|
||||
p->rt_priority = attr->sched_priority;
|
||||
p->normal_prio = normal_prio(p);
|
||||
set_load_weight(p, true);
|
||||
set_load_weight(p);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -7569,7 +7570,7 @@ void __init sched_init(void)
|
||||
atomic_set(&rq->nr_iowait, 0);
|
||||
}
|
||||
|
||||
set_load_weight(&init_task, false);
|
||||
set_load_weight(&init_task);
|
||||
|
||||
/*
|
||||
* The boot idle thread does lazy MMU switching as well:
|
||||
|
||||
@@ -233,8 +233,8 @@ trace_boot_init_events(struct trace_array *tr, struct xbc_node *node)
|
||||
if (!node)
|
||||
return;
|
||||
/* per-event key starts with "event.GROUP.EVENT" */
|
||||
xbc_node_for_each_child(node, gnode)
|
||||
xbc_node_for_each_child(gnode, enode)
|
||||
xbc_node_for_each_subkey(node, gnode)
|
||||
xbc_node_for_each_subkey(gnode, enode)
|
||||
trace_boot_init_one_event(tr, gnode, enode);
|
||||
}
|
||||
#else
|
||||
@@ -315,7 +315,7 @@ trace_boot_init_instances(struct xbc_node *node)
|
||||
if (!node)
|
||||
return;
|
||||
|
||||
xbc_node_for_each_child(node, inode) {
|
||||
xbc_node_for_each_subkey(node, inode) {
|
||||
p = xbc_node_get_data(inode);
|
||||
if (!p || *p == '\0')
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user