mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 12:50:02 +02:00
The invalidHandle, swapfile, oplock_break_cancelled, offload, and status_file_deleted fields are stored in the same bitfield byte in struct cifsFileInfo, but are updated in different code paths that may run simultaneously, and are protected by different locks. Since bitfield assignments generate byte-level read-modify-write operations, a modification to one flag can overwrite a concurrent modification to another flag. To avoid these races, convert these flags from a bitfield to separate bool fields. Closes: https://lore.kernel.org/r/7689764e-c0f6-4016-9557-b54cf4a3de4e@redhat.com Fixes: |
||
|---|---|---|
| .. | ||
| client | ||
| common | ||
| server | ||
| smbdirect | ||
| Kconfig | ||
| Makefile | ||