Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1035147iob; Fri, 13 May 2022 20:29:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6u4PGiS32rcwvACBoSEEQIHLLqZkv+z2LHr5l5sYHOiHC0xXS86daWbKuZYPdL4o/UgCA X-Received: by 2002:a1c:4b14:0:b0:394:2ece:c049 with SMTP id y20-20020a1c4b14000000b003942ecec049mr18044459wma.158.1652498968693; Fri, 13 May 2022 20:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652498968; cv=none; d=google.com; s=arc-20160816; b=KD7XRb/MoorPcODh5QdFyil/H/RmjCKEPocl+Wj1LpAKRjVjNeZG6cwBX7nf8qa3be p2AlPWtgLojHGc9fx1Bo89+3tJuJ99gUaE5HeHhen+ooqAbXzcmdNX+wB8QMCNLm5Hge k6N9RDhlRWcMMWffYAAEmhCPsSXha3zuJIH0Wl6BbA0jfeJ4F+E7cwMD/F7UnH45YjoF mmLTL8gPm97Ljl9zXTjJ/kQgjraFDg7wIVP7RU8QJD6/gPur+R8a3k2BIRQO6VHJZMvi Aayyu412yBFMzflWUb08vpsrpXeXfWJsX+cp2HFV/ampMgsEfZ9S/UEw3exaW90ZdwpH a4XQ== 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=Jl3uQ/qIvTlTsjRN/rhZlGLpkaQPanJfn4mpvTQX1aA=; b=dqe4qGJpto171bwX0PxSbLx2XhVGB1oA077LPl5vDGzDZmCQMlgeEsDl16DY5XlYsv 25xzhR8xcLAZggqtQeyZVyJ+cNclwP42C7CIj8oF+/zoq2CDpE52qDlHIG70JeZRmTDx NOheH8d5elHe1ihMsPq2C//8k+BHdSxdGUgI9U19fzLYBvF7nd71VdLYVYvz5k3qzIYG Wu+Zvdd1mSjRUjvCafdWg1iAGnq7OiFUESpqLFLKI6sTBvkKMYjnvx4NSFyuZtPDmAau VbOL4yS4VOLy4xRI4hM4RFxYdGGEKQvnQGo4yt4w03MC6lQ+ue6x+7NEzsB3TuTXRvDB lSrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Urn0R2Wk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c22-20020a05600c0a5600b00394477569f2si7134758wmq.1.2022.05.13.20.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:29:28 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Urn0R2Wk; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5AACF2C8BC3; Fri, 13 May 2022 17:06:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383231AbiEMSGt (ORCPT + 99 others); Fri, 13 May 2022 14:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347598AbiEMSGr (ORCPT ); Fri, 13 May 2022 14:06:47 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A816E275D6 for ; Fri, 13 May 2022 11:06:45 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id v11so7642148qkf.1 for ; Fri, 13 May 2022 11:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jl3uQ/qIvTlTsjRN/rhZlGLpkaQPanJfn4mpvTQX1aA=; b=Urn0R2WklZCf3R62oBx1CQsalCjvGHDvD/O9/HF/VUFW0+gOzwIZI3XYzPSPID/YWi hLkv2CkD9HEdwrIgzAHJrlJOlYID+QbP8LlDudWBPeZGcYN9uiNf3hZaO9vcx69AxDvj atVIw0LFaZB12fWgOJZhhfjhneMRFBU2sg2l0ASskga3lltY+nfH+vCeMg0x3Ac4nYIp Y05eQwv+w4KgMMsVfxGgFG6SCmI9DlAWUjABIcZZA88pPAWTAThRtOfarCvUMkMSy6Vj 6DJfDReE7lhik4L7w7L6KgvgDLirRR6kvxJaEbZVo7A1gbc2q7iMFf/HGhj8AeyWekUg mvZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jl3uQ/qIvTlTsjRN/rhZlGLpkaQPanJfn4mpvTQX1aA=; b=o0/Ub036uXA8b0qORX4Tb9dvUyXvBUDWGKBXauOqNgLmkJoEs0SzoGpUgf0KLJipBu RsbWBnRJ4eRHR2ajIB0xRJva7eqaG/uphk0s70JqZBG4VMEbdVJcBF+eRRa1ahiTOYsi +GUmUTUjKVuLTCvtJoA8rC7+AIL2TAqqXbRNKY/LSh5rBKtsra5ZCQ1qYS02CLG4hzyc ZvZO0sajkIYuCVh+ivAzt0/Rs+g1v+NeSEq68UAnvbybt9ra8YlqflUBzT17VE69jTQJ 051EopRLcwrhAqG7lWXjF4X/6bkGk+pjGWanMwLMXK3GzByr//oXnFZtksCFNzQov+mL C/IQ== X-Gm-Message-State: AOAM530L2JFypxuT8TeaEAcJW+EbUgwd9l5rOKic2vpkBoDtP4H7Se6t yXGlFLeZpdbLHFqCtYZOjE95UT+xczqrifQJxUWSxg== X-Received: by 2002:a37:f508:0:b0:69b:ed2f:e56 with SMTP id l8-20020a37f508000000b0069bed2f0e56mr4645661qkk.384.1652465204516; Fri, 13 May 2022 11:06:44 -0700 (PDT) MIME-Version: 1.0 References: <20220513174030.1307720-1-khazhy@google.com> In-Reply-To: <20220513174030.1307720-1-khazhy@google.com> From: Khazhy Kumykov Date: Fri, 13 May 2022 11:06:33 -0700 Message-ID: Subject: Re: [RESEND][RFC PATCH] blkcg: rewind seq_file if no stats To: Tejun Heo , Jens Axboe , Alexander Viro , Christoph Hellwig Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000008d08af05dee889d1" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=no 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 --0000000000008d08af05dee889d1 Content-Type: text/plain; charset="UTF-8" On Fri, May 13, 2022 at 10:40 AM Khazhismel Kumykov wrote: > +void seq_restore(struct seq_file *m, int count) (Yes, this and elsewhere should be size_t to match m->count) > +{ > + if (WARN_ON_ONCE(count > m->count || count > m->size)) > + return; > + m->count = count; --0000000000008d08af05dee889d1 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIPmwYJKoZIhvcNAQcCoIIPjDCCD4gCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg ggz1MIIEtjCCA56gAwIBAgIQeAMYYHb81ngUVR0WyMTzqzANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA3MjgwMDAwMDBaFw0yOTAzMTgwMDAwMDBaMFQxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSowKAYDVQQDEyFHbG9iYWxTaWduIEF0bGFz IFIzIFNNSU1FIENBIDIwMjAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvLe9xPU9W dpiHLAvX7kFnaFZPuJLey7LYaMO8P/xSngB9IN73mVc7YiLov12Fekdtn5kL8PjmDBEvTYmWsuQS 6VBo3vdlqqXZ0M9eMkjcKqijrmDRleudEoPDzTumwQ18VB/3I+vbN039HIaRQ5x+NHGiPHVfk6Rx c6KAbYceyeqqfuJEcq23vhTdium/Bf5hHqYUhuJwnBQ+dAUcFndUKMJrth6lHeoifkbw2bv81zxJ I9cvIy516+oUekqiSFGfzAqByv41OrgLV4fLGCDH3yRh1tj7EtV3l2TngqtrDLUs5R+sWIItPa/4 AJXB1Q3nGNl2tNjVpcSn0uJ7aFPbAgMBAAGjggGKMIIBhjAOBgNVHQ8BAf8EBAMCAYYwHQYDVR0l BBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMEMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFHzM CmjXouseLHIb0c1dlW+N+/JjMB8GA1UdIwQYMBaAFI/wS3+oLkUkrk1Q+mOai97i3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