Commit 6259301
SMB3: Resolve data corruption of TCP server info fields
TCP server info field server->total_read is modified in parallel by
demultiplex thread and decrypt offload worker thread. server->total_read
is used in calculation to discard the remaining data of PDU which is
not read into memory.
Because of parallel modification, server->total_read can get corrupted
and can result in discarding the valid data of next PDU.
Signed-off-by: Rohith Surabattula <rohiths@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
CC: Stable <stable@vger.kernel.org> #5.4+
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 3ece60e commit 6259301
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4131 | 4131 | | |
4132 | 4132 | | |
4133 | 4133 | | |
4134 | | - | |
| 4134 | + | |
| 4135 | + | |
4135 | 4136 | | |
4136 | 4137 | | |
4137 | 4138 | | |
| |||
4157 | 4158 | | |
4158 | 4159 | | |
4159 | 4160 | | |
4160 | | - | |
| 4161 | + | |
| 4162 | + | |
4161 | 4163 | | |
4162 | 4164 | | |
4163 | 4165 | | |
| |||
4370 | 4372 | | |
4371 | 4373 | | |
4372 | 4374 | | |
4373 | | - | |
| 4375 | + | |
4374 | 4376 | | |
4375 | 4377 | | |
4376 | 4378 | | |
| |||
4476 | 4478 | | |
4477 | 4479 | | |
4478 | 4480 | | |
4479 | | - | |
| 4481 | + | |
4480 | 4482 | | |
4481 | 4483 | | |
4482 | 4484 | | |
| |||
4532 | 4534 | | |
4533 | 4535 | | |
4534 | 4536 | | |
4535 | | - | |
| 4537 | + | |
4536 | 4538 | | |
4537 | 4539 | | |
4538 | 4540 | | |
| |||
0 commit comments