seaweedfs/weed/filer
Patrick Schmidt 3f758820c1
Fix FUSE server buffer leaks in file gaps (#3472)
* Fix FUSE server buffer leaks in file gaps

This change zeros read buffers when encountering file gaps during
file/chunk reads in FUSE mounts.
It prevents leaking internal buffers of the FUSE server which could
otherwise reveal metadata, directory listings, file contents and
other data related to FUSE API calls.
The issue was that buffers are reused, but when a file gap was found
the buffer was not zeroed accordingly and the existing data of the
buffer was kept and returned.

* Move zero logic into its own method
2022-08-21 11:33:58 -07:00
..
abstract_sql move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
arangodb move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
cassandra move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
elastic/v7 move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
etcd move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
hbase move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
leveldb move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
leveldb2 move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
leveldb3 move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
mongodb move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
mysql move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
mysql2 move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
postgres Allow postgresql to use standard environment variables for connection (#3413) 2022-08-07 00:58:53 -07:00
postgres2 Allow postgresql to use standard environment variables for connection (#3413) 2022-08-07 00:58:53 -07:00
redis move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
redis2 move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
redis3 move proto package 2022-08-17 12:05:07 -07:00
redis_lua move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
rocksdb move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
sqlite move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
store_test move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
tikv move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
ydb move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
configuration.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
entry.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
entry_codec.go also migrate jsonpb 2022-08-17 12:42:03 -07:00
filechunk_manifest.go remove unused collection and replication from upload result 2022-08-20 18:14:57 -07:00
filechunk_manifest_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filechunks.go filer.sync: fix synchronization logic in active-active mode 2022-08-01 00:06:18 -07:00
filechunks2_test.go filer.sync: fix synchronization logic in active-active mode 2022-08-01 00:06:18 -07:00
filechunks_read.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filechunks_read_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filechunks_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_buckets.go filer: remove replication, collection, disk_type info from entry metadata 2022-06-06 00:39:35 -07:00
filer_conf.go also migrate jsonpb 2022-08-17 12:42:03 -07:00
filer_conf_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_delete_entry.go Revert "rename: delete source entry metadata only, skipping hard links" 2022-07-31 22:51:41 -07:00
filer_deletion.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_hardlink.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_notify.go move proto package 2022-08-17 12:05:07 -07:00
filer_notify_append.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_notify_test.go fix redundant type from array (#3462) 2022-08-18 02:25:25 -07:00
filer_on_meta_event.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_rename.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filer_search.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore_hardlink.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore_translate_path.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
filerstore_wrapper.go Revert "rename: delete source entry metadata only, skipping hard links" 2022-07-31 22:51:41 -07:00
meta_aggregator.go move proto package 2022-08-17 12:05:07 -07:00
meta_replay.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
read_remote.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
read_write.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
reader_at.go Fix FUSE server buffer leaks in file gaps (#3472) 2022-08-21 11:33:58 -07:00
reader_at_test.go Fix FUSE server buffer leaks in file gaps (#3472) 2022-08-21 11:33:58 -07:00
reader_cache.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
reader_pattern.go quicker to adapt to pattern change 2022-08-07 10:14:01 -07:00
remote_mapping.go move proto package 2022-08-17 12:05:07 -07:00
remote_storage.go move proto package 2022-08-17 12:05:07 -07:00
remote_storage_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
s3iam_conf.go also migrate jsonpb 2022-08-17 12:42:03 -07:00
s3iam_conf_test.go move to https://github.com/seaweedfs/seaweedfs 2022-07-29 00:17:28 -07:00
stream.go less verbose log 2022-08-15 10:03:52 -07:00
topics.go rename filer2 to filer 2020-09-01 00:21:19 -07:00