Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5720086imw; Wed, 20 Jul 2022 11:04:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vm1VDBQAMuceKVtdPnRDI2phxoIrTz7fMrLjtMbFNWFtHSQnqwCu07NYwGMixyYwHlvd7S X-Received: by 2002:a05:6808:f02:b0:33a:59d2:ec2e with SMTP id m2-20020a0568080f0200b0033a59d2ec2emr2798216oiw.273.1658340258311; Wed, 20 Jul 2022 11:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658340258; cv=none; d=google.com; s=arc-20160816; b=WA0o3lWIuTM+m2Xc3wU94cFrMMyX3LDuFt3aB2z//qKkinO/EMKMnZjc8A02+4k1bg QIyi35LEE9gkGi7EPzIVJC3BFESOKiXiXqO+eP96F7RDhLO9vU52/DJjMppA4C/rH+Zj bifBEGLJVbg7Cho8WaINi7SZTmqsHAHzHPi2IXTsq5fIh1MFDOBvXNqNEns5G5Zf9Rxu paHRD5yUagqXWEsv0VSEMYQ58KiJACnJX42KAX0kvBpgQHSbfzNOSH546iKZjz0hQgTI 3rQAi2YQaLsicS75x4LOTi1pjsJTEgUkkZvI504pWtBpqKw2A3JQ7K6LLci+0YooH5Wo vLyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=U/ptrX1RKjk0nqOvY99JXErL7I+QUaLHlDHFsWp/cjM=; b=s6GXpLhOutzVHTarHPCQMWadS76ArjMjOjXpiAjPRlrG19XCcy8WlXvtSYWZDX3cjj EWbn/Y3ZAB3fcC4+ckdzK3L7BWVs2qRSJPxV3kijiUU8mF7sCP5oj5fPMCYF3FzZHYZR 4fX6i8cw9BYxMbWQ25r/W3Z6kD1rMQJv/D9CiQzgkhKmmsmQtFIhSIDeM14gZyN/YpOI VE7WpDbKKI+lI2OnoyUCpZqMVq9KTkMHst0fa+j8tibvBZ6EfHxTmS453BvSL2flyh4+ /QNc1/UwKjf30oOQMnGu6E7LLZEDZ3dxRz6Yl3SMlroT8ixJUW8Z/gwlPA5/B8g05CML BbEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=sc7RGARj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a056830078100b0061cae8be990si8214535ots.42.2022.07.20.11.04.04; Wed, 20 Jul 2022 11:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linux-foundation.org header.s=korg header.b=sc7RGARj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234965AbiGTRCs (ORCPT + 99 others); Wed, 20 Jul 2022 13:02:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231967AbiGTRCq (ORCPT ); Wed, 20 Jul 2022 13:02:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5AE06A9DA for ; Wed, 20 Jul 2022 10:02:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 7446661DED for ; Wed, 20 Jul 2022 17:02:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A541BC3411E; Wed, 20 Jul 2022 17:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1658336564; bh=52lTckpRZrto7Ccgi9tfUPOBSAxEYFGGTHBhTO2lVFE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sc7RGARjYFsjLIuxO4/fqiAIwKxCbpp5sConPvBw95J0VYcrylP82SF4q76rgZh03 3ySTAfLm8o4da4UiKQ6xh0CtuMoWVFOnV5qO7xE/R1PQ7R2JpjzVm2t1/DuOCX9x0W Xkr4hw4sy15RZUpg5uSmDYKhri0qy+P6u04KOu9g= Date: Wed, 20 Jul 2022 10:02:43 -0700 From: Andrew Morton To: "Kassey Li (QUIC)" Cc: "linux-kernel@vger.kernel.org" , Sasha Levin , Joonsoo Kim , Minchan Kim Subject: Re: [PATCH] mm/cma_debug.c: align the name buffer length as struct cma Message-Id: <20220720100243.7c1151a71ae8400b81d46130@linux-foundation.org> In-Reply-To: References: <20220719091554.27864-1-quic_yingangl@quicinc.com> <20220719161836.b0ad5cdfb0aec0c04a862122@linux-foundation.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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-kernel@vger.kernel.org On Wed, 20 Jul 2022 10:45:33 +0000 "Kassey Li (QUIC)" wrote: > Hi, Andrew: > > Is it the case that the output is never >16 chars anyway? If so, we'll be OK. > >> Yes. I verified on my device by giving cma.name length l< 16 and >16 both. Result is OK. I mean > 16 showed correctly with this patch. > >> without this patch, cma.name > 16, only showed 16 characters. > Well that's my point. With this patch the output is changed and this might break userspace code which expects the truncation. That should be OK as there are no guarantees with debugfs interfaces. I added this as the patch's changelog: : Avoids truncating the debugfs output to 16 chars. Potentially alters : the userspace output, but this is a debugfs interface and there are no : stability guarantees.