Skip to content

Commit 14970f2

Browse files
committed
Merge branch 'akpm' (patches from Andrew)
Merge misc fixes from Andrew Morton: "20 fixes" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: drivers/misc/sgi-gru/grumain.c: remove bogus 0x prefix from printk cris/arch-v32: cryptocop: print a hex number after a 0x prefix ipack: print a hex number after a 0x prefix block: DAC960: print a hex number after a 0x prefix fs: exofs: print a hex number after a 0x prefix lib/genalloc.c: start search from start of chunk mm: memcontrol: do not recurse in direct reclaim CREDITS: update credit information for Martin Kepplinger proc: fix NULL dereference when reading /proc/<pid>/auxv mm: kmemleak: ensure that the task stack is not freed during scanning lib/stackdepot.c: bump stackdepot capacity from 16MB to 128MB latent_entropy: raise CONFIG_FRAME_WARN by default kconfig.h: remove config_enabled() macro ipc: account for kmem usage on mqueue and msg mm/slab: improve performance of gathering slabinfo stats mm: page_alloc: use KERN_CONT where appropriate mm/list_lru.c: avoid error-path NULL pointer deref h8300: fix syscall restarting kcov: properly check if we are in an interrupt mm/slab: fix kmemcg cache creation delayed issue
2 parents 67463e5 + 8e81910 commit 14970f2

24 files changed

Lines changed: 89 additions & 51 deletions

File tree

CREDITS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,10 +1864,11 @@ S: The Netherlands
18641864

18651865
N: Martin Kepplinger
18661866
E: martink@posteo.de
1867-
E: martin.kepplinger@theobroma-systems.com
1867+
E: martin.kepplinger@ginzinger.com
18681868
W: http://www.martinkepplinger.com
18691869
D: mma8452 accelerators iio driver
1870-
D: Kernel cleanups
1870+
D: pegasus_notetaker input driver
1871+
D: Kernel fixes and cleanups
18711872
S: Garnisonstraße 26
18721873
S: 4020 Linz
18731874
S: Austria

arch/cris/arch-v32/drivers/cryptocop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3149,7 +3149,7 @@ static void print_dma_descriptors(struct cryptocop_int_operation *iop)
31493149
printk("print_dma_descriptors start\n");
31503150

31513151
printk("iop:\n");
3152-
printk("\tsid: 0x%lld\n", iop->sid);
3152+
printk("\tsid: 0x%llx\n", iop->sid);
31533153

31543154
printk("\tcdesc_out: 0x%p\n", iop->cdesc_out);
31553155
printk("\tcdesc_in: 0x%p\n", iop->cdesc_in);

arch/h8300/include/asm/thread_info.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ struct thread_info {
3131
int cpu; /* cpu we're on */
3232
int preempt_count; /* 0 => preemptable, <0 => BUG */
3333
mm_segment_t addr_limit;
34-
struct restart_block restart_block;
3534
};
3635

3736
/*
@@ -44,9 +43,6 @@ struct thread_info {
4443
.cpu = 0, \
4544
.preempt_count = INIT_PREEMPT_COUNT, \
4645
.addr_limit = KERNEL_DS, \
47-
.restart_block = { \
48-
.fn = do_no_restart_syscall, \
49-
}, \
5046
}
5147

5248
#define init_thread_info (init_thread_union.thread_info)

arch/h8300/kernel/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ restore_sigcontext(struct sigcontext *usc, int *pd0)
7979
unsigned int er0;
8080

8181
/* Always make any pending restarted system calls return -EINTR */
82-
current_thread_info()->restart_block.fn = do_no_restart_syscall;
82+
current->restart_block.fn = do_no_restart_syscall;
8383

8484
/* restore passed registers */
8585
#define COPY(r) do { err |= get_user(regs->r, &usc->sc_##r); } while (0)

arch/x86/mm/kaslr.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ void __init kernel_randomize_memory(void)
104104
* consistent with the vaddr_start/vaddr_end variables.
105105
*/
106106
BUILD_BUG_ON(vaddr_start >= vaddr_end);
107-
BUILD_BUG_ON(config_enabled(CONFIG_X86_ESPFIX64) &&
107+
BUILD_BUG_ON(IS_ENABLED(CONFIG_X86_ESPFIX64) &&
108108
vaddr_end >= EFI_VA_START);
109-
BUILD_BUG_ON((config_enabled(CONFIG_X86_ESPFIX64) ||
110-
config_enabled(CONFIG_EFI)) &&
109+
BUILD_BUG_ON((IS_ENABLED(CONFIG_X86_ESPFIX64) ||
110+
IS_ENABLED(CONFIG_EFI)) &&
111111
vaddr_end >= __START_KERNEL_map);
112112
BUILD_BUG_ON(vaddr_end > __START_KERNEL_map);
113113

drivers/block/DAC960.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2954,7 +2954,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device,
29542954
case DAC960_PD_Controller:
29552955
if (!request_region(Controller->IO_Address, 0x80,
29562956
Controller->FullModelName)) {
2957-
DAC960_Error("IO port 0x%d busy for Controller at\n",
2957+
DAC960_Error("IO port 0x%lx busy for Controller at\n",
29582958
Controller, Controller->IO_Address);
29592959
goto Failure;
29602960
}
@@ -2990,7 +2990,7 @@ DAC960_DetectController(struct pci_dev *PCI_Device,
29902990
case DAC960_P_Controller:
29912991
if (!request_region(Controller->IO_Address, 0x80,
29922992
Controller->FullModelName)){
2993-
DAC960_Error("IO port 0x%d busy for Controller at\n",
2993+
DAC960_Error("IO port 0x%lx busy for Controller at\n",
29942994
Controller, Controller->IO_Address);
29952995
goto Failure;
29962996
}

drivers/ipack/ipack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
178178
idev->id_vendor, idev->id_device);
179179
}
180180

181-
ipack_device_attr(id_format, "0x%hhu\n");
181+
ipack_device_attr(id_format, "0x%hhx\n");
182182

183183
static DEVICE_ATTR_RO(id);
184184
static DEVICE_ATTR_RO(id_device);

drivers/misc/sgi-gru/grumain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ static void gru_unload_mm_tracker(struct gru_state *gru,
283283
spin_lock(&gru->gs_asid_lock);
284284
BUG_ON((asids->mt_ctxbitmap & ctxbitmap) != ctxbitmap);
285285
asids->mt_ctxbitmap ^= ctxbitmap;
286-
gru_dbg(grudev, "gid %d, gts %p, gms %p, ctxnum 0x%d, asidmap 0x%lx\n",
286+
gru_dbg(grudev, "gid %d, gts %p, gms %p, ctxnum %d, asidmap 0x%lx\n",
287287
gru->gs_gid, gts, gms, gts->ts_ctxnum, gms->ms_asidmap[0]);
288288
spin_unlock(&gru->gs_asid_lock);
289289
spin_unlock(&gms->ms_asid_lock);

fs/exofs/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static bool exofs_check_page(struct page *page)
137137
bad_entry:
138138
EXOFS_ERR(
139139
"ERROR [exofs_check_page]: bad entry in directory(0x%lx): %s - "
140-
"offset=%lu, inode=0x%llu, rec_len=%d, name_len=%d\n",
140+
"offset=%lu, inode=0x%llx, rec_len=%d, name_len=%d\n",
141141
dir->i_ino, error, (page->index<<PAGE_SHIFT)+offs,
142142
_LLU(le64_to_cpu(p->inode_no)),
143143
rec_len, p->name_len);

fs/proc/base.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,9 @@ static ssize_t auxv_read(struct file *file, char __user *buf,
10121012
{
10131013
struct mm_struct *mm = file->private_data;
10141014
unsigned int nwords = 0;
1015+
1016+
if (!mm)
1017+
return 0;
10151018
do {
10161019
nwords += 2;
10171020
} while (mm->saved_auxv[nwords - 2] != 0); /* AT_NULL */

0 commit comments

Comments
 (0)