Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3582152pxk; Mon, 5 Oct 2020 13:33:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAlNTW4sewKNR22BeOyrv/ei6FL10sTbvc1GOj/+syhuIYKykCU1qfmlFj2t3rnEjNA8WA X-Received: by 2002:a17:906:1081:: with SMTP id u1mr1577961eju.284.1601930024498; Mon, 05 Oct 2020 13:33:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601930024; cv=none; d=google.com; s=arc-20160816; b=mkDbyxFZSxfAR1MKmizMPJhX66vwOpDQhdWccyAYEYrDVX1xY7oEpDr0v8YIavtdGV gxERoBTmdDgHkbbdya/yeUdjOR5DkEuCvYtsKJr0KYHG7tWE7lM8k8jWIhlk2EHT0dw0 iPpX7NhSlrEei7wPU/ME3/e2aePNbKdeBWqgCHEwhMKvdFYr5TorAScEU73oW6FhusIe g4JCRYda86NjXvBHyL9JO00gjGu2p2zwcKUTG1EcI2MGBBZfo0KOfxzpGB+AsmZsS/H3 r6qWtF3HTMP1bJSTSEQFKVBLLeB8ZUK6oaEdzLqpWtJsxnU+Mla3CQXY+8Ghc3I3Qw6Q 9+jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=hz90YFkGl/8ExqlhWO8ZfyHkHp+dfRUirItentHHUPY=; b=eoveszBL1etZSIQBRzqLytTYUv7p+TILJ7+s+5W409+oCc8qBAAV1K09mJvmlCBV/b 00GRC/QRCgsJWi3RWulJmfHq9mytO1RqS5PH/CRJ26G6ahpNzsDCv8GHYvWSbmM5w5hL yFtwsBnGWNC3D3spxtXMYuXhFBWWY134oXK4pVvVqDTLhCSssSnahfWFvGznDjoHY1tG BLfkX28gtdR6acl8wubl4aSw+/rNXNJHDEtJtr089O71frdbySPEK4tTIxXAhpQqzd4W 3suDaMOW7sDgRbOu18pxLx32EDcHNtzaOc5DTjX2f7aEekuk2Q0ZDwAJHtBTp/rT39YI oSjA== 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 m6si519718ejc.527.2020.10.05.13.33.22; Mon, 05 Oct 2020 13:33:44 -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 S1729102AbgJESlB (ORCPT + 99 others); Mon, 5 Oct 2020 14:41:01 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:48009 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbgJESlB (ORCPT ); Mon, 5 Oct 2020 14:41:01 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4C4qDT3bBpz1qt4L; Mon, 5 Oct 2020 20:40:56 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4C4qDS5R48z1r0lS; Mon, 5 Oct 2020 20:40:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id dhxAh5FxZBrC; Mon, 5 Oct 2020 20:40:55 +0200 (CEST) X-Auth-Info: wToZBNEoEF1rWN+IPsWKDZkac8E1RIC382M0Q6fDxQgtEkwRSbB5xQed0w7uOL0i Received: from igel.home (ppp-46-244-175-195.dynamic.mnet-online.de [46.244.175.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 5 Oct 2020 20:40:55 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id E303C2C2982; Mon, 5 Oct 2020 20:40:54 +0200 (CEST) From: Andreas Schwab To: Palmer Dabbelt Cc: guoren@kernel.org, Paul Walmsley , anup@brainfault.org, greentime.hu@sifive.com, zong.li@sifive.com, aou@eecs.berkeley.edu, tglx@linutronix.de, tycho@tycho.ws, nickhu@andestech.com, linux-riscv@lists.infradead.org, guoren@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-csky@vger.kernel.org Subject: Re: [PATCH V2 1/3] riscv: Fixup static_obj() fail References: X-Yow: HOW could a GLASS be YELLING?? Date: Mon, 05 Oct 2020 20:40:54 +0200 In-Reply-To: (Palmer Dabbelt's message of "Mon, 05 Oct 2020 09:39:51 -0700 (PDT)") Message-ID: <87362stt1l.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Okt 05 2020, Palmer Dabbelt wrote: > On Mon, 05 Oct 2020 01:25:22 PDT (-0700), schwab@linux-m68k.org wrote: >> On Sep 14 2020, Aurelien Jarno wrote: >> >>> How should we proceed to get that fixed in time for 5.9? For the older >>> branches where it has been backported (so far 5.7 and 5.8), should we >>> just get that commit reverted instead? >> >> Why is this still broken? > > Sorry, I hadn't seen this. I'm not seeing a boot failure on 5.9-rc8 with just > CONFIG_HARDENED_USERCPOY=y in addition to defconfig (on QEMU, though I doubt > that's relevant here). I don't see a boot failure either, but eventually you will get crashes like this, and resources are not properly released: [ 4560.936645] usercopy: Kernel memory overwrite attempt detected to kernel text (offset 241626, size 16)! [ 4560.945324] ------------[ cut here ]------------ [ 4560.949954] kernel BUG at mm/usercopy.c:99! [ 4560.954030] Kernel BUG [#1] [ 4560.956805] Modules linked in: nfsv3 nfs_acl rfkill mmc_block sf_pdma i2c_ocores virt_dma spi_sifive uio_pdrv_genirq uio loop drm drm_panel_orientation_quirks rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache af_packet mscc macsec macb ptp pps_core phylink of_mdio fixed_phy libphy pwm_sifive mmc_spi crc_itu_t crc7 of_mmc_spi mmc_core spi_bitbang sunrpc sg dm_multipath dm_mod scsi_dh_rdac scsi_dh_emc scsi_dh_alua [ 4560.995103] CPU: 2 PID: 23806 Comm: nis Not tainted 5.8.10-1-default #1 openSUSE Tumbleweed (unreleased) [ 4561.004563] epc: ffffffe00036140e ra : ffffffe00036140e sp : ffffffe004bc7d60 [ 4561.011679] gp : ffffffe00127ee60 tp : ffffffe1b05d0000 t0 : ffffffe001297ca0 [ 4561.018886] t1 : ffffffe001297c30 t2 : 0000000000000000 s0 : ffffffe004bc7d80 [ 4561.026093] s1 : ffffffe00003afda a0 : 000000000000005b a1 : ffffffe1f7d67588 [ 4561.033298] a2 : ffffffe1f7d6c108 a3 : 0000000000000000 a4 : ffffffe000043e80 [ 4561.040506] a5 : ffffffe1f7d6be80 a6 : 0000000000000144 a7 : 0000000000000000 [ 4561.047712] s2 : 0000000000000010 s3 : 0000000000000000 s4 : ffffffe00003afea [ 4561.054918] s5 : ffffffe1f7e00e80 s6 : 0000002af4a2c2e0 s7 : fffffffffffff000 [ 4561.062124] s8 : 0000003ffffff000 s9 : ffffffe19f985400 s10: 0000000000000010 [ 4561.069329] s11: ffffffe1f7e00e80 t3 : 0000000000038fa8 t4 : 0000000000038fa8 [ 4561.076533] t5 : 0000000000000001 t6 : ffffffe00128e062 [ 4561.081832] status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003 [ 4561.089821] ---[ end trace a7c93e7595e9c2cc ]--- [ 4561.095589] BUG: Bad rss-counter state mm:00000000c54f4c29 type:MM_ANONPAGES val:1 Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."