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 C8252C433FE for ; Tue, 22 Nov 2022 20:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232689AbiKVUIk (ORCPT ); Tue, 22 Nov 2022 15:08:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234372AbiKVUIg (ORCPT ); Tue, 22 Nov 2022 15:08:36 -0500 Received: from lizzy.crudebyte.com (lizzy.crudebyte.com [91.194.90.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71F2EB406B for ; Tue, 22 Nov 2022 12:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Content-ID: Content-Description; bh=+Lw5Yj6TM+hHPWr+jQTkw9CKbMZOMA2vynPfEzxVjGo=; b=eTkNq DEJGfm5EinjESW5SPfc+fH9xo0gJHL/h03ZqpclUoQQQXFv0ZLSwhb5BlB+9e9aOiGvCwTRDsX/D5 4j1JUcc4URGRLo3e18YP10Rsj8MyV4/WGq4/+zRLyrWcD3O9YB1XDwIHFd+V1f4MNzirKbRYhTnt7 6HUrNy/JaEWhY3Eh1G3R7b8/dKW5hdzk+f5UuA3FQboCnU6Y5CJjAtlPXf3BYZyze8KZUSw/ZhZeX jDli/SxpX7XKTTX8/XBEpKNUE6bcuwPOLUwD+z3QLx4LdqscLfoKx/WStfgh3jbDPFv2KLVwE7gJw vzhcJFlGlNmuaX1iXBZs/r9PeOB0g==; Message-Id: From: Christian Schoenebeck Date: Tue, 22 Nov 2022 20:21:01 +0100 Subject: [PATCH v2 0/2] net/9p: fix response size check in p9_check_errors() To: Dominique Martinet , Stefano Stabellini Cc: v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, GUO Zihua Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Follow-up fix for: https://lore.kernel.org/linux-kernel/Y3hADWgV9JeajmfF@codewreck.org/ Dominique, I moved `zc` to the end of the structure to somewhat address the layout padding. If you prefer a function argument in the first place, let me know and I'll send a v3. v1 -> v2: * Move `zc` to end of struct p9_rstatf (to avoid huge padding). [patch 1] * Fix format specifier for `capacity` (reported by kernel test bot). [patch 2] * Fix code style. [patch 1..2] * Extend and adjust commit log messages. [patch 1..2] Christian Schoenebeck (2): net/9p: distinguish zero-copy requests net/9p: fix response size check in p9_check_errors() include/net/9p/9p.h | 2 ++ net/9p/client.c | 13 +++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) -- 2.30.2