Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3773487yba; Tue, 23 Apr 2019 09:21:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzAywQwiMj+iN+RZdE8wzHxyD17oiAB+ZgnkynFSz76OFfrbcE41PuOdJ/LxhfZ2XDanGh X-Received: by 2002:aa7:8e04:: with SMTP id c4mr27478162pfr.48.1556036514116; Tue, 23 Apr 2019 09:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556036514; cv=none; d=google.com; s=arc-20160816; b=V4qYYdPEpWs1Ov5jH6h3NKaQEb974VN16lpLXsjlStZAcuwNQkeYrDs9X0Ba5VCaPk IaV/j/r9mPBYZbbi6SCH5S//T1cwG5bRCmjtolwigiIoKexGOW2hvkyCzWjFpI+bzgTu SDsuBsG0F+ygTL6iZjSxa+p+A0JTIjIibQzsu+NBO+uXROnZdc2Y7fWqCOyDY59Ix2YG MG5zRolvtex3PU3BS563HUfpf4TjBDPsI4HPycdTYRRalQQ//0f6p14rIGJ86OsjUxh5 Eywl/ZMgoEgDC/F2yXhsam9vYhXdnuoo69KsDhcAQbvDngXcGCRupk+1sPmx2ChDpWvn tVCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9lZI3PImqx3T4CK/0DFoAjfnTtOk7dOVBphM/XkSKVI=; b=jWopNTJAloGA6mFARY+VCqIFiRjl++afeMUGxgpjZ1tV0OGLM+13QKTq9i99roCR/f Uk8pq/11xTV9hfrr2ThkiBL2I+u7QdblfKpkhbJ7UhgUZ58o0shIj8tm/rcl2IfQZTyw Udb7hrF/oPQ2BZR8NujNuTOS3tpynPck8/GNUlXLDVboV9EYjFfVN3aNwJJ00QVvMqYf BVWpRaFuRR0sDeqb81fonrPagsSJ+yrQ9V7Uaxpiv7SdDMyGpbkn1i3UI2fc9FFiA5x/ 8Q8AYunEScxzZQ34LcrmKkbavs4iQH7qNQp8aeHXjpxgfWXu6DcF7U6R2JjaEAdIBzPi zj6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=U0ZAOGTH; 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 v7si10780780pgs.387.2019.04.23.09.21.38; Tue, 23 Apr 2019 09:21:54 -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=@linux-foundation.org header.s=google header.b=U0ZAOGTH; 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 S1728889AbfDWQUL (ORCPT + 99 others); Tue, 23 Apr 2019 12:20:11 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38975 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728429AbfDWQUK (ORCPT ); Tue, 23 Apr 2019 12:20:10 -0400 Received: by mail-lf1-f68.google.com with SMTP id d12so12246437lfk.6 for ; Tue, 23 Apr 2019 09:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9lZI3PImqx3T4CK/0DFoAjfnTtOk7dOVBphM/XkSKVI=; b=U0ZAOGTH5UzOQdSVmsRebl4caZMqgVo2nPoPpTPrrdJ2jTA2RW3NvPCtg1KZ42Zvcn G1ZGbbk7dpA34xaZlDxhRhMjPICHO6n25H8k2Y6VQo012xfUtNyPqEP4sg7Co05cV8zT 6xNAONXbiweJJlYFDC8Lw3jO/2/rX7GIsZO6s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9lZI3PImqx3T4CK/0DFoAjfnTtOk7dOVBphM/XkSKVI=; b=JFJkKJf+sSBiTh4XQekweJFSRSp33/5fQxAsfdF/pjyZiArgYUPMceanVQqJgUWWK5 0gXS/BS0VN0FtefC7CSNGPPcNuVAt+RDTSZz/OTjmft3BzWDFSgYG9T30YjCTQTNBqi2 Br1NmX8zYDwJzbie68RgIWtmWetBkmwTMIGr945p82SzbzYSCdn06h0/XYKAgtne2bzS UiBFumtIBWu9FnlapX+CEOkr7o0NOA1ByFVWtLyVQ1vC8rItf9m+eOBdQFCCWuIKTvAp 9fZeGSujETkyeVLdnWF44ILRhiXRLEMFM+purl00cfoh6J3tQEbKwYxazSiGwpQHNSSb 4Lng== X-Gm-Message-State: APjAAAXqFtggQ1E3hb1XxCrWEU0nNgwgOunhHBX+XhOoN1p4X4pZXyiC IxITLCT+XFqowJMNaB72kfvKwrGMAP8= X-Received: by 2002:a19:e619:: with SMTP id d25mr15070229lfh.66.1556036407943; Tue, 23 Apr 2019 09:20:07 -0700 (PDT) Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com. [209.85.208.172]) by smtp.gmail.com with ESMTPSA id n4sm3794079lfe.15.2019.04.23.09.20.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 09:20:07 -0700 (PDT) Received: by mail-lj1-f172.google.com with SMTP id k8so1540323lja.8 for ; Tue, 23 Apr 2019 09:20:06 -0700 (PDT) X-Received: by 2002:a2e:5dd2:: with SMTP id v79mr14738625lje.22.1556036406473; Tue, 23 Apr 2019 09:20:06 -0700 (PDT) MIME-Version: 1.0 References: <20190419215358.WMVFXV3bT%akpm@linux-foundation.org> <20190423082448.GY11158@hirez.programming.kicks-ass.net> In-Reply-To: <20190423082448.GY11158@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Tue, 23 Apr 2019 09:19:50 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: mmotm 2019-04-19-14-53 uploaded (objtool) To: Peter Zijlstra Cc: Randy Dunlap , Andrew Morton , Mark Brown , linux-fsdevel , Linux List Kernel Mailing , Linux-MM , linux-next@vger.kernel.org, mhocko@suse.cz, mm-commits@vger.kernel.org, Stephen Rothwell , Josh Poimboeuf , Andy Lutomirski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 23, 2019 at 1:25 AM Peter Zijlstra wrote: > > Now, we could of course allow this symbol, but I found only the below > was required to make allyesconfig build without issue. > > Andy, Linus? Ack on that patch. Except I think the uaccess.h part should be a separate commit: I think it goes along with 2a418cf3f5f1 ("x86/uaccess: Don't leak the AC flag into __put_user() value evaluation") we did earlier. I think the logic is the same - it's not just the _value_ that can have complex calculations, the address can too (although admittedly that's really not supposed to be common, but you clearly found one case where a complier misfeature made it happen, so...). I also wonder if we should just make "count" be "unsigned long" in do_{strncpy_from,strnlen}_user() too, since we've already done if (unlikely(count <= 0)) return 0; in the caller, so it *is* unsigned by then, and we'd not be mixing signedness when comparing "max/count/res". Linus