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] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 19 Nov 2008 19:06:36 +0000
From:	Al Viro <viro@...IV.linux.org.uk>
To:	Am??rico Wang <xiyou.wangcong@...il.com>
Cc:	LKML <linux-kernel@...r.kernel.org>, Andrew Morton <akpm@...l.org>,
	Jeff Dike <jdike@...toit.com>,
	user-mode-linux-devel@...ts.sourceforge.net
Subject: Re: [Patch] uml: fix undeclared variables

On Wed, Nov 19, 2008 at 06:40:14PM +0000, Am??rico Wang wrote:
> On Tue, Nov 18, 2008 at 07:26:26PM +0000, Al Viro wrote:
> >On Tue, Nov 18, 2008 at 05:42:51PM +0000, Am??rico Wang wrote:
> >> 
> >> Fix three compile errors about undeclared variables in
> >> arch/um/kernel/mem.c.
> >
> >And what, pray tell, would initialize it?
> 
> Sorry, I can't fully understand you. I got the following error:
> 
> arch/um/kernel/mem.c: In function ???init_highmem???:
> arch/um/kernel/mem.c:177: error: ???pkmap_page_table??? undeclared (first
> use in this function)
> arch/um/kernel/mem.c:177: error: (Each undeclared identifier is
> reported only once
> arch/um/kernel/mem.c:177: error: for each function it appears in.)

The error is there, all right.  However, proposed patch only hides the
real problem.  Building uml/i386 with CONFIG_HIGHMEM will result in
a badly broken kernel with that patch, with no visible hints at the
cause of problems.

You've got it to link, but that's not enough.  The problems you are seeing
come from arch/x86/mm/highmem_32.c.  It uses several variables from
arch/x86/mm/init_32.c and you have copied them to arch/um.  However, getting
these variable defined is not going to make it work - the code that used
to set it had been in init_32.c too and you've just left your copy initialized
to NULL.  Which will *not* work.

IOW, it's still broken, but now you have lost all indications regarding the
source of problem.

Folks, "it doesn't build in that config" is _better_ than "it builds with
no complaints, but resulting binary is FUBAR".  As a short-term solution -
make HIGHMEM in arch/um/Kconfig.um depend on BROKEN.  The proper fix, of
course, is to try and make it _work_, not just compile, but that's going
to take a fair amount of digging in uml and x86 low-level VM guts.
--
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