62 Commits

Author SHA1 Message Date
Bill Zissimopoulos
751eaa69df
update source copyright to 2022 2022-01-07 17:30:49 +00:00
Bill Zissimopoulos
6e3a8f70b2
update source copyright to 2021 2021-05-21 15:57:05 -07:00
Bill Zissimopoulos
0296502f24
sys: FspFsvolReadNonCached: acquire FileNode shared
See GitHub issue #291 for discussion
2020-07-22 15:42:06 -07:00
Bill Zissimopoulos
42fd57904a
sys: FspFsvolReadNonCached: trim ReadLength
During CreateProcess/CreateSection Windows locks the image file (using AcquireFileForNtCreateSection),
gets the image file size and then reads the image file. Unfortunately if the file system (erroneously) reads
past the file size, Windows can bugcheck. This allows a faulty or malicious file system to crash Windows.

This commit adds a check in WinFsp to mitigate this problem.
2020-04-10 19:24:43 -07:00
Bill Zissimopoulos
aedf01a384
update source copyright for 2020 2020-01-02 17:50:40 -08:00
Felix A. Croes
b350dffe6c Fix 32 bit overflow issue in FspFsvolReadCached.
FspFsvolReadCached takes care not to read beyond the end of the file.
However, the offset check uses a 32 bit comparison, which fails for
files >= 4G.  As a result, reads on a large file will skip blocks at
offset (filesize % 4G), and those blocks will zero-filled.
2019-03-07 09:45:42 +01:00
Bill Zissimopoulos
d2de5e996c
update source copyright for 2019 2019-02-28 10:39:31 -08:00
Bill Zissimopoulos
75ae8daf8f
update commercial disclaimer 2018-08-21 18:09:33 -07:00
Bill Zissimopoulos
9bd9cf4fbd
update source copyright notices for 2018 2018-01-03 15:29:38 -08:00
Bill Zissimopoulos
7911f1354f sys: ProcessBuffer: improvements 2017-02-23 17:39:28 -08:00
Bill Zissimopoulos
28f97c2619 sys: ProcessBuffer: conditional usage 2017-02-23 16:36:21 -08:00
Bill Zissimopoulos
4b43cc590f sys: initial ProcessBuffer implementation 2017-02-23 16:06:55 -08:00
Bill Zissimopoulos
a57325e8af update source copyright notices for 2017 2017-01-05 13:56:18 -08:00
Bill Zissimopoulos
168acb1a1f sys: statistics: implement FSCTL_FILESYSTEM_GET_STATISTICS 2016-12-26 22:45:48 -08:00
Bill Zissimopoulos
ce551d4e0d sys: oplock: refactoring/cleanup 2016-11-20 14:08:23 -08:00
Bill Zissimopoulos
764b772731 sys: lockctl, read, write: oplocks 2016-11-12 18:01:27 -08:00
Bill Zissimopoulos
7518a6e418 sys: read, write: oplocks 2016-11-12 13:12:35 -08:00
Bill Zissimopoulos
a0cb134bd3 sys: FspFsvolReadNonCached,FspFsvolWriteNonCached: reuse work Requests 2016-11-10 11:46:16 -08:00
Bill Zissimopoulos
e0b0b1b367 sys: read,write: IRP_MN_MDL improvements 2016-10-22 14:04:31 -07:00
Bill Zissimopoulos
a525e095d3 sys: check Response->IoStatus.Information for Read, Write, QueryDirectory 2016-10-21 21:46:47 -07:00
Bill Zissimopoulos
bd952253fb cosmetic fix 2016-10-11 11:39:17 -07:00
Bill Zissimopoulos
c7780cf7fa license: switch to GPLv3 from AGPLv3 2016-10-10 21:33:27 -07:00
Bill Zissimopoulos
968de4689c inc,src,tst: add AGPLv3 notices 2016-04-25 14:29:05 -07:00
Bill Zissimopoulos
57793f9b9a sys: on Windows 8+ make Write buffer read-only 2016-04-20 16:01:35 -07:00
Bill Zissimopoulos
1239c610a5 sys: IRP_MJ_READ: remove FspFileNodeTrySetFileInfo at completion
sys: IRP_MJ_READ: remove PagingIo early exit optimization
sys: IRP_MJ_WRITE: remove PagingIo early exit optimization
2016-04-13 20:33:10 -07:00
Bill Zissimopoulos
41296044e6 sys: IRP_MJ_READ, IRP_MJ_WRITE: fix paging I/O sizes 2016-04-13 18:00:02 -07:00
Bill Zissimopoulos
9b81c03ccc sys: fsp_debug: greatly simplify debugging support 2016-04-10 23:45:09 -07:00
Bill Zissimopoulos
66dbfb24ff sys: IRP_MJ_READ, IRP_MJ_WRITE: file lock support 2016-04-06 16:04:42 -07:00
Bill Zissimopoulos
b729500d7b sys: FspIrpDeleteRequest 2016-04-06 13:40:32 -07:00
Bill Zissimopoulos
57460d7452 sys: FspLockUserBuffer: now acts directly on the IRP 2016-03-18 15:36:44 -07:00
Bill Zissimopoulos
7ff99da000 update copyright notices for 2016 2016-03-17 14:59:46 -07:00
Bill Zissimopoulos
b44c6d64db sys: IRP_MJ_READ, IRP_MJ_WRITE: do not block user-mode file system thread for FlushAndPurge 2016-03-17 14:16:22 -07:00
Bill Zissimopoulos
b734e6968d sys: FspFileNodeFlushAndPurgeCache 2016-03-17 10:13:52 -07:00
Bill Zissimopoulos
d6403780a3 sys: FspFsvolReadCached, FspFsvolWriteCached: cleanup improvements 2016-03-11 15:47:27 -08:00
Bill Zissimopoulos
151247f1e6 sys: cached read/write testing 2016-03-11 14:44:17 -08:00
Bill Zissimopoulos
3939c096e9 sys: IRP_MJ_READ, IRP_MJ_WRITE 2016-03-09 15:35:38 -08:00
Bill Zissimopoulos
7e9accf68e sys: IRP_MJ_READ: trim ReadLength when necessary for cache manager 2016-03-09 14:42:59 -08:00
Bill Zissimopoulos
79119a22cb sys: IRP_MJ_READ, FspSafeMdlCreate, FspSafeMdlCopyBack: bug fixes 2016-03-08 16:24:08 -08:00
Bill Zissimopoulos
1ad09f9b99 sys: IRP_MJ_WRITE, IRP_MJ_READ: testing 2016-03-07 18:34:24 -08:00
Bill Zissimopoulos
9aca7e2e81 sys: FspSafeMdlCreate: testing 2016-03-07 17:53:52 -08:00
Bill Zissimopoulos
8b9e8499aa sys: IRP_MJ_READ, IRP_MJ_WRITE 2016-03-04 21:07:14 -08:00
Bill Zissimopoulos
55a86ba8c6 sys: IRP_MJ_READ, IRP_MJ_WRITE 2016-03-04 19:44:43 -08:00
Bill Zissimopoulos
bf02a601b2 sys: IRP_MJ_READ: implementation 2016-03-04 19:20:41 -08:00
Bill Zissimopoulos
c7c367ccc8 sys: IRP_MJ_READ: implementation 2016-03-04 17:08:46 -08:00
Bill Zissimopoulos
eda129ae81 sys: FSP_IOCMPL_DISPATCH now returns NTSTATUS 2016-01-27 11:59:52 -08:00
Bill Zissimopoulos
7197501c9a Major refactoring: WIP 2015-12-20 10:57:45 -08:00
Bill Zissimopoulos
2668e05748 sys: WIP 2015-11-28 13:17:46 -08:00
Bill Zissimopoulos
7ab5998c49 sys: WIP 2015-11-28 13:08:34 -08:00
Bill Zissimopoulos
d7e9a25d37 sys: static analysis fixes 2015-11-28 00:01:39 -08:00
Bill Zissimopoulos
97c98ac265 sys: WIP 2015-11-27 23:37:57 -08:00