lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20110806111311.663ce667.rdunlap@xenotime.net>
Date:	Sat, 6 Aug 2011 11:13:11 -0700
From:	Randy Dunlap <rdunlap@...otime.net>
To:	Alessandro Suardi <alessandro.suardi@...il.com>
Cc:	Miles Lane <miles.lane@...il.com>,
	LKML <linux-kernel@...r.kernel.org>,
	Greg Kroah-Hartman <gregkh@...e.de>,
	Alexander Viro <viro@...iv.linux.org.uk>
Subject: Re: 3.0.0-git21 -- CC fs/binfmt_misc.o .../asm/uaccess_32.h:211:26:
 error: call to ‘copy_from_user_overflow’
 declared with attribute error: copy_from_user() buffer size is not provably
 correct

On Sat, 6 Aug 2011 19:56:00 +0200 Alessandro Suardi wrote:

> On Sat, Aug 6, 2011 at 7:49 PM, Miles Lane <miles.lane@...il.com> wrote:
> > I am not finding any kernel configuration that enables me to avoid
> > this compile error.  Anyone know what I can do to successfully build
> > this kernel?
> >
> > On Fri, Aug 5, 2011 at 1:15 PM, Miles Lane <miles.lane@...il.com> wrote:
> >> CC      fs/binfmt_misc.o
> >> In file included from /usr/src/linux-3.0/arch/x86/include/asm/uaccess.h:573:0,
> >>                 from include/linux/uaccess.h:5,
> >>                 from include/linux/highmem.h:7,
> >>                 from include/linux/pagemap.h:10,
> >>                 from fs/binfmt_misc.c:26:
> >> /usr/src/linux-3.0/arch/x86/include/asm/uaccess_32.h: In function
> >> ‘parse_command.part.1’:
> >> /usr/src/linux-3.0/arch/x86/include/asm/uaccess_32.h:211:26: error:
> >> call to ‘copy_from_user_overflow’ declared with attribute error:
> >> copy_from_user() buffer size is not provably correct
> 
> Well, uaccess_32.h has this:
> 
> extern void copy_from_user_overflow(void)
> #ifdef CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
>     __compiletime_error("copy_from_user() buffer size is not provably correct")
> #else
>     __compiletime_warning("copy_from_user() buffer size is not provably correct"
> )
> #endif
> 
>  and you have CONFIG_DEBUG_STRICT_USER_COPY_CHECKS=y.

Even after you disable this kconfig option, you probably also still
need this patch (unless it's already applied):
http://marc.info/?l=linux-kernel&m=131196593501269&w=2

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ