Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp46164lqd; Tue, 23 Apr 2024 14:09:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUc1bPifxtdLu7MpOLab0h2dHsNrP6OyGkxjCC85+MBIVQnsAi6K+YP5B96bejpfgygnDWo03Z0gKpc2KK30S1m+KC2viXL9g1Z3BFMbw== X-Google-Smtp-Source: AGHT+IEUd+YALUOLmyP3g/PybBlxdetLnk9+AaSCmTmFgEVT6kZygztMnlgVbxXPuA+nSLq0Fe6Y X-Received: by 2002:ac2:58e5:0:b0:51b:3196:ee9d with SMTP id v5-20020ac258e5000000b0051b3196ee9dmr399719lfo.23.1713906546381; Tue, 23 Apr 2024 14:09:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713906546; cv=pass; d=google.com; s=arc-20160816; b=B4+obeoXF05xI8DzQrDMwgEaxx3KQfcaaunM+u14WZtH15xRCTSPsK3oMzyKgwGW35 0hlH9YiAi3jOE+ijXG4oQQV6pMn8eY14sosl8IWDx2xBjfwGFDJ1k3H705HjTIt046t9 AMMu87lOU2WKDRKPtlLjTFvDByJtku0bYoOXRGZLrIMf76b7wE3enKdql7iUzU4cZexM +jwPt3kv0f67gJxRTgiYXyUyJC7cxZz5SxXfw5xgGKXYUPd6OvyXYUq4oiHO3uQZWiYi BbY6c0KIP2FAqj/Xap2+zgEM5tZUMtTFw+O/ZJQqvWRACAwqa7OAiwMn9pcvN/WtuZxv gHvA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=I7BHy9aBHSzDDHn2JRSIxaKbm2rUKb0fWznfkN/uXdU=; fh=xOvh3/1ajeT9Uuo1/sqJ+dJOtA+syghwQ/6izgOShfA=; b=NeqcmYuLkrcOO51KwhxUMr0JiFEuoriZgmCpU+FxBqtkZfXCT9t/TkQShzuIVWgw2J Cu1zc0oluAWXtgxtG/I7RmaT6Or0W/i12wuAnwZUFePaqzMah/+0BbHp4R6vymMV4/GF aRJ2ezkRA6AicxomOEr6/HXZ3tWVgIHNXB2Qw0EO3kZSuzS5G2eLISQV0u5gbXOrBLg9 0ZI3mLIE5KkTaZDEAiAMYFsRQfqPAfoWtd8mZCi/S8vDi0J73gKV+CRW3k+85yA8fZWL +K66SSxXACjBTWrFUYGVy8pr9VDqQ2BKJ1gwBA+N87boq2sJZUKeaJ/QrrXUQwscElgj 0f4A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=QrIuvCWW; arc=pass (i=1 spf=pass spfdomain=embeddedor.com dkim=pass dkdomain=embeddedor.com); spf=pass (google.com: domain of linux-kernel+bounces-155904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155904-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e25-20020a50d4d9000000b00571d1ed05cbsi6592019edj.314.2024.04.23.14.09.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 14:09:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=QrIuvCWW; arc=pass (i=1 spf=pass spfdomain=embeddedor.com dkim=pass dkdomain=embeddedor.com); spf=pass (google.com: domain of linux-kernel+bounces-155904-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155904-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id DB1B81F260CC for ; Tue, 23 Apr 2024 21:09:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D7BB143860; Tue, 23 Apr 2024 21:09:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b="QrIuvCWW" Received: from omta036.useast.a.cloudfilter.net (omta036.useast.a.cloudfilter.net [44.202.169.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4038142909 for ; Tue, 23 Apr 2024 21:08:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.202.169.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713906539; cv=none; b=HOxaWsGcqL98g7TObnBLIQ9AYxRtZ/eaOMr4zIF9JScd3lUFGQahU5tkSb9sC6qk7kM7vUurRQA9j6Pupyx9Xu++gppKDWSlV2AAOt/580J1OhaPVCtp3Yc4z+B6bheScVQFsy7QPf/7YZ4whNLU7aOtusFqgj/dZGIQmiMnreE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713906539; c=relaxed/simple; bh=pOWnjRKBbBYWfEoDD+pLbeLYycN23oIhFm/bOUAAPuI=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=fzYUEJRgohftBU8E6NnlKekcsG0wsoqw+jTNmapXzNXA5ADx+xOtYdZww3LDqseUFNzlAp13SxsOzjp9i1m9GUGRIYpf6TjbOIR5sE03MrqQDkAzxbUzzZmJgHnyJTSO+yqf4nlUousygRF08vvsCEfYIjAjrkPqC96tnEbqpWw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com; spf=pass smtp.mailfrom=embeddedor.com; dkim=pass (2048-bit key) header.d=embeddedor.com header.i=@embeddedor.com header.b=QrIuvCWW; arc=none smtp.client-ip=44.202.169.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=embeddedor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedor.com Received: from eig-obgw-6004a.ext.cloudfilter.net ([10.0.30.197]) by cmsmtp with ESMTPS id zKdOrUVAyuh6szNNnrRUE8; Tue, 23 Apr 2024 21:08:55 +0000 Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with ESMTPS id zNNmrZT6puv6XzNNnrJUpm; Tue, 23 Apr 2024 21:08:55 +0000 X-Authority-Analysis: v=2.4 cv=YbZ25BRf c=1 sm=1 tr=0 ts=66282367 a=1YbLdUo/zbTtOZ3uB5T3HA==:117 a=Sfg9OT4WXbNM99GaDXVDBA==:17 a=IkcTkHD0fZMA:10 a=raytVjVEu-sA:10 a=wYkD_t78qR0A:10 a=VwQbUJbxAAAA:8 a=_Wotqz80AAAA:8 a=NEAV23lmAAAA:8 a=n2H5fMOs0mMikS8BsOwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=AjGcO6oz07-iQ99wixmX:22 a=buJP51TR1BpY-zbLSsyS:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:References:Cc:To:From:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=I7BHy9aBHSzDDHn2JRSIxaKbm2rUKb0fWznfkN/uXdU=; b=QrIuvCWWjYehVLEXiNpg63PBbq vBT50u22vX4+HZx8PrY7YWLrESs2JkdNk1beCGhIB/viqhygYDqy1AMjQkEBHgq0B0XDSJgufyd9m H9zzcFnKJSzT08OmhQDT+ndSYqjfYIq1fZ8PDme01UcSdl1/tivZ4yHAPrcZh9d+n+cthAR8EFoeL jOjEqDa/DdbH6ikhPA++2J3Q+9s90XzGhKnE2c0icgeX0aTfst5T5mv7LuZYebTts8psVr+Ssd+xG 9QDeXP+HbuSh2d34p66j0bkvKT5ctHCEVuuXF0970anaTyYNcEO7gOx4rLZPKJPz53b0v5qnFW2lv YPrP9XcQ==; Received: from [45.167.200.115] (port=1197 helo=[192.168.5.44]) by gator4166.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96.2) (envelope-from ) id 1rzNNj-002Rrt-2V; Tue, 23 Apr 2024 16:08:53 -0500 Message-ID: <4defe080-d006-44b8-98ac-b8822a678d70@embeddedor.com> Date: Wed, 24 Apr 2024 07:08:32 +1000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH][next] smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings From: "Gustavo A. R. Silva" To: Steve French Cc: "Gustavo A. R. Silva" , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Bharath SM , Namjae Jeon , Sergey Senozhatsky , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Kees Cook References: <1166494b-3e34-4919-9998-141540a948b3@embeddedor.com> <7789881d-a709-48f4-8c14-259acbce813a@embeddedor.com> Content-Language: en-US In-Reply-To: <7789881d-a709-48f4-8c14-259acbce813a@embeddedor.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 45.167.200.115 X-Source-L: No X-Exim-ID: 1rzNNj-002Rrt-2V X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([192.168.5.44]) [45.167.200.115]:1197 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 3 X-Org: HG=hgshared;ORG=hostgator; X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfKo8sCa4o7tGRGvptCvqPaphQYYoD0l56zdyQzniU7JyJ9h9yeNJosHHL6K0t32Dm6bk/L+Hm/rlcHvnQH7ABOXpnACt9Kql7n0tzg30rO/i9jTcdvgu G09vr2pbIatm9ivrzP3f0i7wyF3+RiM/0ozJaie2Q9QO8MafSLhRL/13/55zOWuewqkDiTj0AVaFC5ohNdzbUi0ITyoOAhLiWBo9502/2YTLczfDP4Kpg1k6 On 23/04/24 14:47, Gustavo A. R. Silva wrote: > > > On 23/04/24 14:15, Steve French wrote: >> This looks reasonably safe (running the usual regression tests on it now). >> >> Reminds me though that we have to be careful (e.g. the recent fix for >> regression caused by cleanup). > > mmh... it seems that the offending commit was never CC'd to the linux-hardening > list, hence it wasn't reviewed by us. > > After reviewing both, the offending commit and the fix, both seem to be wrong. > > for __packed structs, you should use __struct_group(): > > __struct_group(network_open_info, group_name, __packed, struct_members); > > The _packed in the commit 0268a7cc7fdc is not an attribute, it's the name > for the group. So, it's not actually doing what the submitter thinks it does. Sorry about this, I'm still too sleep deprived, aghr... I confused the suffix _attr with _tag. The fix is correct! Thanks! -- Gustavo > >> >> Thoughts about whether should be sent in rc6 or wait till 6.10?  51 >> warnings does sound >> distracting though so might be worth going in sooner rather than later. > > There is actually no hurry. :) > > Thanks > -- > Gustavo > >> >> commit 0268a7cc7fdc47d90b6c18859de7718d5059f6f1 >> Author: Namjae Jeon >> Date:   Fri Apr 19 23:46:34 2024 +0900 >> >>      ksmbd: common: use struct_group_attr instead of struct_group for >> network_open_info >> >>      4byte padding cause the connection issue with the applications of MacOS. >>      smb2_close response size increases by 4 bytes by padding, And the smb >>      client of MacOS check it and stop the connection. This patch use >>      struct_group_attr instead of struct_group for network_open_info to use >>       __packed to avoid padding. >> >> >> On Tue, Apr 23, 2024 at 1:58 PM Gustavo A. R. Silva >> wrote: >>> >>> Hi all, >>> >>> Friendly ping: who can take this, please? >>> >>> Thanks >>> -- >>> Gustavo >>> >>> On 11/04/24 09:35, Gustavo A. R. Silva wrote: >>>> -Wflex-array-member-not-at-end is coming in GCC-14, and we are getting >>>> ready to enable it globally. >>>> >>>> So, in order to avoid ending up with a flexible-array member in the >>>> middle of multiple other structs, we use the `__struct_group()` helper >>>> to separate the flexible array from the rest of the members in the >>>> flexible structure, and use the tagged `struct create_context_hdr` >>>> instead of `struct create_context`. >>>> >>>> So, with these changes, fix 51 of the following warnings[1]: >>>> >>>> fs/smb/client/../common/smb2pdu.h:1225:31: warning: structure containing a flexible array member is not at the end of another structure >>>> [-Wflex-array-member-not-at-end] >>>> >>>> Link: https://gist.github.com/GustavoARSilva/772526a39be3dd4db39e71497f0a9893 [1] >>>> Link: https://github.com/KSPP/linux/issues/202 >>>> Signed-off-by: Gustavo A. R. Silva >>>> --- >>>>    fs/smb/client/smb2pdu.h | 12 ++++++------ >>>>    fs/smb/common/smb2pdu.h | 33 ++++++++++++++++++--------------- >>>>    fs/smb/server/smb2pdu.h | 18 +++++++++--------- >>>>    3 files changed, 33 insertions(+), 30 deletions(-) >>>> >>>> diff --git a/fs/smb/client/smb2pdu.h b/fs/smb/client/smb2pdu.h >>>> index c72a3b2886b7..1a02bd9e0c00 100644 >>>> --- a/fs/smb/client/smb2pdu.h >>>> +++ b/fs/smb/client/smb2pdu.h >>>> @@ -145,7 +145,7 @@ struct durable_context_v2 { >>>>    } __packed; >>>> >>>>    struct create_durable_v2 { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        struct durable_context_v2 dcontext; >>>>    } __packed; >>>> @@ -167,7 +167,7 @@ struct durable_reconnect_context_v2_rsp { >>>>    } __packed; >>>> >>>>    struct create_durable_handle_reconnect_v2 { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        struct durable_reconnect_context_v2 dcontext; >>>>        __u8   Pad[4]; >>>> @@ -175,7 +175,7 @@ struct create_durable_handle_reconnect_v2 { >>>> >>>>    /* See MS-SMB2 2.2.13.2.5 */ >>>>    struct crt_twarp_ctxt { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8    Name[8]; >>>>        __le64  Timestamp; >>>> >>>> @@ -183,12 +183,12 @@ struct crt_twarp_ctxt { >>>> >>>>    /* See MS-SMB2 2.2.13.2.9 */ >>>>    struct crt_query_id_ctxt { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8    Name[8]; >>>>    } __packed; >>>> >>>>    struct crt_sd_ctxt { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8    Name[8]; >>>>        struct smb3_sd sd; >>>>    } __packed; >>>> @@ -415,7 +415,7 @@ struct smb2_posix_info_parsed { >>>>    }; >>>> >>>>    struct smb2_create_ea_ctx { >>>> -     struct create_context ctx; >>>> +     struct create_context_hdr ctx; >>>>        __u8 name[8]; >>>>        struct smb2_file_full_ea_info ea; >>>>    } __packed; >>>> diff --git a/fs/smb/common/smb2pdu.h b/fs/smb/common/smb2pdu.h >>>> index 1b594307c9d5..eab9d49c63ba 100644 >>>> --- a/fs/smb/common/smb2pdu.h >>>> +++ b/fs/smb/common/smb2pdu.h >>>> @@ -1171,12 +1171,15 @@ struct smb2_server_client_notification { >>>>    #define SMB2_CREATE_FLAG_REPARSEPOINT 0x01 >>>> >>>>    struct create_context { >>>> -     __le32 Next; >>>> -     __le16 NameOffset; >>>> -     __le16 NameLength; >>>> -     __le16 Reserved; >>>> -     __le16 DataOffset; >>>> -     __le32 DataLength; >>>> +     /* New members must be added within the struct_group() macro below. */ >>>> +     __struct_group(create_context_hdr, hdr, __packed, >>>> +             __le32 Next; >>>> +             __le16 NameOffset; >>>> +             __le16 NameLength; >>>> +             __le16 Reserved; >>>> +             __le16 DataOffset; >>>> +             __le32 DataLength; >>>> +     ); >>>>        __u8 Buffer[]; >>>>    } __packed; >>>> >>>> @@ -1222,7 +1225,7 @@ struct smb2_create_rsp { >>>>    } __packed; >>>> >>>>    struct create_posix { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8    Name[16]; >>>>        __le32  Mode; >>>>        __u32   Reserved; >>>> @@ -1230,7 +1233,7 @@ struct create_posix { >>>> >>>>    /* See MS-SMB2 2.2.13.2.3 and MS-SMB2 2.2.13.2.4 */ >>>>    struct create_durable { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        union { >>>>                __u8  Reserved[16]; >>>> @@ -1243,14 +1246,14 @@ struct create_durable { >>>> >>>>    /* See MS-SMB2 2.2.13.2.5 */ >>>>    struct create_mxac_req { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        __le64 Timestamp; >>>>    } __packed; >>>> >>>>    /* See MS-SMB2 2.2.14.2.5 */ >>>>    struct create_mxac_rsp { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        __le32 QueryStatus; >>>>        __le32 MaximalAccess; >>>> @@ -1286,13 +1289,13 @@ struct lease_context_v2 { >>>>    } __packed; >>>> >>>>    struct create_lease { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        struct lease_context lcontext; >>>>    } __packed; >>>> >>>>    struct create_lease_v2 { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        struct lease_context_v2 lcontext; >>>>        __u8   Pad[4]; >>>> @@ -1300,7 +1303,7 @@ struct create_lease_v2 { >>>> >>>>    /* See MS-SMB2 2.2.14.2.9 */ >>>>    struct create_disk_id_rsp { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        __le64 DiskFileId; >>>>        __le64 VolumeId; >>>> @@ -1309,7 +1312,7 @@ struct create_disk_id_rsp { >>>> >>>>    /* See MS-SMB2 2.2.13.2.13 */ >>>>    struct create_app_inst_id { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8 Name[16]; >>>>        __le32 StructureSize; /* Must be 20 */ >>>>        __u16 Reserved; >>>> @@ -1318,7 +1321,7 @@ struct create_app_inst_id { >>>> >>>>    /* See MS-SMB2 2.2.13.2.15 */ >>>>    struct create_app_inst_id_vers { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8 Name[16]; >>>>        __le32 StructureSize; /* Must be 24 */ >>>>        __u16 Reserved; >>>> diff --git a/fs/smb/server/smb2pdu.h b/fs/smb/server/smb2pdu.h >>>> index bd1d2a0e9203..643f5e1cfe35 100644 >>>> --- a/fs/smb/server/smb2pdu.h >>>> +++ b/fs/smb/server/smb2pdu.h >>>> @@ -64,7 +64,7 @@ struct preauth_integrity_info { >>>>    #define SMB2_SESSION_TIMEOUT                (10 * HZ) >>>> >>>>    struct create_durable_req_v2 { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        __le32 Timeout; >>>>        __le32 Flags; >>>> @@ -73,7 +73,7 @@ struct create_durable_req_v2 { >>>>    } __packed; >>>> >>>>    struct create_durable_reconn_req { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        union { >>>>                __u8  Reserved[16]; >>>> @@ -85,7 +85,7 @@ struct create_durable_reconn_req { >>>>    } __packed; >>>> >>>>    struct create_durable_reconn_v2_req { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        struct { >>>>                __u64 PersistentFileId; >>>> @@ -96,13 +96,13 @@ struct create_durable_reconn_v2_req { >>>>    } __packed; >>>> >>>>    struct create_alloc_size_req { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        __le64 AllocationSize; >>>>    } __packed; >>>> >>>>    struct create_durable_rsp { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        union { >>>>                __u8  Reserved[8]; >>>> @@ -114,7 +114,7 @@ struct create_durable_rsp { >>>>    /* Flags */ >>>>    #define SMB2_DHANDLE_FLAG_PERSISTENT        0x00000002 >>>>    struct create_durable_v2_rsp { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        __le32 Timeout; >>>>        __le32 Flags; >>>> @@ -122,7 +122,7 @@ struct create_durable_v2_rsp { >>>> >>>>    /* equivalent of the contents of SMB3.1.1 POSIX open context response */ >>>>    struct create_posix_rsp { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8    Name[16]; >>>>        __le32 nlink; >>>>        __le32 reparse_tag; >>>> @@ -381,13 +381,13 @@ struct smb2_ea_info { >>>>    } __packed; /* level 15 Query */ >>>> >>>>    struct create_ea_buf_req { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        struct smb2_ea_info ea; >>>>    } __packed; >>>> >>>>    struct create_sd_buf_req { >>>> -     struct create_context ccontext; >>>> +     struct create_context_hdr ccontext; >>>>        __u8   Name[8]; >>>>        struct smb_ntsd ntsd; >>>>    } __packed; >>> >> >> >> -- >> Thanks, >> >> Steve