2.6.15-54.76 Build failure at kernel/kexec.c

Bug #364430 reported by Tetsuo Handa
2
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Fix Released
Medium
Stefan Bader

Bug Description

Binary package hint: linux-source-2.6.15

$ wget 'https://launchpad.net/ubuntu/dapper/+source/linux-source-2.6.15/2.6.15-54.76/+files/linux-source-2.6.15_2.6.15.orig.tar.gz'
$ tar -zxf linux-source-2.6.15_2.6.15.orig.tar.gz
$ cd linux-source-2.6.15-2.6.15/
$ wget 'https://launchpad.net/ubuntu/dapper/+source/linux-source-2.6.15/2.6.15-54.76/+files/linux-source-2.6.15_2.6.15-54.76.diff.gz'
$ zcat linux-source-2.6.15_2.6.15-54.76.diff.gz | patch -sp1
$ grep -A 10 -B 10 SYSCALL kernel/kexec.c
/*
 * A home grown binary mutex.
 * Nothing can wait so this mutex is safe to use
 * in interrupt context :)
 */
static int kexec_lock = 0;

asmlinkage long sys_kexec_load(unsigned long entry, unsigned long nr_segments,
                                struct kexec_segment __user *segments,
                                unsigned long flags)
SYSCALL_DEFINE4(kexec_load, unsigned long, entry, unsigned long, nr_segments,
                struct kexec_segment __user *, segments, unsigned long, flags)
{
        struct kimage **dest_image, *image;
        int locked;
        int result;

        /* We only trust the superuser with rebooting the system. */
        if (!capable(CAP_SYS_BOOT))
                return -EPERM;

These "sys_kexec_load" lines cause build failure.
Patch is available at https://lists.ubuntu.com/archives/kernel-team/2009-April/005265.html

Stefan Bader (smb)
Changed in linux-source-2.6.15 (Ubuntu):
assignee: nobody → stefan-bader-canonical
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Stefan Bader (smb) wrote :

Fix commited to repo

Changed in linux-source-2.6.15 (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

@Stephan
Has this fix been released?

Thanks!

Revision history for this message
Stefan Bader (smb) wrote :

It should have been in since 2.6.15-54.77, but Dapper went out of support by now. So it does not really matter but setting to released.

Changed in linux-source-2.6.15 (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.