[Bug 263999] Regression: truncate(2) succeeds even for text files being executed
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 263999] Regression: truncate(2) succeeds even for text files being executed"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 263999] Regression: truncate(2) succeeds even for text files being executed"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 15 May 2022 16:49:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263999 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.". Indeed it does on 13.0-RELEASE, 13.1-RC5, 13.1-STABLE (as of 29-Apr), and 12.3-STABLE (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 -- You are receiving this mail because: You are the assignee for the bug.