From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756622AbdLVQlg (ORCPT ); Fri, 22 Dec 2017 11:41:36 -0500 Received: from mx2.suse.de ([195.135.220.15]:43909 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756557AbdLVQle (ORCPT ); Fri, 22 Dec 2017 11:41:34 -0500 To: Linux Kernel Mailing List , Borislav Petkov , Thomas Gleixner From: Juergen Gross Subject: Bug in patch "x86/pti: Add the pti= cmdline option and documentation" Message-ID: <52b2f3c6-2e5e-2033-87d6-5abb3eb27b35@suse.com> Date: Fri, 22 Dec 2017 17:41:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Juergen