Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1140818rwb; Fri, 7 Oct 2022 08:36:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4mC6x3Tn/1XXZq/m7YIWddBLK5iG/o7Fw+FdbtYZdWx/VC2Ovf3arCEosPsryQ5CaUH89q X-Received: by 2002:a17:902:bd46:b0:17e:8ee5:7b61 with SMTP id b6-20020a170902bd4600b0017e8ee57b61mr5786397plx.44.1665156991032; Fri, 07 Oct 2022 08:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665156991; cv=none; d=google.com; s=arc-20160816; b=P+xo6umaW9teAfa1lhJb0q2v3hHmMJt6JuiKliADYSHDU+jehdg+q8RrabmBP+T+Fl iiXIpHBMR9GMApvw/c9PomH8q9MjuEZFkrD3c+Q/I078wkOne7OANO2TxDN9UJi/3lTz 7PTcJ/0zbayoBd8mYIeXSyp51HyNN8dz1QG6oTHVMwDEd/6qzOcV8edEJCAiNyde+U3t hJKXS7PqvOJkP9QMSYLSqNloMv5XhdqBgXxQfSW8EEn/RcFvQcAsD+sqCGBVt3iLifCl 4ZbNMSCTg9B0XHLsJ5OjuVSlwPYq1BzoW0sBIXgek3HBPPpFycmf8jTDat5zFlT0OtF0 hZ3Q== 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=mGyG/s3JlJVyhDWuuZIYCk22RBHdtHriCjT//4ElmeY=; b=06vKpe3r22EmJgVujQtwIjVDdGaXoAIXKpCvaTayRoY5jMkWqK3M2KHil9lUEcnJFH rWmUAR940kDBdolQm7V4UKwvwDHViUWmpYHUqAAd/eXgCKGqGWR9vVIq00KG2G04ben7 d1FPI9FODsCOMYoTLXMyMCwMVQeKh9qIq6oGndinezQK5glPp8nyJ0UJ2oFL2c4mUGQ+ kSaMNrZl6UekBrU4I8V8MOk9anj9gv16LyEG3EXysEEXZs1Ouj8HhYk36xfCgr8yLxeU ci8ChCl3E5Igqew4T49vFXsAuNSQRsArmBU5aXYp1F6eVNtlfFqFGFlEwgTAe26PKEy8 2e+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=eKn4nF+X; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a170902ea0200b0015f4370afbdsi2375295plg.516.2022.10.07.08.36.17; Fri, 07 Oct 2022 08:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@zx2c4.com header.s=20210105 header.b=eKn4nF+X; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbiJGPdB (ORCPT + 99 others); Fri, 7 Oct 2022 11:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiJGPdA (ORCPT ); Fri, 7 Oct 2022 11:33:00 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35615118743; Fri, 7 Oct 2022 08:32:58 -0700 (PDT) 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 E713FB8229E; Fri, 7 Oct 2022 15:32:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68A72C433D6; Fri, 7 Oct 2022 15:32:55 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="eKn4nF+X" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1665156773; 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: in-reply-to:in-reply-to:references:references; bh=mGyG/s3JlJVyhDWuuZIYCk22RBHdtHriCjT//4ElmeY=; b=eKn4nF+XLw9QUWiDT6M2jTqTquB7JKMBD3iliblTo4hqAN2xI1S0xd12OeMJ2C5UyryAtO 8qAggbCfIDCfdFfZdo81e8eJtwsJLNKJrFBWI20KZ9IWP3X22w6XkFEfgTWyed5ZkHVwXb ZCRrw01W7EjrMiuZzKSEmIHS9YRvXIc= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 0dd9c5d0 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 7 Oct 2022 15:32:53 +0000 (UTC) Received: by mail-vs1-f46.google.com with SMTP id 3so5380705vsh.5; Fri, 07 Oct 2022 08:32:52 -0700 (PDT) X-Gm-Message-State: ACrzQf3cMhLWE6FV7drweLNE602kchglHRMnMCdstu4Mj6T+0hU0OEHa ee6kpnOy5Hmn8IxXNjoxc2dEbI9BPJGr1vjBiGY= X-Received: by 2002:a05:6102:2908:b0:398:ac40:d352 with SMTP id cz8-20020a056102290800b00398ac40d352mr2772827vsb.55.1665156771722; Fri, 07 Oct 2022 08:32:51 -0700 (PDT) MIME-Version: 1.0 References: <20220930231050.749824-1-Jason@zx2c4.com> <20220930231050.749824-2-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Fri, 7 Oct 2022 09:32:40 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] random: spread out jitter callback to different CPUs To: Sebastian Andrzej Siewior Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Dominik Brodowski , Sultan Alsawaf Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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-crypto@vger.kernel.org On Fri, Oct 7, 2022 at 8:55 AM Sebastian Andrzej Siewior wrote: > > On 2022-10-07 08:01:20 [-0600], Jason A. Donenfeld wrote: > > Here's a reproducer of this flow, which prints out: > > > > [ 4.157610] wireguard: Stack on cpu 1 is corrupt > > I understood Sultan's description. The end of story (after discussing > this tglx) is that this will be documented since it can't be fixed for > add_timer_on(). Right, that's about where I wound up too, which is why I just abandoned the approach of this patchset. Calling del_timer_sync() before each new add_timer_on() (but after !timer_pending()) seems kinda ugly. Jason