It's -EFAULT, not -1 (and contrary to the comment in there, __strnlen_user() can return 0 - on faults). Cc: stable@vger.kernel.org Acked-by: Richard Kuo <rkuo@codeaurora.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> |
||
|---|---|---|
| .. | ||
| asm-offsets.h | ||
| atomic.h | ||
| bitops.h | ||
| cache.h | ||
| cacheflush.h | ||
| checksum.h | ||
| cmpxchg.h | ||
| delay.h | ||
| dma-mapping.h | ||
| dma.h | ||
| elf.h | ||
| exec.h | ||
| fixmap.h | ||
| fpu.h | ||
| futex.h | ||
| hexagon_vm.h | ||
| intrinsics.h | ||
| io.h | ||
| irq.h | ||
| irqflags.h | ||
| Kbuild | ||
| kgdb.h | ||
| linkage.h | ||
| mem-layout.h | ||
| mmu.h | ||
| mmu_context.h | ||
| module.h | ||
| mutex.h | ||
| page.h | ||
| perf_event.h | ||
| pgalloc.h | ||
| pgtable.h | ||
| processor.h | ||
| smp.h | ||
| spinlock.h | ||
| spinlock_types.h | ||
| string.h | ||
| suspend.h | ||
| switch_to.h | ||
| syscall.h | ||
| thread_info.h | ||
| time.h | ||
| timer-regs.h | ||
| timex.h | ||
| tlb.h | ||
| tlbflush.h | ||
| traps.h | ||
| uaccess.h | ||
| vdso.h | ||
| vm_fault.h | ||
| vm_mmu.h | ||