From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766Ab3KSEiY (ORCPT ); Mon, 18 Nov 2013 23:38:24 -0500 Received: from terminus.zytor.com ([198.137.202.10]:42687 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751628Ab3KSEiW (ORCPT ); Mon, 18 Nov 2013 23:38:22 -0500 Message-ID: <528AEB27.2070404@zytor.com> Date: Mon, 18 Nov 2013 20:37:59 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Linus Torvalds , Ingo Molnar CC: Peter Anvin , tglx@linutronix.de, linux-tip-commits@vger.kernel.org, fenghua.yu@intel.com, linux-kernel@vger.kernel.org Subject: Re: [tip:x86/asm] x86-64, copy_user: Remove zero byte check before copy user buffer. References: <1384634221-6006-1-git-send-email-fenghua.yu@intel.com> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/16/2013 10:44 PM, Linus Torvalds wrote: > So this doesn't do the 32-bit truncation in the error path of the generic > string copy. Oversight? > > Linus Hi Linus, Do you have a preference: 1. Considering the 32-bit truncation incidental (take it or leave it); 2. Require the 32-bit truncation, or 3. Get rid of it completely? -hpa