From patchwork Wed Feb 9 12:56:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Jason A. Donenfeld" X-Patchwork-Id: 541219 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD1C8C433EF for ; Wed, 9 Feb 2022 12:57:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230013AbiBIM5C (ORCPT ); Wed, 9 Feb 2022 07:57:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiBIM5C (ORCPT ); Wed, 9 Feb 2022 07:57:02 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A98C0613CA; Wed, 9 Feb 2022 04:57:05 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 65592B820C9; Wed, 9 Feb 2022 12:57:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62781C340EB; Wed, 9 Feb 2022 12:57:02 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="WiLYt5BM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1644411421; 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: content-transfer-encoding:content-transfer-encoding; bh=TzHGC6wsLVu0PsKqyS6HzONuY4q5KF/exMn4jqmC1oQ=; b=WiLYt5BMmAAa9p+aVYtVwyeijjHBt4ma+Hzz7gcijJbehzg8368FCv5LdKft6GbfE7TGMx XoZDq1oXv8SIvfV10Vpa7gXPGnlxo7UgpAApGF9ViGgWfKL0W/bqKZ6DKPinw9oA5hRQ8h Rm6KYTDepv50QJ7SEIH4edJiD6S58/4= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 2e7d50b0 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 9 Feb 2022 12:57:00 +0000 (UTC) From: "Jason A. Donenfeld" To: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Cc: "Jason A. Donenfeld" , Sebastian Andrzej Siewior , Thomas Gleixner , Peter Zijlstra , Theodore Ts'o , Sultan Alsawaf , =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Eric Biggers Subject: [PATCH v4 0/2] random: PREEMPT_RT fixes Date: Wed, 9 Feb 2022 13:56:42 +0100 Message-Id: <20220209125644.533876-1-Jason@zx2c4.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Here are the two patches we've been looking at thus far in separate threads, now brought together as one patchset. This doesn't fix _all_ of the PREEMPT_RT issues, but it does very much move in the right direction of having less locking in places where that matters. v4 improves on v3 by fixing documentation comments and copying the fast pool to the stack before mixing. Cc: Sebastian Andrzej Siewior Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Theodore Ts'o Cc: Sultan Alsawaf Cc: Jonathan Neuschäfer Cc: Eric Biggers Jason A. Donenfeld (2): random: remove batched entropy locking random: defer fast pool mixing to worker drivers/char/random.c | 109 +++++++++++++++++++--------------- include/trace/events/random.h | 6 -- 2 files changed, 62 insertions(+), 53 deletions(-)