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 41D67A0582; Tue, 22 Nov 2022 16:52:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2F85442D74; Tue, 22 Nov 2022 16:52:24 +0100 (CET) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) by mails.dpdk.org (Postfix) with ESMTP id BFDB4427EB for ; Tue, 22 Nov 2022 16:52:22 +0100 (CET) Received: by mail-lf1-f42.google.com with SMTP id j4so24226760lfk.0 for ; Tue, 22 Nov 2022 07:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=YWssMSosY145m86hBzLIccAbXfpn5IdiPCsR9re2VEw=; b=Z94tjXQJkzYEq5rvuoGZtY3nV7VvAYM3r6m292DkHtslcvTCoAmQ/M8rosyaQjdq09 Mnag24JbruTyoX3bWwuG8fyZ5fM8sKNtIgFIcpVzpE1BrUCwh8UhK2t65Lur1ejkS7/O 4Ci8HOPmQWuRIkhcP2NlMf1IMeKAGEqozCkmJpVA+41dLeUVcYB60TXridhN9X5OkWOQ bWu39twGd1zyikhuja9OGP1SRsQKgN/EbeNa8rA4vqrnIRYr0eB1lLpPOD+aPNM5Dv2h zCxOCTuu+IMXowRm/7miMps0pVImAUbxWL0NTOY/PkyPIwzPnIf7fZjtK/EF6Su9pSjV CstA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YWssMSosY145m86hBzLIccAbXfpn5IdiPCsR9re2VEw=; b=UMvnkUBRRd3XevYcv26l/qpSgTR0EZMqH2w1+QZvczShwdJEITEkFcF/bcBLsVvMkJ i3SaFgbxfjeeNQpkgATSFgE2ILaxW5zzQ0IVh4bh7e83MeWlbSuD4dMAfRxab/pReQRm QbJT1BSIk5UHtJxOQDk1CWcdcgK/iw5E/5gIjdwIxjO1/+0fTet8NXGjdOaUgq7i+1bE RHQg6DV7idb0Crlcmv/f/owsBbHJeY6LseM5AGDZV1rS4iHESog9CJeLTIhj1jE0lCuY 2JNLWaJlyPnQELjNhs72xvpwqepvTCr9t8gkumE/hmwx0vnvvFrjKlaEZ5t6+Q1Bu9/y 9S5g== X-Gm-Message-State: ANoB5pnIKwJC4rR/iExUvQbAJjRCrdR9x6+N0G/yzITVXhpEMKeK93mv n4LhhYkiuWyVDBqNkqDttJo= X-Google-Smtp-Source: AA0mqf4G0gt7LonkHFYIz+x41Bwa5jIX0DQx3gdGN8a4x56xmQa1R7Rqejy4agJUYWVe1kKNMFN+gg== X-Received: by 2002:a05:6512:2c8a:b0:4af:f58e:a770 with SMTP id dw10-20020a0565122c8a00b004aff58ea770mr8988384lfb.275.1669132342106; Tue, 22 Nov 2022 07:52:22 -0800 (PST) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id v14-20020ac2592e000000b00498f00420e9sm2536358lfi.194.2022.11.22.07.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 07:52:21 -0800 (PST) Date: Tue, 22 Nov 2022 18:52:20 +0300 From: Dmitry Kozlyuk To: okaya@kernel.org Cc: dev@dpdk.org Subject: Re: [PATCH v2 04/11] memzone: check result of malloc_elem_from_data Message-ID: <20221122185220.19573c6d@sovereign> In-Reply-To: <20221121223208.1147154-5-okaya@kernel.org> References: <20221121223208.1147154-1-okaya@kernel.org> <20221121223208.1147154-5-okaya@kernel.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 2022-11-21 17:32 (UTC-0500), okaya@kernel.org: > From: Sinan Kaya > > In memzone_reserve_aligned_thread_unsafe result of call > to malloc_elem_from_data is dereferenced here and may be null. > > Signed-off-by: Sinan Kaya Acked-by: Dmitry Kozlyuk