Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934343AbaDIURs (ORCPT ); Wed, 9 Apr 2014 16:17:48 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:34601 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933342AbaDIURp (ORCPT ); Wed, 9 Apr 2014 16:17:45 -0400 Message-ID: <5345AAE4.6040605@oracle.com> Date: Wed, 09 Apr 2014 16:17:40 -0400 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org CC: stable@vger.kernel.org, Al Viro , Quentin Casasnovas , Vegard Nossum , Phil Turnbull , linux-fsdevel Subject: Re: [PATCH 3.13 12/22] make prepend_name() work correctly when called with negative *buflen References: <20140401040703.045139933@linuxfoundation.org> <20140401040706.285713373@linuxfoundation.org> In-Reply-To: <20140401040706.285713373@linuxfoundation.org> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/01/2014 12:08 AM, Greg Kroah-Hartman wrote: > 3.13-stable review patch. If anyone has any objections, please let me know. > > ------------------ > > From: Al Viro > > commit e825196d48d2b89a6ec3a8eff280098d2a78207e upstream. > > In all callchains leading to prepend_name(), the value left in *buflen > is eventually discarded unused if prepend_name() has returned a negative. > So we are free to do what prepend() does, and subtract from *buflen > *before* checking for underflow (which turns into checking the sign > of subtraction result, of course). > > Signed-off-by: Al Viro > Signed-off-by: Greg Kroah-Hartman Hi Al, Greg, We're working on creating Ksplice updates for the last -stable tree, and stumbled on this patch. The log message isn't too clear on what actually gets fixed, and auditing the code didn't reveal the answer for that. Could someone please describe what's the issue being solved with this patch? Thanks, Sasha -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/