From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752529AbcAFSOV (ORCPT ); Wed, 6 Jan 2016 13:14:21 -0500 Received: from mx2.suse.de ([195.135.220.15]:40532 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752252AbcAFSOS (ORCPT ); Wed, 6 Jan 2016 13:14:18 -0500 Date: Wed, 6 Jan 2016 19:14:11 +0100 From: Borislav Petkov To: Dave Hansen Cc: x86@kernel.org, linux-kernel@vger.kernel.org, dave.hansen@linux.intel.com, hpa@zytor.com, fenghua.yu@intel.com, yu-cheng.yu@intel.com Subject: Re: [PATCH 1/5] x86: fix early command-line parsing when matching at end Message-ID: <20160106181411.GD20321@pd.tnic> References: <20151222225237.08CDE5F1@viggo.jf.intel.com> <20151222225238.9AEB560C@viggo.jf.intel.com> <568D5574.2000006@sr71.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <568D5574.2000006@sr71.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 06, 2016 at 09:57:08AM -0800, Dave Hansen wrote: > So, after the third patch, the strlen() goes away any way you do this. > The code ends up looking the same (the while() check is against the > max-length variable alone). True story. > I'm happy to rewrite this to have a different intermediate form and > repost the thing, but the end result will be the same. Yeah, no need. Thanks. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --