| Summary: | Crash on sysctl -a with FreeBSD-15.0-CURRENT-amd64-20231228-fb03f7f8e30d-267242-memstick.img.xz | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Kurt Jaeger <pi> | ||||
| Component: | kern | Assignee: | Mark Johnston <markj> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Some People | CC: | cy, markj, pi | ||||
| Priority: | --- | Keywords: | crash, regression | ||||
| Version: | 15.0-CURRENT | ||||||
| Hardware: | amd64 | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Kurt Jaeger
2023-12-31 16:33:19 UTC
This will be fixed by https://github.com/openzfs/zfs/pull/15719 (In reply to Mark Johnston from comment #1) Thanks -- is there a rough estimate on how long it will take to end up in the repo ? I know, public holidays and such, but this currently stops me from ports work 8-( (mail/exim update) Created attachment 247382 [details] openzfs patch (In reply to Kurt Jaeger from comment #2) I'd expect it to land within the next few days, but I'm not sure, folks are on holiday. I'll commit directly to src if I don't get a follow-up tomorrow. The patch against the src tree is attached, so you can apply that and rebuild your kernel in the meantime. (In reply to Mark Johnston from comment #3) Thanks, applied and rebooted, and sysctl -a works again. There was another crash at a different place 3min after I started: poudriere jail -c -j 150 -a amd64 -b -m src=/usr/src -S /usr/src I'll put it into another PR. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=09af4bf2c987f6f57804162cef8aeee05575ad1d commit 09af4bf2c987f6f57804162cef8aeee05575ad1d Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-01-01 18:54:15 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-01-01 18:59:03 +0000 zfs: Fix SPA sysctl handlers sbuf_cpy() resets the sbuf state, which is wrong for sbufs allocated by sbuf_new_for_sysctl(). In particular, this code triggers an assertion failure in sbuf_clear(). Simplify by just using sysctl_handle_string() for both reading and setting the tunable. Apply to FreeBSD directly since this bug causes "sysctl -a" to crash the kernel. PR: 276039 Reported by: pho Reviewed by: mav Pull Request: https://github.com/openzfs/zfs/pull/15719 sys/contrib/openzfs/module/zfs/spa.c | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) |