Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp468715yba; Mon, 1 Apr 2019 09:55:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUl8LTYGlDQYcLp240KXq1WAhxrmOXzASQFYO9iwsP+K00AsCgkuQvqj+In5jv17oCU4si X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr65903058plb.155.1554137734673; Mon, 01 Apr 2019 09:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554137734; cv=none; d=google.com; s=arc-20160816; b=rRmwORmYWl6sCEWvSTkqDIp0IW2kkuXwhNw2rMZLzBTLOp6pvcrjU6Mj8Qnq17I4On xyV94Lbe7YZZx8r6PuCfbOzqghg+qydqst6rz9pnmtGCtL9xKfx/n/JNSqj9PMgrOukF 31j/b70yepAYHUWzedFPsXvPGiFuUw7jZzO2uZwf/0Z5WxUCzzPe+4EAPm7TJcZJQU8A cK9yVAsNXC4rk4CXzvNBqxGT/R6qFltBToXvtY/moPTvsgQLrW2K4LwIdgYa7jQf7zcH 6viryXpyClkzjd8yLlvasqLjeuqvdI7twITmFyfGUvVFiP2ySL+5GL8puZtu/rR0dy27 ywGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QHldJlDR2xWllLMt7aT+Wp6F1BsVJHmkTCiQ5EPYabU=; b=GJcRSXUFyo3ny2YMfY4087bZdWPa0SSoHpozfDJjykFzoWc0KxKFlu6IKUw7ChXhly nzOuVvh1jEUoUJDNoXCAiKbVft0aoFDcr87/o4SWjVSVDdFIoYnhWwYlK2uJlXtG2Oep Xq/5rlxvlnETWBg/rfa+GzNCHmYLZF2XSIrY4R3V1COjgxhA1Mzn0VknWUJVrL6h/umL sO3X+Nhuv6mP+xFIghoJCXHg2UZBC9eq6UiFfR2XKTLWGwDHtCH/dmqoEhtjRIGQ8WgK UNn4eGxSjouptEou9su6zI1MqSVUGDhb9xFSqlBRo8OelewyjWN/aK88g1+ONXLV+FfI z0tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=iehmVfyN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si8821482pfn.165.2019.04.01.09.55.18; Mon, 01 Apr 2019 09:55:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=iehmVfyN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728724AbfDAQyE (ORCPT + 99 others); Mon, 1 Apr 2019 12:54:04 -0400 Received: from one.firstfloor.org ([193.170.194.197]:45180 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728007AbfDAQyE (ORCPT ); Mon, 1 Apr 2019 12:54:04 -0400 Received: by one.firstfloor.org (Postfix, from userid 503) id 569C486747; Mon, 1 Apr 2019 18:54:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1554137641; bh=ITGWjoWeqgKZo/1D1ax7ML9QzsLSE9g5zeWtbX5kGlY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iehmVfyNIq5G8Hk6uN400Gc7790dfjCEndqUxzzExjFSj2QZTWTXafQr8O9lutxSr UHksP3zpnNNnXSZgxOu5BVHBJAiOMbKn0IvHKD9By7UZupPFGWmAJAI32+CSt63alN sRos7Ift8zxS42HLGD9++BUpZma9lInYysDHaIOE= Date: Mon, 1 Apr 2019 09:54:01 -0700 From: Andi Kleen To: Hugues FRUCHET Cc: Andi Kleen , "x86@kernel.org" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" , Andi Kleen , "mchehab@s-opensource.com" Subject: Re: [PATCH 10/17] delta: Fix buffer overrun in delta_ipc_open Message-ID: <20190401165400.pdp547zqwdojz67r@two.firstfloor.org> References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-11-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 01, 2019 at 01:37:56PM +0000, Hugues FRUCHET wrote: > Hi Andi, > > We have already discussed about that here: > https://lore.kernel.org/patchwork/patch/866406/ > > Now that strscpy is largely deployed within kernel, could you retest > with the change I suggested ? strscpy is not the correct fix because it leaks uninitialized memory to the receiver. You need the memset. -Andi