Skip to content

Commit 14aab7e

Browse files
committed
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
Pull arm64 fixes from Will Deacon: "The main one is to fix the build after Willy's per-cpu entropy changes this week. Although that was already resolved elsewhere, the arm64 fix here is useful cleanup anyway. Other than that, we've got a fix for building with Clang's integrated assembler and a fix to make our IPv4 checksumming robust against invalid header lengths (this only seems to be triggerable by injected errors). - Fix build breakage due to circular headers - Fix build regression when using Clang's integrated assembler - Fix IPv4 header checksum code to deal with invalid length field - Fix broken path for Arm PMU entry in MAINTAINERS" * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: MAINTAINERS: Include drivers subdirs for ARM PMU PROFILING AND DEBUGGING entry arm64: csum: Fix handling of bad packets arm64: Drop unnecessary include from asm/smp.h arm64/alternatives: move length validation inside the subsection
2 parents c1954ca + 6a7389f commit 14aab7e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ F: arch/arm*/include/asm/perf_event.h
14251425
F: arch/arm*/kernel/hw_breakpoint.c
14261426
F: arch/arm*/kernel/perf_*
14271427
F: arch/arm/oprofile/common.c
1428-
F: drivers/perf/*
1428+
F: drivers/perf/
14291429
F: include/linux/perf/arm_pmu.h
14301430

14311431
ARM PORT

arch/arm64/include/asm/alternative.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ static inline void apply_alternatives_module(void *start, size_t length) { }
7777
"663:\n\t" \
7878
newinstr "\n" \
7979
"664:\n\t" \
80-
".previous\n\t" \
8180
".org . - (664b-663b) + (662b-661b)\n\t" \
82-
".org . - (662b-661b) + (664b-663b)\n" \
81+
".org . - (662b-661b) + (664b-663b)\n\t" \
82+
".previous\n" \
8383
".endif\n"
8484

8585
#define __ALTERNATIVE_CFG_CB(oldinstr, feature, cfg_enabled, cb) \

arch/arm64/include/asm/checksum.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ static inline __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
2424
{
2525
__uint128_t tmp;
2626
u64 sum;
27+
int n = ihl; /* we want it signed */
2728

2829
tmp = *(const __uint128_t *)iph;
2930
iph += 16;
30-
ihl -= 4;
31+
n -= 4;
3132
tmp += ((tmp >> 64) | (tmp << 64));
3233
sum = tmp >> 64;
3334
do {
3435
sum += *(const u32 *)iph;
3536
iph += 4;
36-
} while (--ihl);
37+
} while (--n > 0);
3738

3839
sum += ((sum >> 32) | (sum << 32));
3940
return csum_fold((__force u32)(sum >> 32));

arch/arm64/include/asm/smp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <linux/threads.h>
3131
#include <linux/cpumask.h>
3232
#include <linux/thread_info.h>
33-
#include <asm/pointer_auth.h>
3433

3534
DECLARE_PER_CPU_READ_MOSTLY(int, cpu_number);
3635

0 commit comments

Comments
 (0)