Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1662635ioo; Sun, 22 May 2022 23:30:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRSBGwj7/i7uvzAY8FrbHwzoKxswfuPLJ97ttg7fZDJtgkpIQ85DKIad5YHfQauXrw1PMJ X-Received: by 2002:a63:f108:0:b0:3fa:34e0:52c7 with SMTP id f8-20020a63f108000000b003fa34e052c7mr5107677pgi.302.1653287407227; Sun, 22 May 2022 23:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653287407; cv=none; d=google.com; s=arc-20160816; b=Zv0d9ix9OxFFmYSxqXwBBVVS+tu4T0VClDxDnyFeXiLLrDaic0h6okwhvuaSC06TCV FyXgk4HrpXfRBbSBXiIA3Vm52kcd+ZWpF0Ig7hgywNVdy2C72014NVhcdS/OHplyrixm fmDC4VKnky8RQzbje+8diZB1xP3+0ak08wrWpGVsoXZpDmz6mUfvzHrv6wg5weVPzmNy l7N/g4Pnp+fRPgD5puzxyOmjnxpsMrUA1m1mmAOXwNMQIKoWy9jc6GM9WPI2dVZDxfyS nA47RlWapyvBdFxWRqpRRp+puDgcCFbWN+VU/Ks0IcDhMsR0DtSFyHOlSdybzdQB8nBH xS1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=gz19fXcyvIXAl3oGhMxQAf+ufRc1Vu/yCr1pjqtWYnw=; b=GBKg/lwNxn62PLMYMfuOMfXKGohzTQ9Y7cWFqOUso5khlInsNBWLCxbNT+oF3O4yfr lm20NnNITmRykllr7VoWNWnYHkMQrfzb+xDHcIkX4Lwv4Zce0JBan+MlPmfEEeu1CxED 0YFW82K1+4Ya3cHxoHMEMwBNjID3nFEfNIHndAavndA12TpSeaQ9qW+nFQGLkPDElkWJ Q3ptloeYdgUGK27GEF5y8gsDyg88O1rHCM7gcffrLAPZ6XEdwfIQ0SnCP2oAnITFq75e 6UPCacsFB4joo7vtgyRM3zkmgT834HaIvVycCvnqyPkzdqTpqwWeW9fsk2qdf2neVA3B 8RpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=cEzhwuqn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l13-20020a63ea4d000000b003f70a42d81fsi9172972pgk.319.2022.05.22.23.30.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=cEzhwuqn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 924B02E9EC; Sun, 22 May 2022 23:07:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343697AbiESXoR (ORCPT + 99 others); Thu, 19 May 2022 19:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343682AbiESXoO (ORCPT ); Thu, 19 May 2022 19:44:14 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B79DB042E for ; Thu, 19 May 2022 16:44:13 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id o13-20020a17090a9f8d00b001df3fc52ea7so10036066pjp.3 for ; Thu, 19 May 2022 16:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=gz19fXcyvIXAl3oGhMxQAf+ufRc1Vu/yCr1pjqtWYnw=; b=cEzhwuqns0Ti+qp+lGOzuo/YHGa90yGUqi/zDyTaJ7/+wDu9n2uicln2Gr4T7AkB7G BVdcFEMBjWCpSQrU/TsfSqbIBE7PkrWzTv5q9QH3Jta1KAHQuidtVTCAKfDYCFXC5EDh ucUAEjjXZ7tdG3ZUCOsr3RUmPsv2LfhGFQFe+ie+YXJ34tnJFCODnxtlLYSJUlvSylua hAaCRKS4yoSpj7Q4+GwiF2JNieEv9wTHujeaQfJw+kkfMCyWrdJM7/P+6LNantZ6BfEp iAb+fAmFjvJX5UAx0dsxvNx/0j/93asAvZPoADIPbHT5naMmKqwUlurr47NGpUEXb8v4 g33g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gz19fXcyvIXAl3oGhMxQAf+ufRc1Vu/yCr1pjqtWYnw=; b=i4fDYUcej1pAy9X3Lm9QanS1y/mc9AyAMiVZCxHtdfKzmMjBM6Rg9Q+60Hh3Zo+ZSS TtnTyJlVcjM4M36xwTZKNzamdQqu9HnNRejyuXbT2z9hdkjOZoG2kAoFmsvlasMFYs/N 25UO7WXIpTRzM1CD9MyUAdmnL9Ft2GSoTE67khZsERloom2Wt3bospIdjf6rlQvMBQji TFxLrR/1kjVEOSfcaUKhHtZw2yRuN28Hi1ToEtPyeJKA0xa3mhFxQwn6rjPbHjnuHcXF i+79PiNHhExLL9pxgHyXjNWvxeZF+R0FR5qoMlp8qChhYOPlupg0jCpCmJs2YqK397sP TJ6A== X-Gm-Message-State: AOAM530Iy+zZXnEvqEQXBAOi3ldcNHmAVmWUI+EvTShWwkULJP8kyMZR he1pwKG+1TsA0lQtmgpn4E7dpw== X-Received: by 2002:a17:90b:3806:b0:1df:99ce:d142 with SMTP id mq6-20020a17090b380600b001df99ced142mr7618845pjb.241.1653003853140; Thu, 19 May 2022 16:44:13 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id x9-20020a17090a6b4900b001df313f6628sm366247pjl.21.2022.05.19.16.44.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 May 2022 16:44:12 -0700 (PDT) Message-ID: <340465ab-4157-8051-d66f-9093b80dc653@kernel.dk> Date: Thu, 19 May 2022 17:44:11 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCHSET 0/2] Fix splice from random/urandom Content-Language: en-US To: "Jason A. Donenfeld" Cc: Theodore Ts'o , Christoph Hellwig , LKML References: <20220519193133.194138-1-axboe@kernel.dk> <8e6c98d4-03e9-3eb5-3d4e-b9a9faeb677a@kernel.dk> <60b82026-9c46-16ea-d9fa-05eb96ae2218@kernel.dk> <3bcbfde4-3247-b4ff-9a7c-963a9a510703@kernel.dk> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 5/19/22 5:39 PM, Jason A. Donenfeld wrote: > Hi Jens, > > On Thu, May 19, 2022 at 05:33:01PM -0600, Jens Axboe wrote: >> On 5/19/22 5:25 PM, Jason A. Donenfeld wrote: >>> Hi Jens, >>> >>> On Fri, May 20, 2022 at 1:22 AM Jens Axboe wrote: >>>> I can certainly do the write side too. To fix this regression, I just >>>> valued doing read_iter first and I'd hate to hold that up to do the >>>> write side too. I'll do the write side later today, but let's keep them >>>> separate. >>> >>> Excellent, thanks. I plan to queue these up all in a row. >> >> Built and tested v2, just sent it out. Note that it deviates from your >> proposal a bit since with that we lost the >> >> if (!len) >> break; >> >> check, which is kind of important if you ever want to be done :-) > > Heh, noticed that too, thanks. :-) >> I'll do the write_iter side, but as mentioned, I'd prefer to keep it >> separate from this patchset as this one fixes a real regression that we >> need to get backported too. > > No problem. Because of all the flux in random.c lately, I've been > preparing a massive backports branch, 2 branches actually, so I'll make > sure this is in there. Backport concern aside, though, I'll look for > your write_iter patch today. Thanks a bunch for doing this. Sounds great, thanks - write patch has been sent out too. -- Jens Axboe