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 X-Spam-Level: X-Spam-Status: No, score=-0.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 183FEC0650F for ; Wed, 14 Aug 2019 03:31:14 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id B39CC20679 for ; Wed, 14 Aug 2019 03:31:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="XVU7c/tq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B39CC20679 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=icloud.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7F2C51BE8A; Wed, 14 Aug 2019 05:31:12 +0200 (CEST) Received: from ms11p00im-hyfv17281201.me.com (ms11p00im-hyfv17281201.me.com [17.58.38.39]) by dpdk.org (Postfix) with ESMTP id A28F91BE85 for ; Wed, 14 Aug 2019 05:31:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1565753469; bh=T3ihR1rA4iOD4GNfwscOFxOasVTsu+fPB52SN3Ch+qI=; h=To:From:Subject:Date:Message-id:Content-Type; b=XVU7c/tqcwnX+sfNmY6v4RUyC3duMK04uzuQQ3lbgNIle90BOSfts6vy6efjDGSY/ ieRXj+KL9Bfu6w4WnBh/djezIIMJemWv7+6eQTh9hkoHURF3MjRK0iKp/Mof6y0fXE TMo7K85hZOYP50x2qZM30yZxCiOebI6CEsW1hfEUJRIHFCn6wGPi7PFdvrez/ONEw9 6thTz2cxnzHLpGJJmlqqHl99QVcSmtnZrmNAA654VRizyNF8ORlFu3oIs3q8bQQJoc vzAbGouSYroaRB9l1l86bo0x4EesDyJbHCK1iOZ/bhjFTyAvzPak1u34UqqcQVeUoa GqcS7Ge2bg+7Q== Received: from localhost (pv33p03im-webms003.me.com [17.142.224.114]) by ms11p00im-hyfv17281201.me.com (Postfix) with ESMTP id 8A1CDC00D20; Wed, 14 Aug 2019 03:31:09 +0000 (UTC) To: dev@dpdk.org Cc: =?utf-8?B?IkNIRU5DSE9ORzEgW+mZiOWGsl0i?= , =?utf-8?B?IllFWElBT0ZFTkcxIFvlj7blsI/ls7BdIg==?= From: He Peng Date: Wed, 14 Aug 2019 03:31:09 GMT X-Mailer: iCloud MailClient1914Project39 MailServer1913B46.10000-1913B-0-be2a8866e288 Message-id: <25e23931-9add-4d5c-b46c-25d4f1f6c9f5@me.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-08-14_01:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=588 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1908140028 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] =?utf-8?q?*rte=5Fvhost=5Frx=5Fqueue=5Fcount*_should__b?= =?utf-8?q?e_protected_by_vq-=3Eaccess=5Flock?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi=EF=BC=8C=0A=0A=0AWe found that *rte_vhost_rx_queue_count* is not protec= ted by vq->access_lock,=0Aand=C2=A0the access to vq->avail->idx is not thr= ead-safe, since at the same time, the vq->avail=C2=A0=C2=A0might be=C2=A0=0A= =0Aset by *vring_invalidate* when some vhost-user messages arrived, such a= s VRING_SET_ADDRESS,=0AVRING_SET_MEM_TABLE, etc.=0A=0A=0AThanks.=C2=A0=0A=0A= =0A=0A