x86_32 NX support breaks user-mode-linux

Bug #524849 reported by Loïc Minier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Andy Whitcroft
user-mode-linux (Ubuntu)
Fix Released
Undecided
Loïc Minier

Bug Description

Hi

user-mode-linux builds on amd64 but fails to build on i386 with:
[...]
  CC fs/binfmt_script.o
  CC fs/binfmt_elf.o
fs/binfmt_elf.c: In function 'load_elf_binary':
fs/binfmt_elf.c:723: error: 'nx_enabled' undeclared (first use in this function)
fs/binfmt_elf.c:723: error: (Each undeclared identifier is reported only once
fs/binfmt_elf.c:723: error: for each function it appears in.)
fs/binfmt_elf.c:724: error: implicit declaration of function 'arch_add_exec_range'
make[2]: *** [fs/binfmt_elf.o] Error 1
make[1]: *** [fs] Error 2
[...]

see http://launchpadlibrarian.net/39441781/buildlog_ubuntu-lucid-i386.user-mode-linux_2.6.32-1um-3ubuntu1_FAILEDTOBUILD.txt.gz

This is due to an Ubuntu patch (copied from RedHat) to add NX support in fs/binfmt_elf.c

Bye

Tags: patch
Revision history for this message
Loïc Minier (lool) wrote :
Revision history for this message
Loïc Minier (lool) wrote :

I submitted the same but using my ubuntu address as author to the ubuntu kernel-team list.

tags: added: patch
Loïc Minier (lool)
Changed in user-mode-linux (Ubuntu):
assignee: nobody → Loïc Minier (lool)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package user-mode-linux - 2.6.32-1um-3ubuntu2

---------------
user-mode-linux (2.6.32-1um-3ubuntu2) lucid; urgency=low

  * New patch, 62_ubuntu-i386-um-no-nx-enabled, disable nx_enabled test in
    binfmt_elf when building UML as it's not available under ARCH=um; should
    fix i386 build; LP: #524849.
 -- Loic Minier <email address hidden> Sat, 20 Feb 2010 16:31:59 +0100

Changed in user-mode-linux (Ubuntu):
status: New → Fix Released
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Added to my weekly call to get status update for the kernel task.

-JFo

Andy Whitcroft (apw)
Changed in linux (Ubuntu):
status: New → Fix Released
status: Fix Released → Fix Committed
assignee: nobody → Andy Whitcroft (apw)
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (7.8 KiB)

This bug was fixed in the package linux - 2.6.32-15.21

---------------
linux (2.6.32-15.21) lucid; urgency=low

  [ Andy Whitcroft ]

  * Revert "(pre-stable) drm/i915: Increase fb alignment to 64k"
  * Revert "[Config] lenovo-sl-laptop -- enable"
  * Revert "ubuntu: lenovo-sl-laptop -- git tip (b19a08f81f)"
  * armel -- cramfs module will no longer be built
  * d-i -- make all modules optional
  * rename the debug packages to match archive standard
    - LP: #527837
  * lenovo-sl-laptop is no longer built

  [ Colin Ian King ]

  * Disable 4MB page tables for Atom, work around errata AAE44
    - LP: #523112

  [ Colin Watson ]

  * ubuntu: dm-raid4-5: Depend on XOR_BLOCKS
  * ubuntu: fsam7400: Depend on CHECK_SIGNATURE

  [ Jesse Barnes ]

  * SAUCE: drm/i915: don't change DRM configuration when releasing load
    detect pipe
    - LP: #488328

  [ Loïc Minier ]

  * [Config] armel Update versatile initrd configs
    - LP: #524893
  * SAUCE: [um] Don't use nx_enabled under UML
    - LP: #524849

  [ Manoj Iyer ]

  * [Config] added new config option CONFIG_SR_REPORT_TIME_LIMIT

  [ Mario Limonciello ]

  * SAUCE: v3 - Add Dell Business Class Netbook LED driver

  [ Rafael J. Wysocki ]

  * SAUCE: PM report driver and device suspend/resume times.

  [ Surbhi Palande ]

  * Revert "[Upstream] e1000e: enhance frame fragment detection"
    - CVE-2009-4538
  * Revert "[Upstream] e1000: enhance frame fragment detection"
    - CVE-2009-4536

  [ Tim Gardner ]

  * [Config] Enabled CONFIG_LEDS_DELL_NETBOOKS=m
  * SAUCE: (pre-stable) netfilter: xt_recent: fix buffer overflow
  * SAUCE: (pre-stable) netfilter: xt_recent: fix false match

  [ Upstream Kernel Changes ]

  * Revert "(pre-stable) eCryptfs: Add getattr function"
  * Fix potential crash with sys_move_pages
  * futex_lock_pi() key refcnt fix
  * futex: Handle user space corruption gracefully
  * futex: Handle futex value corruption gracefully
  * Fix race in tty_fasync() properly
  * hwmon: (w83781d) Request I/O ports individually for probing
  * hwmon: (lm78) Request I/O ports individually for probing
  * hwmon: (adt7462) Wrong ADT7462_VOLT_COUNT
  * ALSA: ctxfi - fix PTP address initialization
  * drm/i915: disable hotplug detect before Ironlake CRT detect
  * drm/i915: enable self-refresh on 965
  * drm/i915: Disable SR when more than one pipe is enabled
  * drm/i915: Fix DDC on some systems by clearing BIOS GMBUS setup.
  * drm/i915: Add HP nx9020/SamsungSX20S to ACPI LID quirk list
  * drm/i915: Fix the incorrect DMI string for Samsung SX20S laptop
  * drm/i915: Add MALATA PC-81005 to ACPI LID quirk list
  * usb: r8a66597-hcd: Flush the D-cache for the pipe-in transfer buffers.
  * i2c-tiny-usb: Fix on big-endian systems
  * drm/i915: handle FBC and self-refresh better
  * drm/i915: Increase fb alignment to 64k
  * drm/i915: Update write_domains on active list after flush.
  * regulator: Fix display of null constraints for regulators
  * ALSA: hda-intel: Avoid divide by zero crash
  * CPUFREQ: Fix use after free of struct powernow_k8_data
  * freeze_bdev: don't deactivate successfully frozen MS_RDONLY sb
  * cciss: Make cciss_seq_show handle holes in the h->drv[] array
  * ioat: fix in...

Read more...

Changed in linux (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.