moby/api/types
Cory Snider 90c54320c8 daemon/logger: fix data race in LogFile
The log message's timestamp was being read after it was returned to the
pool. By coincidence the timestamp field happened to not be zeroed on
reset so much of the time things would work as expected. But if the
message value was to be taken back out of the pool before WriteLogEntry
returned, the timestamp recorded in the gzip header of compressed
rotated log files would be incorrect.

Make future use-after-put bugs fail fast by zeroing all fields of the
Message value, including the timestamp, when it is put into the pool.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2022-03-03 14:56:25 -05:00
..
backend daemon/logger: fix data race in LogFile 2022-03-03 14:56:25 -05:00
blkiodev Add canonical import comment 2018-02-05 16:51:57 -05:00
container Merge pull request #40084 from thaJeztah/hostconfig_const_cleanup 2021-08-28 00:21:31 +09:00
events api/types/events: add "Type" type for event-type enum 2021-08-23 21:14:55 +02:00
filters bump gotest.tools v3.0.1 for compatibility with Go 1.14 2020-02-11 00:06:42 +01:00
image api/types: re-generate with new template 2019-11-05 11:32:41 -08:00
mount testutil: remove remaining use of deprecated pkg/mount 2020-11-10 14:46:59 +01:00
network api/types: remove errdefs dependency 2020-06-04 12:14:16 +02:00
plugins/logdriver Add partial log metadata to log driver proto 2018-08-10 20:44:30 -07:00
registry goimports: fix imports 2019-09-18 12:56:54 +02:00
strslice Format code with gofmt -s from go-1.11beta1 2018-09-06 15:24:16 -07:00
swarm Add ulimits support to services 2020-07-29 02:09:06 +02:00
time Improve GetTimestamp parsing 2018-05-20 13:07:17 +02:00
versions api/types/versions: simplify compare if versions are equal 2021-08-22 11:05:22 +02:00
volume swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00
auth.go Add canonical import comment 2018-02-05 16:51:57 -05:00
client.go API, daemon/images: add ImageListOptions and pass context 2021-07-13 13:45:24 +02:00
configs.go Accept platform spec on container create 2020-03-20 16:10:36 -07:00
error_response.go Update to inline comments. 2016-10-31 11:13:41 -04:00
error_response_ext.go Make ErrorResponse implement Error 2019-07-02 10:17:03 -07:00
graph_driver_data.go Generate GraphDriver from spec, and fix up image spec. 2017-01-03 11:47:47 -05:00
id_response.go Add an IDResponse type 2016-10-31 11:16:02 -04:00
image_delete_response_item.go Generate ImageDeleteResponse from swagger spec. 2017-01-03 11:47:47 -05:00
image_summary.go Generate api/types:Image from the swagger spec 2016-10-20 13:24:23 -07:00
plugin.go Move plugin client creation to the extension point 2018-05-25 15:18:53 -04:00
plugin_device.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_env.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_interface_type.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_mount.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_responses.go Add canonical import comment 2018-02-05 16:51:57 -05:00
port.go Describe IP field of Port definition 2018-05-15 12:09:42 +02:00
service_update_response.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00
stats.go Fix dont typo 2018-09-08 16:58:03 +08:00
types.go API,daemon: support type URL parameter to /system/df 2021-07-27 12:17:45 +02:00
volume.go swagger: reformat, and wrap to ~80-chars 2020-05-02 18:10:28 +02:00