Messages in this thread | | | Subject | Re: [PATCH] 2.5.59: ftruncate/truncate oopses with mandatory locking | From | "Robert Williamson" <> | Date | Thu, 23 Jan 2003 17:04:16 -0500 |
| |
>This patch fixes the truncate/ftruncate oopses with mandatory locking >enabled. The problem with ftruncate is that the local variable fl is >not initialized properly in locks_mandatory_area that it misbehaves at >various places like locks_insert_block. And the problem with truncate >is that the filp variable is NULL at posix_lock_file. The NULL value >comes from do_sys_truncate. > locks_mandatory_area needed a bit more tweaking to allow correct error handling, as well as adherence to the O_NONBLOCK flag if/when used. Merged the original patch with my updates, and updated the bug report.
>The bug report and details can be found at, >http://bugme.osdl.org/show_bug.cgi?id=280
- Robbie
Robert V. Williamson <robbiew@us.ibm.com> Linux Test Project IBM Linux Technology Center Phone: (512) 838-9295 T/L: 678-9295 Fax: (512) 838-4603 Web: http://ltp.sourceforge.net IRC: #ltp on freenode.irc.net ==================== "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." -Albert Einstein
(See attached file: bug280.patch) [unhandled content-type:application/octet-stream]
| |