Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1366137lqt; Wed, 20 Mar 2024 01:22:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfyQLtOKx9oEvi6yZa2UxfxlSwddmMvtUdJ6RVCoEjvBgvB1/ggP7kEJp9cqXk+Zgxm95X4gdGm6gL+T7Q8NEP9VxvQAzUlIoDZ3MOuA== X-Google-Smtp-Source: AGHT+IGrCe1Ik32hD9HNkvS5jJ4f8eWHuHvelclmqRDCfF9TrVVWf6X/67JWpCg7U+bOPDGY/A3o X-Received: by 2002:a17:902:8ec8:b0:1de:e8ce:9d8f with SMTP id x8-20020a1709028ec800b001dee8ce9d8fmr15426157plo.18.1710922934138; Wed, 20 Mar 2024 01:22:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710922934; cv=pass; d=google.com; s=arc-20160816; b=r68KwWbPwQJvd3cLR0z9Wuq4huHoi5Gd5S0z4z+kBhfd8oAhbU9BBtWvx+RnxzBzqf hmk4Mk5qQ3GnOLhaKzyWOClI47MfhK8ppZCHIAB/Xytwc+8d/bTWKpOIf7rGck+zcHFk YeOhcgm42Nlfq6je5V1M7w8wGYOAAEtqn3jOko5M62FlB6eshECCzrisViUJsK+TgxTc bv1W34sKA/AyLM0TEMxq4ZrDYP7qBPpR82yUOa6lUNDyV/gBMHYmT3xvh78chO4i8jo1 nrV4s5poMsuy3A3h14clmaOFtg3CCCjs7yrzP44Aw6OigeL/znzuuqlhnFx8xswnLu3H ovZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=20lel5on3C2kqSgJGtDwUHAnYBRNN8LkN4VCiSEvYl0=; fh=CZGdRUqutRLdjQm0D9sB4ELmaLAl6J4KUSos8KkSqhA=; b=eW/D8Xa6N7gIAC6oWCqsypy/pW7jTxpyOS5b3ilXthcSNFkUJNmk2H7tABvHyNqCZU O6e3jGhPkqqzb4hoK58TfcK5Oa6VzzwWqLJ1nvWeq2yAxNM4BV8ztEaHjbsaUptPZWbW TDdail72TSkm4Gj596YgLF4SE8VvQO4Q0lWHB2blJf51DsKtyXCUEjXprY5+Tnk8qknz spnTBbO2qoHUXQ0jDzmxbPHVsJu0WBjVl86v5Wlj4uCgkuRK7s5qVT+MgijUp2/IncqZ UIwaXJd/kdhup7Qgk+q62Nqn9ACLnqDp02se+Q8gGcvGfbRPrhX9E/B4BxWPBXTswVpk SX2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-crypto+bounces-2765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2765-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b12-20020a170902e94c00b001e003c4fac4si8009259pll.309.2024.03.20.01.22.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 01:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-2765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-crypto+bounces-2765-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-crypto+bounces-2765-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CD40D284EFD for ; Wed, 20 Mar 2024 08:22:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FF05364C4; Wed, 20 Mar 2024 08:22:10 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3FAF11720; Wed, 20 Mar 2024 08:22:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710922930; cv=none; b=abwN9zCRHbNNaJT513Dp6+9Jvt6+72IL289nu9lMgZDeiMc9pnvqNTS779wlhBj7qeQl06yvUuyVR+IBMo/vuTKNQJSPDH559UP3lYCDnIjnlY7rbmK65QKQxFGSXQSKDgY4uXeHo3S60/xdyD7rtQ28X+DFZjAPJTOZ8elSPRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710922930; c=relaxed/simple; bh=9yBbHSOJlL9pdcEYP8Hk+lnve6pJYkw0t1O5f/G/TDo=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=FP+cFuCt6rDteQzw/1XsJdkbNGnf6GEuI121vFecMj7P68qHERAleBTOWLfIVuPRT46kn22pg0Vepot7dfExiEoP92OToqIfNaeNXc/9ol4rOuZ2GWyfBC2MRECAN1QbF8SPvx6uMzDvYIfcg1fvYUIc0I0euSJx5jpP0czjf6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from msexch01.omp.ru (10.188.4.12) by msexch02.omp.ru (10.188.4.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Wed, 20 Mar 2024 11:21:56 +0300 Received: from msexch01.omp.ru ([fe80::485b:1c4a:fb7f:c753]) by msexch01.omp.ru ([fe80::485b:1c4a:fb7f:c753%5]) with mapi id 15.02.1258.012; Wed, 20 Mar 2024 11:21:56 +0300 From: Roman Smirnov To: Jarkko Sakkinen , David Howells , Herbert Xu , "David S. Miller" , Andrew Zaborowski CC: "keyrings@vger.kernel.org" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "lvc-project@linuxtesting.org" , "Sergey Shtylyov" Subject: Re: [PATCH] KEYS: prevent NULL pointer dereference in find_asymmetric_key() Thread-Topic: [PATCH] KEYS: prevent NULL pointer dereference in find_asymmetric_key() Thread-Index: AQHadsRHcr0dJekxEkCC6oTcOjjyP7E9+xQAgAEukF2AACqYAIAA/WFj Date: Wed, 20 Mar 2024 08:21:56 +0000 Message-ID: <7fd0f2a8252d4a6aa295adc1e76bc0e2@omp.ru> References: <20240315103320.18754-1-r.smirnov@omp.ru> , In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-kse-serverinfo: msexch02.omp.ru, 9 x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: Clean, bases: 3/20/2024 4:50:00 AM x-kse-attachment-filter-triggered-rules: Clean x-kse-attachment-filter-triggered-filters: Clean x-kse-bulkmessagesfiltering-scan-result: InTheLimit Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 19 Mar 2024 22:14:22 +0200 Jarkko Sakkinen wrote: > On Tue Mar 19, 2024 at 4:44 PM EET, Roman Smirnov wrote: > > On Tue, 19 Mar 2024 01:39:00 +0200 Jarkko Sakkinen wrote: > > > On Fri Mar 15, 2024 at 12:33 PM EET, Roman Smirnov wrote: [...] > > > > > > > > Found by Linux Verification Center (linuxtesting.org) with Svace. > > >=20 > > > I'm not sure if this should be part of the commit message. > > > > I have already submitted patches with this line, some have been > > accepted. It is important for the Linux Verification Center to mark > > patches as closing issues found with Svace. > > > > > > > > > > Fixes: 7d30198ee24f ("keys: X.509 public key issuer lookup without = AKID") > > > > Suggested-by: Sergey Shtylyov > > >=20 > > > Should be reported-by. > > > > The suggested-by tag belongs to Sergey because he suggested the fix, > > subject/description of the patch. The tag reported-by belongs to > > Svace tool. > > 1. I did not see any reported-by tags in this which is requirement. > 2. Who did find the issue using that tool? I don't put reported-by to > GDB even if I use that find the bug. Svace is an automated bug finding tool. This error was found during source code analysis by the program, so the tag reported-by does not belong to any person. I don't know what to do in such a situation, but write something like: Reported-by: Svace would be weird. I think that the line "Found by Linux ... with Svace" could be a substitute for the tag.=