Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4149434rwb; Tue, 6 Sep 2022 03:24:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR6lhgK4V7+k0b5QPulZhP5MgN7ci1UpPHjtiqrfrQ0uGOPm8SZ2FejseaJ+NrHuFVpTyPRA X-Received: by 2002:a17:902:ef50:b0:171:516d:d2ce with SMTP id e16-20020a170902ef5000b00171516dd2cemr51288549plx.171.1662459852048; Tue, 06 Sep 2022 03:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662459852; cv=none; d=google.com; s=arc-20160816; b=FdnvB52GnldrDqDUDB9eLuhonueTNGplOQVxiELw0yPq5mfqrA0hujemz+qU7T/zW5 5lkSke92hT7Nj2j41uDxNpV5OJnJWF+mc1Xkmr646K8bQczxX0Lej1bsBK1Y2clbAizU 1Ql1YUdhRBCJshyPg2Wrc+agx7Dl+WOaljtZ/EhkEIi1REMeZfgG6KK3udStiWqr+ZXo UfIoC9dcJFkN2jQEOhG1sVZ+dr+Rvo2KE0Qu+Eaiv3MJajrTbB24m4wY/s261/OAVnRP gNkdqNP3ByD6/061rC3npgFYGJpdpZS45v6tMnlYhJz7WOMnILsfyHlCVhYDrNDBUgNs B39Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0+DYhezzLoWJqNIc57WnwGVIa9MiDZ24BuWYzD1fu+E=; b=Jkpa63dlVA2QD2LstX/swFkZNkMOPJGghyZEmETEQPDzrwTMaiuyINwD1H0JtdooKJ 2VvAma8lnZXyeafc4xOcmTTq2ZOSb+HAhjKzsNvbhMe0j0j9eCV78SV6+rIdcXY4uqfs UsnZrW/6KR2l0qfqPdtdrXaPQ4rSpgOykxoqKfzhc0au6mceOl/qviWC2b0PkblZS1Xy hwLODt+VxMx1fyxCLDNQ3JPaL3ygzoa6bY5HpUORQr1P89BfSbITsJ8ITa3NI8emZLZ3 JSYssyLZ1A3Ri4bh36bIj89LsVpBr29q1ISEBOp9u/7ZcMAmOAcZzSvnUEtH2rEyEwGE lpQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QfhVfLE7; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a73-20020a63904c000000b00434ba65aa88si745611pge.587.2022.09.06.03.24.00; Tue, 06 Sep 2022 03:24:12 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=QfhVfLE7; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239148AbiIFJku (ORCPT + 99 others); Tue, 6 Sep 2022 05:40:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239445AbiIFJkk (ORCPT ); Tue, 6 Sep 2022 05:40:40 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97E846715C; Tue, 6 Sep 2022 02:40:37 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id bn9so11635537ljb.6; Tue, 06 Sep 2022 02:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=0+DYhezzLoWJqNIc57WnwGVIa9MiDZ24BuWYzD1fu+E=; b=QfhVfLE7cbyCLEVbhkK2byK+qK6mOOuYXbIjS4LmizJCcEOX7fqAR2ogsRIGL4C9Nv o3mDYc04W7CshfYS9DFquBLGiOA2RTwXckd5CbDmOqRWoRs9SJcvqHmr3zj22Blermkr 6viFYSYUaZr8sey5m+vPz4QiFoZbddss0ecdvyrnggDuZi6l2QUQ0tIaTGriGRIlWQfL wFNErzbCFDFn34fQTHHAjvREuryKHoopG3gH8H0v3OB12Yetzmrq1LRCZRoO79H6V2CE hUFk9S5pbZX7ku+XGhSAXuc1b4Zg4f7LEc0Y52mcDFgoMVBhOACez1yLlFfyyaVp9sT9 nVYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=0+DYhezzLoWJqNIc57WnwGVIa9MiDZ24BuWYzD1fu+E=; b=Fwbur+mvJZFBPe5UVWy4DTGuVucIhQLobobEaTDRNZO8McRIdr8gQg41870U9L4D2S WMZr5HHPgUWHYB8T1RrX5qccfYdiyAzinrf6XYIgqm08sg0jtx9oJHp80JAYQoK3u/x2 V6BsQ+KXQX1AdHQPwCsKmlcjdP3gRppNAph6LnDu4VaCWqH2qBGXccjbg6N72ibQP7Y0 i1w25CNyWoSvhZElHkCQuo9IZxNrE6hoG0j4LBkpDybu+rRp7vmw3Kyw/XF5xY9a+jVp /UNv7mMFwElcyak8E/AyqAEmBelNglTS1Whoen8CoXatiwdBQDOPoqb/rol682i9C9LA D9ZA== X-Gm-Message-State: ACgBeo3ElMXRNUM7NwCyGnKl52d7Stk1pHTP02m7F100L0M1gFiM6xyP X6COK9lfJOVosrV/Okr8RppEGW+oQoZNtNqpUFU= X-Received: by 2002:a2e:9d94:0:b0:263:c964:4970 with SMTP id c20-20020a2e9d94000000b00263c9644970mr12003839ljj.345.1662457235608; Tue, 06 Sep 2022 02:40:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zixuan Tan Date: Tue, 6 Sep 2022 17:40:24 +0800 Message-ID: Subject: Re: [PATCH] perf/genelf: Switch deprecated openssl MD5_* functions to new EVP API To: Arnaldo Carvalho de Melo Cc: Namhyung Kim , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , linux-perf-users , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Arnaldo, are there any updates? Thanks, - Zixuan On Sat, Aug 27, 2022 at 2:32 AM Namhyung Kim wrote: > > Hello, > > On Fri, Aug 26, 2022 at 10:22 AM Zixuan Tan wrote: > > > > On Fri, Aug 26, 2022 at 4:17 AM Arnaldo Carvalho de Melo > > wrote: > > > > > > Em Fri, Aug 26, 2022 at 01:00:58AM +0800, Zixuan Tan escreveu: > > > > Switch to the flavored EVP API like in test-libcrypto.c, and remove the > > > > bad gcc #pragma. > > > > > > > > Inspired-By: 5b245985a6de ("tools build: Switch to new openssl API for > > > > test-libcrypto") > > > > > > How did you test the end result? Can you please describe step by step? > > > > > > Also please consider adding a 'perf test' entry to make sure this > > > doesn't regress. > > > > Sorry but I don't get what you mean, what results do I need to test? > > > > These EVP_* APIs are just replacements for the deprecated MD5_* APIs in > > openssl v3 [1][2]. With the same input, they produce the same MD5 digest. > > > > And this patch just does the migration work for the upgrade and does not > > change the logic of the code. so...what should I test? > > Yeah, I understand that this merely changes the MD5 APIs. > While it's good to have a test case for the genelf code, I don't think > it belongs to this patch. So, > > Acked-by: Namhyung Kim > > > > > > Links: > > [1] https://www.openssl.org/docs/man3.0/man3/MD5.html > > [2] https://stackoverflow.com/questions/69806220/advice-needed-for-migration-of-low-level-openssl-api-to-high-level-openssl-apis