From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 71763C0015E for ; Fri, 23 Jun 2023 05:00:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231460AbjFWFAr (ORCPT ); Fri, 23 Jun 2023 01:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231147AbjFWFAk (ORCPT ); Fri, 23 Jun 2023 01:00:40 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D3FD26B9 for ; Thu, 22 Jun 2023 22:00:09 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-3ff27588ba5so3538631cf.3 for ; Thu, 22 Jun 2023 22:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1687496409; x=1690088409; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=j/RGEzgP+aqX5ZY+j/ilBaNLtUkbB2eFzGxCWwZgKCI=; b=GLZRJdbgGtTqv7kuctUIXxgb6cawBVQJrpcuN5/GhnjlegY1NFLoLH7zHLxkjNFaZQ b94r93Hm6d+QZBJ4eK8rvvJpcT+5f2Dxs4Rxs7CuEreXRvcS6s9gI41FWfy+nLu/YXLD 8BvhLEDbRu1sPIhCjlrKMq7D0xO4NFpgxMcrc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687496409; x=1690088409; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=j/RGEzgP+aqX5ZY+j/ilBaNLtUkbB2eFzGxCWwZgKCI=; b=G38u+t3G/a4WAhrqkfVl2aRHoYx7WSk5qZwJBPLckcNCPlWNMeWGNeMM5+ife3yN+W iyjK2qT7xEXNqf/DL2SIHIU5G4Stq/uoUS0NWDSdBAYRoS+oMQWLyG5NOuznNs7jK0mZ HwLjbupEy+ooDxG2D8t5MwYyE8i8gEribo2nXzhoaosZh0VfJqXxHzdImzXcVPxqGsSa hO40394YHvp+Qy3NXz0tY5Rz+Vj8kPQT/0EfqBXCtQLtHcENRGACYBF8WYTJ7nScoLn4 7MyO+AhGpdzFfhmu5/JjLniK/7IirJqQF640OOXj9SSNmAJxDmKIrck7jT+TTh+IoOSU x8Rw== X-Gm-Message-State: AC+VfDzGO4jt+reIBDVZJeXAeCwRIqVIaqMnnyji2yoxU9uvEgwGnwHa ZHy4pN76DP7BABTVQ8swAo3Bcg== X-Google-Smtp-Source: ACHHUZ5ZnGLETi8vnh4wvIFB6bEndLB6axcJukRFIugGjuXOszeZs9XSIiD//UEa+RbqdfXKgyAuyA== X-Received: by 2002:a05:622a:507:b0:3f8:6924:a0b6 with SMTP id l7-20020a05622a050700b003f86924a0b6mr24623761qtx.50.1687496408922; Thu, 22 Jun 2023 22:00:08 -0700 (PDT) Received: from google.com ([2401:fa00:8f:203:3383:b451:fa2:1538]) by smtp.gmail.com with ESMTPSA id n4-20020a635904000000b00553b9e0510esm5487913pgb.60.2023.06.22.22.00.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 22:00:08 -0700 (PDT) Date: Fri, 23 Jun 2023 14:00:04 +0900 From: Sergey Senozhatsky To: "Gustavo A. R. Silva" Cc: Namjae Jeon , Steve French , Sergey Senozhatsky , Tom Talpey , linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH][next] ksmbd: Use struct_size() helper in ksmbd_negotiate_smb_dialect() Message-ID: <20230623050004.GA11488@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org On (23/06/21 15:29), Gustavo A. R. Silva wrote: > Prefer struct_size() over open-coded versions. > > Link: https://github.com/KSPP/linux/issues/160 > Signed-off-by: Gustavo A. R. Silva Reviewed-by: Sergey Senozhatsky