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]
Message-ID: <20171107133108.ddwhwpa7b4bfrvmr@treble>
Date:   Tue, 7 Nov 2017 07:31:08 -0600
From:   Josh Poimboeuf <jpoimboe@...hat.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 2/2] objtool: Move sync check to a script

On Tue, Nov 07, 2017 at 10:46:21AM +0100, Ingo Molnar wrote:
> Hm, this doesn't actually warn - it outputs the diff:
> 
>  triton:~/tip/tools/objtool> ./sync-check.sh 
>  triton:~/tip/tools/objtool> 99a100,109
>  > /* Identifiers for segment registers */
>  > #define INAT_SEG_REG_IGNORE   0
>  > #define INAT_SEG_REG_DEFAULT  1
>  > #define INAT_SEG_REG_CS               2
>  > #define INAT_SEG_REG_SS               3
>  > #define INAT_SEG_REG_DS               4
>  > #define INAT_SEG_REG_ES               5
>  > #define INAT_SEG_REG_FS               6
>  > #define INAT_SEG_REG_GS               7
>  > 
> 
> I fixed it to do:
> 
>         diff $file ../../$file > /dev/null ||
> 
> (note the removal of '&')
> 
> Then it outputs the right thing:
> 
>   triton:~/tip/tools/objtool> ./sync-check.sh 
>   Warning: synced file at 'tools/objtool/arch/x86/include/asm/inat.h' differs from latest kernel version at 'arch/x86/include/asm/inat.h'

Ah.  I guess '&>' is a bash-ism, shorthand for redirecting both stdout
and stderr.  It worked for me with bash 4.4.12.  I guess you used a
different default shell?

-- 
Josh

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ