Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2388286ybk; Mon, 11 May 2020 20:47:56 -0700 (PDT) X-Google-Smtp-Source: APiQypINYV64b3ji7ojB0Ay9MkmsaVdXLnafP48rnoqCw9ummNREpQAbP+ddfiv2I4ZpGkEiFP7W X-Received: by 2002:a05:6402:688:: with SMTP id f8mr15883961edy.233.1589255275916; Mon, 11 May 2020 20:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589255275; cv=none; d=google.com; s=arc-20160816; b=HdwrVkvEGyVapIqT/THLEvbcYZN1K985dIsJTnXjlwsvykocA0djBlwh8xVVYwQdPB 0qiqLQiEs8RcokJZjMP8EOJ6cRYky7YOf4jXDHtNN0AgiFcMb2aKWJgYZGYfTl/DH4u8 JBXrmW15PWnpoL5qEzueN/tJmNpRuMbXc33fbquLMi1B+Keh8OSjSlHHkH2d4jssCnIo kguapY1dGH6gmFNIysCtaVWKhPaZoyLB4BomVL4jLVdhtaXEonBO5Ojd4ENHLZFn7JMo 17Gg540R6oqaU9EcbxiGHxFQZSPV70pXL0o9dmO3GkeJwacMDHKgOb/SPIdl+x1s8agQ BH1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=a6pDTmvAwAVXMHYDCImWxZ4tk1CN5qQJntwyWBOXsGE=; b=cXUFYuSn0A2tRVr5Soq7SflYTDVHa4T7jNR92wqXApLhFAR0/S0J+QLYPCacZAnq9R eozaztPTYl4fvlrdh53SHioyuM/VG//Pk/V4nAv6eVdwhQvmr6xO+byNO3kOzhtLTfJe +YZDUsJYDMlTGr39R/IJFWawhbSJCJOEgHqWzMoRkayPlowS9pZr5sGta0UL7dMQcyDW jFgSCzvKw1eZC7lC0q1/A/gMAMiPK25VNLJsle5IzysKqoKFbteidLrF3y2i6NEGvCUO Xty3LOED8o4YCcWBwOqa9kqKbSFztFMGdLD1TKtQXPhqJvGk9LrJkFDUPOYRkJzw5OnX plow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si4465487edn.487.2020.05.11.20.47.32; Mon, 11 May 2020 20:47:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728736AbgELDoG (ORCPT + 99 others); Mon, 11 May 2020 23:44:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727942AbgELDoF (ORCPT ); Mon, 11 May 2020 23:44:05 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2886C061A0C for ; Mon, 11 May 2020 20:44:05 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYLpo-006Rzt-4M; Tue, 12 May 2020 03:44:00 +0000 Date: Tue, 12 May 2020 04:44:00 +0100 From: Al Viro To: Alexander Potapenko Cc: Kees Cook , Andrew Morton , Alexey Dobriyan , LKML , sunhaoyl@outlook.com Subject: Re: [PATCH] fs/binfmt_elf.c: allocate initialized memory in fill_thread_core_info() Message-ID: <20200512034400.GA1537486@ZenIV.linux.org.uk> References: <20200419100848.63472-1-glider@google.com> <20200420153352.6682533e794f591dae7aafbc@linux-foundation.org> <202004201540.01C8F82B@keescook> <20200421034249.GB23230@ZenIV.linux.org.uk> <20200512010901.GQ23230@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200512010901.GQ23230@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 02:09:01AM +0100, Al Viro wrote: > On Tue, Apr 21, 2020 at 10:14:25AM +0200, Alexander Potapenko wrote: > > > Not lately and I would also like to hear the details; which regset it is? > > > Should be reasonably easy to find - just memset() the damn thing to something > > > recognizable, do whatever triggers that KMSAN report and look at that > > > resulting coredump. > > > > The bug is easily triggerable by the following program: > > > > ================================================ > > int main() { > > volatile char *c = 0; > > (void)*c; > > return 0; > > } > > ================================================ > > > > in my QEMU after I do `ulimit -c 10000`. > > .config, please - I hadn't been able to reproduce that on mine. > Coredump obviously does happen, but not a trace of the poison > is there - with your memset(data, 0xae, size) added, that is. Actually, more interesting question would be your /proc/cpuinfo...