Skip to content

Commit 1ac74d2

Browse files
committed
Merge remote-tracking branch 'stable/linux-6.6.y' into rpi-6.6.y
2 parents d9639ac + e3d332a commit 1ac74d2

File tree

349 files changed

+3139
-1834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+3139
-1834
lines changed

Documentation/devicetree/bindings/iio/health/maxim,max30102.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ allOf:
4242
properties:
4343
compatible:
4444
contains:
45-
const: maxim,max30100
45+
const: maxim,max30102
4646
then:
4747
properties:
4848
maxim,green-led-current-microamp: false

Documentation/devicetree/bindings/net/mediatek,net.yaml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ allOf:
337337
minItems: 4
338338

339339
clocks:
340-
minItems: 34
341-
maxItems: 34
340+
minItems: 24
341+
maxItems: 24
342342

343343
clock-names:
344344
items:
@@ -351,18 +351,6 @@ allOf:
351351
- const: ethwarp_wocpu1
352352
- const: ethwarp_wocpu0
353353
- const: esw
354-
- const: netsys0
355-
- const: netsys1
356-
- const: sgmii_tx250m
357-
- const: sgmii_rx250m
358-
- const: sgmii2_tx250m
359-
- const: sgmii2_rx250m
360-
- const: top_usxgmii0_sel
361-
- const: top_usxgmii1_sel
362-
- const: top_sgm0_sel
363-
- const: top_sgm1_sel
364-
- const: top_xfi_phy0_xtal_sel
365-
- const: top_xfi_phy1_xtal_sel
366354
- const: top_eth_gmii_sel
367355
- const: top_eth_refck_50m_sel
368356
- const: top_eth_sys_200m_sel
@@ -375,16 +363,10 @@ allOf:
375363
- const: top_netsys_sync_250m_sel
376364
- const: top_netsys_ppefb_250m_sel
377365
- const: top_netsys_warp_sel
378-
- const: wocpu1
379-
- const: wocpu0
380366
- const: xgp1
381367
- const: xgp2
382368
- const: xgp3
383369

384-
mediatek,sgmiisys:
385-
minItems: 2
386-
maxItems: 2
387-
388370
patternProperties:
389371
"^mac@[0-1]$":
390372
type: object

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 6
4-
SUBLEVEL = 30
4+
SUBLEVEL = 31
55
EXTRAVERSION =
66
NAME = Hurr durr I'ma ninja sloth
77

arch/arm/kernel/sleep.S

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ cpu_resume_after_mmu:
127127
instr_sync
128128
#endif
129129
bl cpu_init @ restore the und/abt/irq banked regs
130+
#if defined(CONFIG_KASAN) && defined(CONFIG_KASAN_STACK)
131+
mov r0, sp
132+
bl kasan_unpoison_task_stack_below
133+
#endif
130134
mov r0, #0 @ return zero on success
131135
ldmfd sp!, {r4 - r11, pc}
132136
ENDPROC(cpu_resume_after_mmu)

arch/arm64/boot/dts/qcom/sa8155p-adp.dts

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,16 @@
367367
};
368368
};
369369

370+
&pmm8155au_1_gpios {
371+
pmm8155au_1_sdc2_cd: sdc2-cd-default-state {
372+
pins = "gpio4";
373+
function = "normal";
374+
input-enable;
375+
bias-pull-up;
376+
power-source = <0>;
377+
};
378+
};
379+
370380
&qupv3_id_1 {
371381
status = "okay";
372382
};
@@ -384,10 +394,10 @@
384394
&sdhc_2 {
385395
status = "okay";
386396

387-
cd-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
397+
cd-gpios = <&pmm8155au_1_gpios 4 GPIO_ACTIVE_LOW>;
388398
pinctrl-names = "default", "sleep";
389-
pinctrl-0 = <&sdc2_on>;
390-
pinctrl-1 = <&sdc2_off>;
399+
pinctrl-0 = <&sdc2_on &pmm8155au_1_sdc2_cd>;
400+
pinctrl-1 = <&sdc2_off &pmm8155au_1_sdc2_cd>;
391401
vqmmc-supply = <&vreg_l13c_2p96>; /* IO line power */
392402
vmmc-supply = <&vreg_l17a_2p96>; /* Card power line */
393403
bus-width = <4>;
@@ -505,13 +515,6 @@
505515
bias-pull-up; /* pull up */
506516
drive-strength = <16>; /* 16 MA */
507517
};
508-
509-
sd-cd-pins {
510-
pins = "gpio96";
511-
function = "gpio";
512-
bias-pull-up; /* pull up */
513-
drive-strength = <2>; /* 2 MA */
514-
};
515518
};
516519

517520
sdc2_off: sdc2-off-state {
@@ -532,13 +535,6 @@
532535
bias-pull-up; /* pull up */
533536
drive-strength = <2>; /* 2 MA */
534537
};
535-
536-
sd-cd-pins {
537-
pins = "gpio96";
538-
function = "gpio";
539-
bias-pull-up; /* pull up */
540-
drive-strength = <2>; /* 2 MA */
541-
};
542538
};
543539

544540
usb2phy_ac_en1_default: usb2phy-ac-en1-default-state {

arch/arm64/kvm/vgic/vgic-kvm-device.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,16 +337,12 @@ int kvm_register_vgic_device(unsigned long type)
337337
int vgic_v2_parse_attr(struct kvm_device *dev, struct kvm_device_attr *attr,
338338
struct vgic_reg_attr *reg_attr)
339339
{
340-
int cpuid;
340+
int cpuid = FIELD_GET(KVM_DEV_ARM_VGIC_CPUID_MASK, attr->attr);
341341

342-
cpuid = (attr->attr & KVM_DEV_ARM_VGIC_CPUID_MASK) >>
343-
KVM_DEV_ARM_VGIC_CPUID_SHIFT;
344-
345-
if (cpuid >= atomic_read(&dev->kvm->online_vcpus))
346-
return -EINVAL;
347-
348-
reg_attr->vcpu = kvm_get_vcpu(dev->kvm, cpuid);
349342
reg_attr->addr = attr->attr & KVM_DEV_ARM_VGIC_OFFSET_MASK;
343+
reg_attr->vcpu = kvm_get_vcpu_by_id(dev->kvm, cpuid);
344+
if (!reg_attr->vcpu)
345+
return -EINVAL;
350346

351347
return 0;
352348
}

arch/arm64/net/bpf_jit_comp.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,15 +1738,15 @@ static void invoke_bpf_prog(struct jit_ctx *ctx, struct bpf_tramp_link *l,
17381738

17391739
emit_call(enter_prog, ctx);
17401740

1741+
/* save return value to callee saved register x20 */
1742+
emit(A64_MOV(1, A64_R(20), A64_R(0)), ctx);
1743+
17411744
/* if (__bpf_prog_enter(prog) == 0)
17421745
* goto skip_exec_of_prog;
17431746
*/
17441747
branch = ctx->image + ctx->idx;
17451748
emit(A64_NOP, ctx);
17461749

1747-
/* save return value to callee saved register x20 */
1748-
emit(A64_MOV(1, A64_R(20), A64_R(0)), ctx);
1749-
17501750
emit(A64_ADD_I(1, A64_R(0), A64_SP, args_off), ctx);
17511751
if (!p->jited)
17521752
emit_addr_mov_i64(A64_R(1), (const u64)p->insnsi, ctx);

arch/mips/include/asm/ptrace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ extern unsigned long exception_ip(struct pt_regs *regs);
159159
#define exception_ip(regs) exception_ip(regs)
160160
#define profile_pc(regs) instruction_pointer(regs)
161161

162-
extern asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall);
162+
extern asmlinkage long syscall_trace_enter(struct pt_regs *regs);
163163
extern asmlinkage void syscall_trace_leave(struct pt_regs *regs);
164164

165165
extern void die(const char *, struct pt_regs *) __noreturn;

arch/mips/kernel/asm-offsets.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ void output_thread_info_defines(void)
101101
OFFSET(TI_CPU, thread_info, cpu);
102102
OFFSET(TI_PRE_COUNT, thread_info, preempt_count);
103103
OFFSET(TI_REGS, thread_info, regs);
104+
OFFSET(TI_SYSCALL, thread_info, syscall);
104105
DEFINE(_THREAD_SIZE, THREAD_SIZE);
105106
DEFINE(_THREAD_MASK, THREAD_MASK);
106107
DEFINE(_IRQ_STACK_SIZE, IRQ_STACK_SIZE);

arch/mips/kernel/ptrace.c

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,16 +1317,13 @@ long arch_ptrace(struct task_struct *child, long request,
13171317
* Notification of system call entry/exit
13181318
* - triggered by current->work.syscall_trace
13191319
*/
1320-
asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall)
1320+
asmlinkage long syscall_trace_enter(struct pt_regs *regs)
13211321
{
13221322
user_exit();
13231323

1324-
current_thread_info()->syscall = syscall;
1325-
13261324
if (test_thread_flag(TIF_SYSCALL_TRACE)) {
13271325
if (ptrace_report_syscall_entry(regs))
13281326
return -1;
1329-
syscall = current_thread_info()->syscall;
13301327
}
13311328

13321329
#ifdef CONFIG_SECCOMP
@@ -1335,7 +1332,7 @@ asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall)
13351332
struct seccomp_data sd;
13361333
unsigned long args[6];
13371334

1338-
sd.nr = syscall;
1335+
sd.nr = current_thread_info()->syscall;
13391336
sd.arch = syscall_get_arch(current);
13401337
syscall_get_arguments(current, regs, args);
13411338
for (i = 0; i < 6; i++)
@@ -1345,23 +1342,23 @@ asmlinkage long syscall_trace_enter(struct pt_regs *regs, long syscall)
13451342
ret = __secure_computing(&sd);
13461343
if (ret == -1)
13471344
return ret;
1348-
syscall = current_thread_info()->syscall;
13491345
}
13501346
#endif
13511347

13521348
if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
13531349
trace_sys_enter(regs, regs->regs[2]);
13541350

1355-
audit_syscall_entry(syscall, regs->regs[4], regs->regs[5],
1351+
audit_syscall_entry(current_thread_info()->syscall,
1352+
regs->regs[4], regs->regs[5],
13561353
regs->regs[6], regs->regs[7]);
13571354

13581355
/*
13591356
* Negative syscall numbers are mistaken for rejected syscalls, but
13601357
* won't have had the return value set appropriately, so we do so now.
13611358
*/
1362-
if (syscall < 0)
1359+
if (current_thread_info()->syscall < 0)
13631360
syscall_set_return_value(current, regs, -ENOSYS, 0);
1364-
return syscall;
1361+
return current_thread_info()->syscall;
13651362
}
13661363

13671364
/*

0 commit comments

Comments
 (0)