[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#389673: linux-kernel-headers: Old version of asm-i386/unistd.h in source tarball (hides _syscall* macros)



On Wed, Sep 27, 2006 at 01:39:10PM +1000, Ted Percival wrote:
> The linux-kernel-headers 2.6.18 source tarball contains an old version
> of <include/asm-i386/unistd.h>. This old version has the _syscall*
> macros hidden inside an #ifdef __KERNEL__ so userspace cannot use them.

The _syscall macros are not save to use on most architectures. Use the
syscall wrapper.

> The ifdef is on line 327. The source file was fixed in the following
> patch:
> <http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=386dcafaacd212ef4a8aeed67a7db3ffbb44c7b2>

This was reverted in e5fa6d70318e4a6a644edbb7d574059e5b326de1.

> According to the Changelog
> (<http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.18>) it was
> fixed between 2.6.18-rc5 and 2.6.18-rc6. I checked a couple of more
> recent commits in include/asm-i386 and they are up-to-date in the source
> tarball.

It is the state of the 2.6.18 release.

Bastian

-- 
Each kiss is as the first.
		-- Miramanee, Kirk's wife, "The Paradise Syndrome",
		   stardate 4842.6

Attachment: signature.asc
Description: Digital signature


Reply to: