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

Bug#353079: linux-2.6.15-1-alpha-generic: srm_env broken, returns EFAULT



Package: linux-2.6
Version: 2.6.15-4

In all versions of 2.6 that I've tested with d-i to date, srm_env no longer
works correctly.  Attempting to query any variables from
/proc/srm_environment on alpha gives a "Bad address" error:

$ cat /proc/srm_environment/named_variables/language 
6cat: /proc/srm_environment/named_variables/language: Bad address
$

strace shows:

open("/proc/srm_environment/named_variables/language", O_RDONLY) = 3
fstat64(0x3, 0x11fc49798)               = 0
read(3, "6\0\0\0", 1024)                = 4
write(1, "6\0\0\0", 46)                  = 4
read(3, 0x120018000, 1024)              = -1 EFAULT (Bad address)

With coreutils cat, it does at least output the contents ("6") before
exiting with the error; with busybox cat, there is no output, breaking
language autodetection in the installer.

This worked fine with 2.4.27.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature


Reply to: