Skip to contentSkip to conversation

Kernel 3.3.0 autofs v5 packet size change

DISCUSSION Ian Kent 1 participant 2 messages Feb 27, 2012 – Feb 28, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Ian Kent

author maintainer
#1 lore raw
Quoted 15 lines · Ian Kent

Hi all,

Just a heads up for everyone regarding a recent kernel change.

The description from the autofs user space patch describes the issue:

"Kernel 3.3.0 has a patch to allow for the original missdesign of the autofs v5 kernel packet.

The problem is that while all the structure fields are alligned correctly structure allignment on x86-64 causes the packet size to be 4 bytes larger than on x86. So when running an x86 binary on an x86-64 install the packet size did not match causing user space pipe reads to hang."

Quoted 5 lines

If you are an upstream package maintainer and your distro is likley to migrate to kernel 3.3.0 or later or you are planning using kernel 3.3.0 or later then you will need these patches:
http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.7/autofs-5.0.6-add-kernel-verion-check-function.patch
http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.7/autofs-5.0.6-allow-for-kernel-packet-size-change.patch

and, of course, a fix for mistakes I made:
http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.7/autofs-5.0.6-fix-allow-for-kernel-packet-size-change.patch

Quoted 7 lines

If you use rc kernels and you plan on using 3.3.0-rc5 you will also need commit 3c761ea05a8900a907f32b628611873f6bef24b2 from the linus kernel tree to fix a compile mistake.

Sorry for the inconvenience.
Ian

author maintainer
#2 lore raw
Quoted 16 lines · Ian Kent
Quoted 15 lines · Ian Kent

Hi all,

Just a heads up for everyone regarding a recent kernel change.

The description from the autofs user space patch describes the issue:

"Kernel 3.3.0 has a patch to allow for the original missdesign of the autofs v5 kernel packet.

The problem is that while all the structure fields are alligned correctly structure allignment on x86-64 causes the packet size to be 4 bytes larger than on x86. So when running an x86 binary on an x86-64 install the packet size did not match causing user space pipe reads to hang."

Quoted 13 lines
Quoted 5 lines

If you are an upstream package maintainer and your distro is likley to migrate to kernel 3.3.0 or later or you are planning using kernel 3.3.0 or later then you will need these patches:
http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.7/autofs-5.0.6-add-kernel-verion-check-function.patch
http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.7/autofs-5.0.6-allow-for-kernel-packet-size-change.patch

and, of course, a fix for mistakes I made:
http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.7/autofs-5.0.6-fix-allow-for-kernel-packet-size-change.patch

Quoted 4 lines

If you use rc kernels and you plan on using 3.3.0-rc5 you will also need commit 3c761ea05a8900a907f32b628611873f6bef24b2 from the linus kernel tree to fix a compile mistake.

And now also, if you are using rc kernels for s390, you'll need commit 048cd4e51d24ebf7f3552226d03c769d6ad91658 as well.

Quoted 9 lines
Quoted 3 lines

Sorry for the inconvenience.
Ian

--
To unsubscribe from this list: send the line "unsubscribe autofs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html