Skip to content

Commit c96f95b

Browse files
committed
Merge branch 'for-next/misc' into for-next/core
* for-next/misc: arm64: mm: warn once for ioremap attempts on RAM mappings arm64: Disable branch profiling for all arm64 code arm64: kernel: initialize missing kexec_buf->random field arm64: simplify arch_uprobe_xol_was_trapped return
2 parents 2f8aed5 + 53f45f0 commit c96f95b

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

arch/arm64/Kbuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2+
3+
# Branch profiling isn't noinstr-safe
4+
subdir-ccflags-$(CONFIG_TRACE_BRANCH_PROFILING) += -DDISABLE_BRANCH_PROFILING
5+
26
obj-y += kernel/ mm/ net/
37
obj-$(CONFIG_KVM) += kvm/
48
obj-$(CONFIG_XEN) += xen/

arch/arm64/kernel/kexec_image.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static void *image_load(struct kimage *image,
4141
struct arm64_image_header *h;
4242
u64 flags, value;
4343
bool be_image, be_kernel;
44-
struct kexec_buf kbuf;
44+
struct kexec_buf kbuf = {};
4545
unsigned long text_offset, kernel_segment_number;
4646
struct kexec_segment *kernel_segment;
4747
int ret;

arch/arm64/kernel/probes/uprobes.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ bool arch_uprobe_xol_was_trapped(struct task_struct *t)
103103
* insn itself is trapped, then detect the case with the help of
104104
* invalid fault code which is being set in arch_uprobe_pre_xol
105105
*/
106-
if (t->thread.fault_code != UPROBE_INV_FAULT_CODE)
107-
return true;
108-
109-
return false;
106+
return t->thread.fault_code != UPROBE_INV_FAULT_CODE;
110107
}
111108

112109
bool arch_uprobe_skip_sstep(struct arch_uprobe *auprobe, struct pt_regs *regs)

arch/arm64/mm/ioremap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ void __iomem *ioremap_prot(phys_addr_t phys_addr, size_t size,
2424
return NULL;
2525

2626
/* Don't allow RAM to be mapped. */
27-
if (WARN_ON(pfn_is_map_memory(__phys_to_pfn(phys_addr))))
27+
if (WARN_ONCE(pfn_is_map_memory(__phys_to_pfn(phys_addr)),
28+
"ioremap attempted on RAM pfn\n"))
2829
return NULL;
2930

3031
/*

0 commit comments

Comments
 (0)