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-next>] [day] [month] [year] [list]
Date:	Sat, 8 Sep 2012 09:42:08 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Michal Marek <mmarek@...e.cz>
Cc:	David Howells <dhowells@...hat.com>,
	LKML <linux-kernel@...r.kernel.org>, linux-kbuild@...r.kernel.org
Subject: [kbuild bug] /bin/sh: -c: line 0: syntax error near unexpected token
 `;'

Hi Michal,

The build system will sometimes emit shell command:

set -e;  ; scripts/basic/fixdep arch/ia64/kvm/.asm-offsets.s.d arch/ia64/kvm/asm-offsets.s '' > arch/ia64/kvm/.asm-offsets.s.tmp; rm -f arch/ia64/kvm/.asm-offsets.s.d; mv -f arch/ia64/kvm/.asm-offsets.s.tmp arch/ia64/kvm/.asm-offsets.s.cmd

which is not acceptable to bash, confirmed by:

% bash -c '; ;'
bash: -c: line 0: syntax error near unexpected token `;'
bash: -c: line 0: `; ;'

This error occurs
- very occasionally in x86 builds
- reliably in *native* ia64 -j32 builds
- never in ia64 -j1 builds

So the bug may be due to some tricky time/data dependency.

Bisect tells that 2da30e703c5a56e27249fa8b8607708123fa52f5 is the
first bad commit.

commit 2da30e703c5a56e27249fa8b8607708123fa52f5
Author: Michal Marek <mmarek@...e.cz>
Date:   Mon Jun 7 22:22:12 2010 +0200

    kbuild: Generate modules.builtin in make modules

    Generating the file in make modules_install was broken as well, because
    it didn't work in a readonly filesystem and otherwise it generated a
    root-owned file which is not wanted.

    Reported-by: Rafael J. Wysocki <rjw@...k.pl>
    Signed-off-by: Michal Marek <mmarek@...e.cz>

Attached is the debug output with make --debug=j and bash -x.

Thanks,
Fengguang

View attachment "log" of type "text/plain" (145054 bytes)

Powered by blists - more mailing lists