Merge ~ahasenack/ubuntu/+source/autofs:noble-autofs-segfault-2061667 into ubuntu/+source/autofs:ubuntu/devel
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | git-ubuntu bot | ||||
Approved revision: | not available | ||||
Merged at revision: | 4fd6f97f11d859a791ddf5b3818c9590a25670ab | ||||
Proposed branch: | ~ahasenack/ubuntu/+source/autofs:noble-autofs-segfault-2061667 | ||||
Merge into: | ubuntu/+source/autofs:ubuntu/devel | ||||
Diff against target: |
58 lines (+36/-0) 3 files modified
debian/changelog (+7/-0) debian/patches/adjust-buffer-size-for-snprintf.patch (+28/-0) debian/patches/series (+1/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
git-ubuntu bot | Approve | ||
Robie Basak | Approve | ||
Canonical Server Reporter | Pending | ||
Review via email:
|
Description of the change
This fixes a segfault in autofs.
I prepared a PPA to see if it fixes it for him: https:/
DEP8 tests are running, but they didn't catch this. An extra option is needed, which can either be in /etc/auto.master (my reproducer), or added automatically depending on the running kernel, as far as I can tell.
Regardless, the reproducer is basically:
/etc/auto.master:
/- file,sun:
/etc/auto.mp:
/mp defaults :/dev/loop0
I used a a loop device instead of other mount point, set one up with losetup to test.
Then just starting automount is enough to show the segfault in noble.
I just sent the fix upstream (see DEP3 headers), and it's still too early for a response.
DEP8 tests just finished:
Results: (from http:// autopkgtest. ubuntu. com/results/ autopkgtest- noble-ahasenack -autofs- segfault- 2061667/ ?format= plain) 5.1.9-1ubuntu4~ ppa1
autofs @ amd64:
17.04.24 18:29:09 Log 🗒️ ✅ Triggers: autofs/
https:/ /autopkgtest. ubuntu. com/results/ autopkgtest- noble-ahasenack -autofs- segfault- 2061667/ noble/amd64/ a/autofs/ 20240417_ 182909_ dae21@/ log.gz