From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B1EAC43334 for ; Wed, 1 Jun 2022 19:43:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T9KqRrsFRjgqMldVMmvQcoHmeIaccgsqwEDf6/it01Y=; b=IMJCyLD+o8Zp1k sF8mu4fuOaZfWwO1lMZQ3XzlohndB1Xc/0rssxm/2798nXbjKLknP1wA0+lt4yo6DpQQs9HZNd9cc TU/gcNMjWMtMoCC4RuGfB/Vek63JFnPSGBkEXo4V8sfvivFtagIMjTrqiHhc8qe+OSznMkzCLqtT0 v+uL4bQKVO+4GvjonRIF9683wiCGakuxxl2dqXq6R90k0Xw/dEMQn/vatu4DiZCFeRguuTbNFlamw YRrJbcc/9pxgZlZmtPaG259e7GGliu+fA+FulxDi6c6QpgM4+9kPEliHQR8i+qgnjwc7ICkaZhkdH wadL7zEgpFqhaMwS+CtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwUEo-000Bi3-Bg; Wed, 01 Jun 2022 19:42:38 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwUEk-000BhT-8G for linux-arm-kernel@lists.infradead.org; Wed, 01 Jun 2022 19:42:35 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CC536D6E; Wed, 1 Jun 2022 12:42:32 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AC0173F73D; Wed, 1 Jun 2022 12:42:31 -0700 (PDT) Date: Wed, 1 Jun 2022 20:42:45 +0100 From: Alexandru Elisei To: Andre Przywara Cc: julien@xen.org, maz@kernel.org, will@kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 kvmtool 09/13] builtin_run: Allow standard size specifiers for memory Message-ID: References: <20220525112345.121321-1-alexandru.elisei@arm.com> <20220525112345.121321-10-alexandru.elisei@arm.com> <20220601143955.55e00cfd@donnerap.cambridge.arm.com> <20220601171400.7318cc0b@donnerap.cambridge.arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_124234_360566_DAEDF164 X-CRM114-Status: GOOD ( 13.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On Wed, Jun 01, 2022 at 08:39:08PM +0100, Alexandru Elisei wrote: > Hi, > > On Wed, Jun 01, 2022 at 05:14:00PM +0100, Andre Przywara wrote: > > On Wed, 1 Jun 2022 15:17:50 +0100 > > Alexandru Elisei wrote: > > > > Hi Alex, > > [..] > > So if we care about garbage as an argument, we should do it by the book > > (strtoul manpage), and compare the next pointer to the input string > > I believe my approach is by the man page, where strotoull returns ERANGE on Err... by return ERANGE I mean that is sets errno to ERANGE (it return ULLONG_MAX on overflow). Thanks, Alex _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel