From patchwork Mon Nov 5 12:51:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin LABBE X-Patchwork-Id: 10668189 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B1D81709 for ; Mon, 5 Nov 2018 12:52:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B9B32978E for ; Mon, 5 Nov 2018 12:52:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1794229701; Mon, 5 Nov 2018 12:52:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1C6029792 for ; Mon, 5 Nov 2018 12:52:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729620AbeKEWLC (ORCPT ); Mon, 5 Nov 2018 17:11:02 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:42586 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728136AbeKEWLC (ORCPT ); Mon, 5 Nov 2018 17:11:02 -0500 Received: by mail-wr1-f66.google.com with SMTP id y15-v6so9379543wru.9 for ; Mon, 05 Nov 2018 04:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=QtON/trzx51iCvNHUp101pkkVDDExDxZGsHSUZ1m/F8=; b=G9CB2QwkQYKCh4vtBhT1ZlMYe4btz4H8m/f8Ufbre4xFxBfqInDJHKSoMTSyqnCs6Y LQKT5c9mtRLWQ5Mu1+TVEgurB/qHLI5C4RzKAXKUQDMJoho10OapF8wn9+Yztsqzs12e HzSyO86tKExAiA0QbukOm9BSFKuP9WDH0BrQYTrLSLaPWBodvfv+BzhhjkhkhVo2W0Tz GpnKmD78bUt1BOi0pSSKZA7ZVTr23upqpqexGImb7tsuk9uu4FQa6xrMBJte3Xr6Cy/k AkchRF6V/jvoMqx4RKWi/kurPAN2Rq+gsZfk9JEm8Gcufwbi22rgKiylVFsRmkhIicXv AvaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QtON/trzx51iCvNHUp101pkkVDDExDxZGsHSUZ1m/F8=; b=ep1dtwqn+GY827W+U9jHa1IbpHjlrRZmI8yTwJzY8HACfinx1S6q2FFmel3bI8RV2K g0vnqTQzbT7z/7VdpdDbywWdWurcHuJ5nUzVPNk6rOeaqQmfc926X7x7z6VtQtLtrJh6 cNHfQHBbD/JnXShHj1pbxwmBORONAXPPXiJMhBvK8Fb48sAvj1s9p7UApbb9qY6buV+l SzfW2sgjW+CKaPhshbnxjQa1mDkgIXAYd0OeXQhQX2mbcNIoWl3bhdtV5N66EjOgoAuN z7TTtOMKs4Hd8bIuY2ZYYRC6JeaV+JOWFQpQg4XFULfhBKb6088kQoereaOQrvS/nTXm bcjg== X-Gm-Message-State: AGRZ1gJuEwX3zWjVSh7LpRBYsi8KFdI88YGLfnBa1Yz3PpIE9/lgDNqY xzerBAJQESQkQb8H2GnSjG/14w== X-Google-Smtp-Source: AJdET5dS5xBJBMj1BWlWUOh/LBJMauk+5O6HfkzIpSvwwicdSmc8dzJzVM1YFLoKenqVjRS1p0kaLw== X-Received: by 2002:adf:f20a:: with SMTP id p10-v6mr14364456wro.293.1541422285009; Mon, 05 Nov 2018 04:51:25 -0800 (PST) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id l4-v6sm56114579wrb.92.2018.11.05.04.51.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Nov 2018 04:51:24 -0800 (PST) From: Corentin Labbe To: davem@davemloft.net, ebiggers@kernel.org, herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Corentin Labbe Subject: [PATCH 0/5] crypto: crypto_user_stat: misc enhancement Date: Mon, 5 Nov 2018 12:51:09 +0000 Message-Id: <1541422274-40060-1-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello This patchset fixes all reported problem by Eric biggers. This patchset should be applied on top of Eric biggers patchset "crypto: crypto_user reporting fixes and cleanups" Regards Corentin Labbe (5): crypto: crypto_user_stat: made crypto_user_stat optional crypto: crypto_user_stat: convert all stats from u32 to u64 crypto: crypto_user_stat: split user space crypto stat structures crypto: tool: getstat: convert user space example to the new crypto_user_stat uapi crypto: crypto_user_stat: fix use_after_free of struct xxx_request crypto/Makefile | 3 +- crypto/ahash.c | 14 ++- crypto/algapi.c | 12 ++- crypto/crypto_user_stat.c | 134 +++++++++++++-------------- include/crypto/acompress.h | 30 +++--- include/crypto/aead.h | 30 +++--- include/crypto/akcipher.h | 56 ++++++----- include/crypto/hash.h | 25 ++--- include/crypto/internal/cryptouser.h | 17 ++++ include/crypto/kpp.h | 26 +++--- include/crypto/rng.h | 8 +- include/crypto/skcipher.h | 24 +++-- include/linux/crypto.h | 74 +++++++-------- include/uapi/linux/cryptouser.h | 103 ++++++++++++-------- tools/crypto/getstat.c | 54 +++++------ 15 files changed, 329 insertions(+), 281 deletions(-)