[PATCH] skip data conversion in compat_sys_mount when data_page is NULL OpenVZ Linux kernel team has found a problem with mounting in compat mode. Simple command "mount -t smbfs ..." on Fedora Core 5 distro in 32-bit mode leads to oops: Unable to handle kernel NULL pointer dereference at 0000000000000000 RIP: compat_sys_mount+0xd6/0x290 Process mount (pid: 14656, veid=300, threadinfo ffff810034d30000, task ffff810034c86bc0) Call Trace: ia32_sysret+0x0/0xa The problem is that data_page pointer can be NULL, so we should skip data conversion in this case. Signed-off-by: Andrey Mirkin <amirkin@openvz.org> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
[linux < 2.6.21.2] 041f08ecb28db5be31e6de339c7abb3fe369ec53 also on 2.6.22 as c483bab099cb89e92b7cad94a52fcdaf37e56657 [gp < 2.6.21-3]
Egh, terribly sorry for the spam. I submitted the previous entry to the wrong bug.. too many bugzilla tabs open. the correct data is [linux < 2.6.16.38] f701db35660a6017bef6d6e911d095bcf8b74010 [linux >= 2.6.17 < 2.6.18.6] 80dc4d3acce8103ad87e14ca8ae6b10a2785c5e5 [linux >= 2.6.19 < 2.6.19.1] 1157f82831d3745a61b897d9f8a38886c586d09f also in 2.6.20 as 822191a2fa1584a29c3224ab328507adcaeac1ab [gp < 2.6.18-7][gp >= 2.6.19-1 < 2.6.19-3]