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]
Message-ID: <4E4809BF.6040707@landley.net>
Date:	Sun, 14 Aug 2011 12:45:35 -0500
From:	Rob Landley <rob@...dley.net>
To:	linux-kernel@...r.kernel.org, Artem.Bityutskiy@...ia.com,
	busybox@...ybox.net
Subject: [BUG] Linux 3.0 commit 3627924acf70a broke include/mtd/ubi_user.h.

"make headers_install" copies include/mtd/ubi_user.h to userspace, where
things like busybox link against it.  With 3.0, building defconfig
busybox gets this error:

In file included from miscutils/ubi_tools.c:63:
/home/landley/aboriginal/aboriginal/build/simple-cross-compiler-i686/bin/../include/mtd/ubi-user.h:329:
error: conflicting types for '__packed'
/home/landley/aboriginal/aboriginal/build/simple-cross-compiler-i686/bin/../include/mtd/ubi-user.h:313:
error: previous declaration of '__packed' was here

This is due to the Linux 3.0 commit in the title:

    UBI: use __packed instead of __attribute__((packed))

This relies on __packed being defined in:

  include/linux/compiler-gcc.h:
  #define __packed			__attribute__((packed))

Which is not exported to userspace.

I.E. this "cleanup" broke the ability for userspace to use this header,
even though the header is exported to userspace by headers_install.

Rob
--
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