From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756706AbdLVQoB (ORCPT ); Fri, 22 Dec 2017 11:44:01 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:58099 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756158AbdLVQnz (ORCPT ); Fri, 22 Dec 2017 11:43:55 -0500 Date: Fri, 22 Dec 2017 17:43:50 +0100 (CET) From: Thomas Gleixner To: Juergen Gross cc: Linux Kernel Mailing List , Borislav Petkov Subject: Re: Bug in patch "x86/pti: Add the pti= cmdline option and documentation" In-Reply-To: <52b2f3c6-2e5e-2033-87d6-5abb3eb27b35@suse.com> Message-ID: References: <52b2f3c6-2e5e-2033-87d6-5abb3eb27b35@suse.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Dec 2017, Juergen Gross wrote: > The patch in the tip tree with commit 506bcdf68b07a0335751e1fe8be37 > ("x86/pti: Add the pti= cmdline option and documentation") is completely > wrong: cmdline_find_option() will return -1 in case the otion isn't > found and the len of the argument in case it has been found. AArgh .....