mirror of
https://github.com/torvalds/linux.git
synced 2026-10-17 06:20:02 +02:00
Pattern_V1 is an optional chained payload type selected during SMB 3.1.1
compression negotiate. conn->compress_pattern was only consulted when
building responses, so a peer that negotiated LZ77 with chained support
could still submit Pattern payloads on the receive path.
Pass allow_pattern through smb_compression_decompress() and reject
SMB3_COMPRESS_PATTERN in the chained decoder when it is false.
Link: https://github.com/namjaejeon/ksmbd/issues/529
Fixes:
|
||
|---|---|---|
| .. | ||
| compress.c | ||
| compress.h | ||
| lz77.c | ||
| lz77.h | ||