nfs-utils: kernel version handling leads to segv on short versions (x.y)
Bug #796611 reported by
Konstantin Khlebnikov
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
Undecided
|
Unassigned | ||
nfs-utils (Ubuntu) |
Fix Released
|
High
|
Andy Whitcroft | ||
Oneiric |
Fix Released
|
High
|
Andy Whitcroft |
Bug Description
for example version "3.0" break mount.nfs, because this code catch segfault on "3.0"
static inline unsigned int linux_version_
{
struct utsname my_utsname;
unsigned int p, q, r;
if (uname(
return 0;
p = atoi(strtok(
q = atoi(strtok(NULL, "."));
r = atoi(strtok(NULL, "."));
return MAKE_VERSION(p, q, r);
}
and this is very common hack, linux version always starts with three numbers.
tags: | added: kernel-3.0 |
tags: | added: oneiric |
summary: |
- kernel release must be 3.0.0 not 3.0, for compatibility + nfs-utils: kernel version handling leads to segv on short versions (x.y) |
Changed in nfs-utils (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in nfs-utils (Ubuntu Oneiric): | |
assignee: | nobody → Canonical Server Team (canonical-server) |
Changed in linux (Ubuntu Oneiric): | |
status: | New → Triaged |
Changed in nfs-utils (Ubuntu): | |
status: | Triaged → In Progress |
importance: | Critical → High |
assignee: | Canonical Server Team (canonical-server) → Andy Whitcroft (apw) |
Changed in nfs-utils (Ubuntu Oneiric): | |
status: | Incomplete → In Progress |
To post a comment you must log in.
Upstream is switching version numbers to make them shorter. In order to shake out all these stupid pieces of hack in packages we have deliberatly uploaded a kernel with a short version and are working to fix the bugs.