From patchwork Mon Nov 21 23:09:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Schoenebeck X-Patchwork-Id: 2030 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1908170wrr; Mon, 21 Nov 2022 16:11:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf5VZ4aP5tsnrN67ART4ctsDSWHqalVK7y1jYT4iOpTHYTvp+hdSAf44kTy1yH06X3foFvv5 X-Received: by 2002:aa7:8694:0:b0:56d:78b0:16a0 with SMTP id d20-20020aa78694000000b0056d78b016a0mr1994691pfo.81.1669075869907; Mon, 21 Nov 2022 16:11:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669075869; cv=none; d=google.com; s=arc-20160816; b=AuLW8OW04Z9PDGvIYhpWFsTmCdKAP6+X1/YHjBz65bxWFPnmlWr2utloL1y2iqSIpM JGjboY3xtCCD2lH85clkkey5yewOahWIA/Tn3/z+SIEHzbrB841cVJZCx6pk5o9L574W YYO34fVEPlCUQD8EslyOchjSuYcuatqo6y+REC4/cdGI+DXH/vIxSq0Dm4k5dQF+ZXfT z4mmBTE1kEzqs6bgV5yu7mkqqbmo7NL4mhkfHKzxqd3l2TBic0zcXPxL9BLUyzVIXyUg LbwzgXItxTsDQ30Q5KUvDnZsrfUBQ8/o9AUOmLNNZzUAzhKLRaz2Hi6pfSHSpR08s+WS M5zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:date:from:message-id :dkim-signature; bh=fbXGUFSXYza3y/lPkuKmgh/RBaDaBeod3XSq0CnLBAc=; b=YUanbaq7bHCVNnTTus6ClhS/XywJgO6VJDMU6lMCqOynmZ+wXAhry9Eg0t9d7QsJ76 G3xKsiVhWAbG5OjagFrFf5+Zk1TGUnXIGNjsSu5fG9OeYdwkKwS7mR+eP/ceVIm6IPgc ZFZfsMsydMit5Q1Nnyv1o2MmXTZIyvgirW5lt5Zm/Y5TssWN7rS2FJBtpXfOqrm4HShZ fhXMQljmpT2SQO5SvLGj1lt/6g3+DV/3nT3+EhoF1vnmX8WXB2wfmjPC1DAgpXbtXKRr W0e9hitx6fg6W3Zj+pnrnmn0N6YJWq10I6NSN8eyQH0I28Vl2yJBuSp5/fJwekELTmgo lB0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=lizzy header.b=OveqCZjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a7-20020a17090a854700b00212f86579f8si14722729pjw.111.2022.11.21.16.10.56; Mon, 21 Nov 2022 16:11:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crudebyte.com header.s=lizzy header.b=OveqCZjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232026AbiKUX5K (ORCPT + 99 others); Mon, 21 Nov 2022 18:57:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbiKUX4p (ORCPT ); Mon, 21 Nov 2022 18:56:45 -0500 Received: from lizzy.crudebyte.com (lizzy.crudebyte.com [91.194.90.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD36E6A75B for ; Mon, 21 Nov 2022 15:56:28 -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=fbXGUFSXYza3y/lPkuKmgh/RBaDaBeod3XSq0CnLBAc=; b=OveqC ZjPdyWA9YK2IrGld4O/RfodxUMX0RWG1zazPtEMLdidzxy8aGZI3zxy3qZ2/DhNOphzkW6tp8+X+p OMSizAYasbHDxqKt4vfRxr17mMzJI2J5pZS4r+lcIShgXUSLj56lpLRHqYCLpRc1KMUAZ7Q2Z2lZg Q4RVkC921Ly0jL+M6yXGq3ar1bkcgSFRnqKc/DQ9E0cczVzXGdnFQijtwtj9XvUYMmljXVmJtiz3Y 6VQqk0APkuxwB7s1xbwUe8PMkq4zZ2Ra6wcgIXi4vzqJ1AIGD0NmDsXNpO+EkPaX9NzsuDgMq+nGW by4hz0Xo7yrI35oO7JvRTtqc8fMyQ==; Message-Id: From: Christian Schoenebeck Date: Tue, 22 Nov 2022 00:09:46 +0100 Subject: [PATCH 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750152859593919665?= X-GMAIL-MSGID: =?utf-8?q?1750152899143366152?= Follow-up fix for: https://lore.kernel.org/linux-kernel/Y3hADWgV9JeajmfF@codewreck.org/ Stefano, I am optimistic that this also works with Xen, but I have not tested it. 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 | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) Tested-by: Stefano Stabellini