From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EB719A00C3 for ; Fri, 1 Jul 2022 10:30:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E614242670; Fri, 1 Jul 2022 10:30:50 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id A37FD40A7B for ; Fri, 1 Jul 2022 10:30:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1656664248; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M7rOVVEdTNYVhHazjs0euo2z0piL0jY3BZxsee/uKRo=; b=Z+hwM+ZgRcwaNkf7zjiBJjL790O5r8nts5HjvbnWOp2ck5+dLMgH1VyWYEVJr7eBqZXrax ptYUJHVPSXCEWuWoUcmNa8VCPIj6qYki6jIypyqrrMA3bSyxvGOtgMKgt4CyDtsvGNm+Lj CSVwi0ExTgzC26HysMXUlsT8DM9bzaI= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-287-Zo172-BZMF2HfvztJ1CQWA-1; Fri, 01 Jul 2022 04:30:46 -0400 X-MC-Unique: Zo172-BZMF2HfvztJ1CQWA-1 Received: by mail-lf1-f72.google.com with SMTP id p36-20020a05651213a400b004779d806c13so815276lfa.10 for ; Fri, 01 Jul 2022 01:30:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=M7rOVVEdTNYVhHazjs0euo2z0piL0jY3BZxsee/uKRo=; b=n5aMqkuWR7LSKyhCs4CtFasTgmL/4rSk9/SYGVLTH+4PSkCuLmzDD0V8ATHkeqM5W5 ZLLSF4un7Qke5AVJ9NwfbyiBrqsCPQ38Ga5yq1SoDsVNBlSry8Qh2OAaZunEpGIOcYSm AchZT9FJsnfC1yUyLaENayLV4Rp4pb+uK89KVksTPHxLI4nvlY0ZztLnzTkyDzFPAU02 E7SC3gfUm/eiuiegaMA3O2lqPESKWp9E/lBk0aAEgkvVWNBPKdqK9Y8d/g+9eWxr1Bts ZuopEzO5vObSf5rYmYN/NMCrIKugLKnLEBa8nndiVPJNvn1lcMLSmB1YUwlYNnf0qvcL qRPw== X-Gm-Message-State: AJIora9icixOSalmK9+pld79C9tQyiU+l1P4OhBso9yU81pqwwFNj7ZE ojauMw2v4NpBLI5ySI5VNsqlVwn7NxuUknCCuD9W6vIq1xu4DQFYBmkTELXDDVsMFHKePrBfcJW c85dx1286QPMp1unDt5ectXc= X-Received: by 2002:ac2:51a5:0:b0:47f:79a1:5c02 with SMTP id f5-20020ac251a5000000b0047f79a15c02mr8336371lfk.575.1656664245157; Fri, 01 Jul 2022 01:30:45 -0700 (PDT) X-Google-Smtp-Source: AGRyM1utyxeeZsWd0/e2xOolsCk38V2hsNUf24tbWp5IQCTg96cHoXrDsls+G9/D5E7tr+uVSCRoA8sOmUlizYAiLv8= X-Received: by 2002:ac2:51a5:0:b0:47f:79a1:5c02 with SMTP id f5-20020ac251a5000000b0047f79a15c02mr8336358lfk.575.1656664244966; Fri, 01 Jul 2022 01:30:44 -0700 (PDT) MIME-Version: 1.0 References: <20220620131044.1858049-1-david.marchand@redhat.com> In-Reply-To: <20220620131044.1858049-1-david.marchand@redhat.com> From: David Marchand Date: Fri, 1 Jul 2022 10:30:33 +0200 Message-ID: Subject: Re: [PATCH] vdpa/mlx5: fix leak on event thread creation To: Matan Azrad , Viacheslav Ovsiienko , Xueming Li Cc: dev , dpdk stable , Maxime Coquelin , Raslan Darawsheh Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org On Mon, Jun 20, 2022 at 3:11 PM David Marchand wrote: > > As stated in the manual, pthread_attr_init return value should be > checked. > Besides, a pthread_attr_t should be destroyed once unused. > > In practice, we may have no leak (from what I read in glibc current code), > but this may change in the future. > Stick to a correct use of the API. > > Fixes: 5cf3fd3af4df ("vdpa/mlx5: add CPU core parameter to bind polling thread") > Cc: stable@dpdk.org > > Signed-off-by: David Marchand Review, please? -- David Marchand