Created attachment 252889 [details] PATCH fixing crash for tail -F This patch fixes a crash for "tail -F" when show() detects an error and closes the file and follow() wants to close it again.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=308399a179a49b7b858c725de10177fdb0502fd2 commit 308399a179a49b7b858c725de10177fdb0502fd2 Author: Andre Albsmeier <mail@fbsd2.e4m.org> AuthorDate: 2024-08-19 07:54:24 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-08-19 07:54:24 +0000 tail -F: fix crash When show() detects an error and closes the file and follow() wants to close it again, a NULL dereference occurs. PR: 280910 MFC after: 1 week usr.bin/tail/forward.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=cf4a34bbc7dfee43e9983a847ecf0fa0ed1d258d commit cf4a34bbc7dfee43e9983a847ecf0fa0ed1d258d Author: Andre Albsmeier <mail@fbsd2.e4m.org> AuthorDate: 2024-08-19 07:54:24 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-08-21 10:32:49 +0000 tail -F: fix crash PR: 280910 (cherry picked from commit 308399a179a49b7b858c725de10177fdb0502fd2) usr.bin/tail/forward.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=8dfa4e5b6ce2e22ef92c0ec13aa001994774c23f commit 8dfa4e5b6ce2e22ef92c0ec13aa001994774c23f Author: Andre Albsmeier <mail@fbsd2.e4m.org> AuthorDate: 2024-08-19 07:54:24 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-08-21 10:34:06 +0000 tail -F: fix crash PR: 280910 (cherry picked from commit 308399a179a49b7b858c725de10177fdb0502fd2) usr.bin/tail/forward.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
A commit in branch releng/13.4 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=9b945635c147feb4ac6ebf84bd19e149e9a10227 commit 9b945635c147feb4ac6ebf84bd19e149e9a10227 Author: Andre Albsmeier <mail@fbsd2.e4m.org> AuthorDate: 2024-08-19 07:54:24 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2024-08-21 15:59:21 +0000 tail -F: fix crash PR: 280910 Approved by: re (cperciva) (cherry picked from commit 308399a179a49b7b858c725de10177fdb0502fd2) (cherry picked from commit 8dfa4e5b6ce2e22ef92c0ec13aa001994774c23f) usr.bin/tail/forward.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
^Triage: committed and MFCed.