From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH v2 3/3] strscpy: zero any trailing garbage bytes in the destination Date: Wed, 7 Oct 2015 09:31:52 +0200 Message-ID: <20151007073152.GA8974@gmail.com> References: <1444159429-4788-1-git-send-email-cmetcalf@ezchip.com> <1444159429-4788-4-git-send-email-cmetcalf@ezchip.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=EUHa/UiJEshSPe/rBp2wyiljPT2OTpeAwgUIx0QGVf0=; b=DGwlIAR3pBwp9YZwmuUbE1pvuLLRj8D5ZgA5Ulg0OMTw/8pPXjoCtEJe87l3xfpeTB 46UMLpTO+IsX3oih8GhLF3gUTkAYcMKTljVDcLncmPl7XSi9VEEDcGGriTAleNAxNInK zaIkghUKxSv/iR6AlJJduT9WlRgoywnpsoucIieNf44xRbNN0PVgOcxyZc1Aet3LsEHk r6FDpvSZbeVrOY1sYXxM7tyPw/WKQCSc04dodFg4IKSK0Bsk90NQROc0QCHji7CVnpGG exvlKXwB/VoF3JhNBhvrBdalxTWek03zZxart7oohFfS3e0e9mDNkCyBmDA0YYqc6Fip YnqQ== Content-Disposition: inline In-Reply-To: <1444159429-4788-4-git-send-email-cmetcalf@ezchip.com> Sender: linux-alpha-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Chris Metcalf Cc: Michael Cree , Matt Turner , Michael Ellerman , Yoshinori Sato , Alexey Dobriyan , Rasmus Villemoes , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , "H. Peter Anvin" , Borislav Petkov , linux-alpha@vger.kernel.org, Linux Kernel Mailing List * Chris Metcalf wrote: > It's possible that the destination can be shadowed in userspace > (as, for example, the perf buffers are now). So we should take > care not to leak data that could be inspected by userspace. > > Signed-off-by: Chris Metcalf Please always preserve credits for who found the bug: Reported-by: Alexey Dobriyan Also, you should credit the kbuild-bot for the cross-arch build breakages that your other patches address: Reported-by: kbuild test robot Thanks, Ingo