Date: Sun, 15 May 2022 16:49:59 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263999] Regression: truncate(2) succeeds even for text files being executed Message-ID: <bug-263999-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263999 Bug ID: 263999 Summary: Regression: truncate(2) succeeds even for text files being executed Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: asomers@FreeBSD.org According to the man page, truncate should fail and return ETXTBUSY if "The file is a pure procedure (shared text) file that is being executed.". Inde= ed it does on 13.0-RELEASE, 13.1-RC5, 13.1-STABLE (as of 29-Apr), and 12.3-STA= BLE (as of 17-Jan). But on 14.0-CURRENT (tested at 90161e72eec and b9e5884ef78= ) it succeeds. Tested on ZFS, UFS, and fusefs. Steps to reproduce: * sudo pkg install perl5 * git clone https://github.com/pjd/pjdfstest.git * cd /tmp * sudo prove -rv /path/to/pjdfstest/tests/truncate/11.t --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263999-227>