Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp746931lqh; Sat, 4 May 2024 23:35:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUnHrlRKeIAEU6evafw0zALtkjG8IXYunOT0rwmePa98nizp8ZJDwSeCoKXWgnMNEhjNsq07GBxUbQV7V+hiqrJEOdq3opJceI0rgdEug== X-Google-Smtp-Source: AGHT+IEPPA1n/s+ih9O/qzFQLkZjuwgsVqCykRJh7VjFV3ShVSk0kAlOka1V64stOzgrh5kCgcdT X-Received: by 2002:a17:902:d58e:b0:1eb:494f:dc66 with SMTP id k14-20020a170902d58e00b001eb494fdc66mr10013984plh.23.1714890943179; Sat, 04 May 2024 23:35:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714890943; cv=pass; d=google.com; s=arc-20160816; b=CR1mlA5JZZJZwbxg0n8FkzZnYqO5URtR3HkZ1SgCTMRuRy0zLVDfhyPp5PTFfFpYE0 nzoI/5TWXwHsDPUI/+8k0vZtjHae4r/RFbBPLeFyoVde20HsNl1R83yS912jpHQVg5+i 9eRzQ0mOVT35gEs9yd+PGKTzLolt8oTcAzaTkza2g/mAq5aZ9fDEjq7jbheZwiQ4bmXB BD7BmOUDFC733U3eS5d2mQeqUVcck6jRm9nPE5RXsIJJUJ6IY6irHb0w6Y5yl6ssu25b Cn8VPrE7hkQ4C2wPigYqqRYOgQ7O83FYhM03/jQUZqyP57NHCeQh8dTTzX5qtnJlXc6o LMmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nvYAXtaKiGycNVHqcWlXoHmbEuL6XI2M+SI0Bjb+RPg=; fh=Md+ER+ay+SvNziNupzqYxXpIoMraDZRSbEvxphBT1wk=; b=ci9P3v0XqNCFZ1HTVpuJLkHkmEpLjkjgsmFMJ+HO+ykJXcKVbqYcPzgayJ0AH6wtvv eEOiTcg3bLcOngAfyaU6RgPpqofJ3iEimxiN61c8jQntiLpt79DE4/4+tWvlv2NAvK5+ xoR5poEaUW5b+qrz5xOpi6hnbMOMnBDCoSiFExpT+9LbbAA2nyE+DDHmYTsy/Tih0M7x oAGMzYW5u+36Xuev93a64kNJVNMIIzsAYtI+j0YM3/hjCMgFd5hMDWglQ5WC6pJ2IYAH BM0z/HYxJ+jNXFmB2Jgf3KwrUWg87oQuG2NSuC/dMzs8qpRw/sJi6rVtPHJ7gpxiVvwN c2Og==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KMRqOa3p; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168900-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t11-20020a17090340cb00b001eb5b59facbsi6258519pld.255.2024.05.04.23.35.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 23:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168900-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KMRqOa3p; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-168900-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3E906B21013 for ; Sun, 5 May 2024 06:35:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5C63566A; Sun, 5 May 2024 06:35:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KMRqOa3p" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B898B23B0 for ; Sun, 5 May 2024 06:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714890931; cv=none; b=Vvm5CdMUbKN9ibwLQv+t+Ka9w19F7obJKljHdNuFHAsAYJFRZXPJdgXUw40qkd/w50022WHABQDHo7ES6tUGlLhlUipn8jFsDRbMmTrluarjqAZCABu6uq1cxC7iZuo6JnAydBlCeqkk5Ab7kimRGe8hhVprP2lANVmDEGYzl7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714890931; c=relaxed/simple; bh=gFaeI539orZAgT5wkU5JG5wAxxnsGcBtRPmEi/gqe8g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SZ06NrPh71u8Vxh0Sy5F1aBDIObj2VXyt9lXYfTAflAUAT9VcystVvSE9C7gCJF2xSDl7gpE0o9ky+j/73FwhhfATYSnZ0OYu2HpWgqjEQYDIw9efIU4GI0+yV6mxMyaqche71+tIFYb4ScbFDAgnoFIKqAo3mEQLYURq0iTsi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KMRqOa3p; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A523FC113CC; Sun, 5 May 2024 06:35:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714890931; bh=gFaeI539orZAgT5wkU5JG5wAxxnsGcBtRPmEi/gqe8g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KMRqOa3p6TIsm+2Y6ifM9UewlChvcUvUs9L8ItnyTEvHxjpjesfV5Ib+p0i+cPMWW HQN1zR9TWJJT37UAl934x/ZoTxO8mR9aXwHdGjQ2dJYUo+exLSd0ppjvg2mqX5RXWe Pgdl1TtDdWtV3oSsKbAqRBBfrXjWEtWAyWZduObk= Date: Sun, 5 May 2024 08:35:27 +0200 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: Haoyang Liu , Luis Chamberlain , Russ Weight , "Rafael J. Wysocki" , hust-os-kernel-patches@googlegroups.com, Dan Carpenter , linux-kernel@vger.kernel.org Subject: Re: [PATCH] firmware_loader: Replace simple_strtol() with kstrtoint() Message-ID: <2024050505-clapping-preview-ebcc@gregkh> References: <20240426202532.27848-1-tttturtleruss@hust.edu.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, May 04, 2024 at 09:22:08PM +0300, Andy Shevchenko wrote: > Sat, Apr 27, 2024 at 04:25:32AM +0800, Haoyang Liu kirjoitti: > > simple_strtol() is obsolete, use kstrtoint() instead. > > It's not, but kstrtox() is preferred. > > ... > > > While I'm in support of this move, this might break userspace by making > stricter requirement on the input. Good point, I've dropped this so that others can test it better first. thanks, greg k-h