nvme-tcp: fix nvme_tcp_term_pdu to match spec
stable inclusion from stable-v5.10.177 commit 3c72445dadc33fd5ab44b3987a8c59b62da6f3b1 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3c72445dadc33fd5ab44b3987a8c59b62da6f3b1 -------------------------------- [ Upstream commit aa01c67d ] The FEI field of C2HTermReq/H2CTermReq is 4 bytes but not 4-byte-aligned in the NVMe/TCP specification (it is located at offset 10 in the PDU). Split it into two 16-bit integers in struct nvme_tcp_term_pdu so no padding is inserted. There should also be 10 reserved bytes after. There are currently no users of this type. Fixes: fc221d05 ("nvme-tcp: Add protocol header") Reported-by:Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by:
Caleb Sander <csander@purestorage.com> Reviewed-by:
Sagi Grimberg <sagi@grimberg.me> Signed-off-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment