Received: by 10.192.165.156 with SMTP id m28csp291774imm; Tue, 10 Apr 2018 22:02:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+de+FnbYw+2NdwIpI0NZSpxGd2WHtOCa0giJDNmm6LK+Vz1zflPIWH3y3DY1bkEYJlwZA5 X-Received: by 10.98.163.74 with SMTP id s71mr2736135pfe.72.1523422968079; Tue, 10 Apr 2018 22:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523422968; cv=none; d=google.com; s=arc-20160816; b=gwt2m9kbXjyhMDApLX9Z1vzeY+aCCYNyewFlkPDBjU8qSrVGlgo/6p+OdTDaajfIc7 KMnTwSulMqSBcvKarqNRPWPS1+pJQFiPqRZP6xBVqQ+Fbyyf9LsTdkad3FynyY4COJuL tsNFv6vd6jkLFSdYyWox7DQc8xBI4dhbwvvqAvwWehlOnGM7nvKVP2BuONdh0AeNaARj aAVkLYG7JT0MStMuDs3YsYV7xOvQFK3cTE0Imf4yo0R/tIdrmWk53Uxq7KF7cxmlhVXB tPvP63jhwphdqnRQWcdmg0NfzMPNW0BAYzQv2GFP0HLYRrwIQgiW5z6/bT+PD4hXnKQi 1+cQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:arc-authentication-results; bh=sxoICtI6tZ4svGDSui2MpAo10j1C79A6TUFLctHSehw=; b=JHVGtNB56/5i3uNxBk5HtSBrcPSS/Wltty7LjQiavq+Vvw0OyFvIyldA5bKZbVcsB/ 1zcuhJ8W0jDuPjexefgFVHpx+DrPMmV9DwsP9V3NG3EyN4MqhCtufMYIvcPV3RHe88p4 X6Ie09xSIpLCC4usxQStwC/+GQj4HfN3Bj7VQa3R7jLbGMm/pirj0xWwqDk/uanDV0qu p0shvd3TibSuI0Bl4tV9DwPlGXaaBrJ4SilOhaVdo8BBHYFYh6omkncyMloS9RdviaD/ F59EgzLVjh3vaUOu0netvqLzm8aG4XPJnPgUP85MfFXYCC2cbOMz40OuF/jPwkd2lZmQ vwpg== ARC-Authentication-Results: i=1; mx.google.com; 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 i133si225058pgd.598.2018.04.10.22.02.11; Tue, 10 Apr 2018 22:02:48 -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; 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 S1751970AbeDKE7R (ORCPT + 99 others); Wed, 11 Apr 2018 00:59:17 -0400 Received: from mail.andi.de1.cc ([85.214.239.24]:41483 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750865AbeDKE7P (ORCPT ); Wed, 11 Apr 2018 00:59:15 -0400 Received: from hotsplots-blu1-ip7.cust.syseleven.net ([185.46.137.7] helo=aktux) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f67qg-0003YK-GW; Wed, 11 Apr 2018 06:59:10 +0200 Date: Wed, 11 Apr 2018 06:59:03 +0200 From: Andreas Kemnade To: Ladislav Michl Cc: Discussions about the Letux Kernel , Boris Brezillon , Aaro Koskinen , Tony Lindgren , Linux Kernel Mailing List , Peter Ujfalusi , linux-omap , Roger Quadros Subject: Re: [Letux-kernel] [Bug]: mtd: onenand: omap2plus: kernel panic with OneNAND on OMAP3 (DM3730) device GTA04A5 Message-ID: <20180411065836.7e1bfc3f@aktux> In-Reply-To: <20180410205643.GA2228@lenoch> References: <5D496D5C-4E3E-47B4-9981-E8F4C348DE00@goldelico.com> <20180410205643.GA2228@lenoch> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/5/Hyp0xJawrtJEQyjiJt3nz"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/5/Hyp0xJawrtJEQyjiJt3nz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Ladis, On Tue, 10 Apr 2018 22:56:43 +0200 Ladislav Michl wrote: > Hi Nikolaus, >=20 > On Tue, Apr 10, 2018 at 06:25:17PM +0200, H. Nikolaus Schaller wrote: > > Hi, > > we just started testing the v4.16 kernel and found the > > device no longer bootable (works with v4.15). It turned > > out that there was a harmful modification somewhere between > > v4.15.0 and v4.16-rc1. > >=20 > > A git bisect points to this patch: =20 >=20 > Well, that's a shame... However, this code is in production for several > months now, so could you, please put 'goto out_copy' if 'buf >=3D high_me= mory' > condition is met, ie: > --- a/drivers/mtd/nand/onenand/omap2.c > +++ b/drivers/mtd/nand/onenand/omap2.c > @@ -392,6 +392,7 @@ static int omap2_onenand_read_bufferram(struct mtd_in= fo *mtd, int area, > if (buf >=3D high_memory) { > struct page *p1; > =20 > + goto out_copy; > if (((size_t)buf & PAGE_MASK) !=3D > ((size_t)(buf + count - 1) & PAGE_MASK)) > goto out_copy; I had the same problem here, and that snippet helps here. ubiattach -p /dev/mtdX does not cause kernel oopses here anymore Regards, Andreas --Sig_/5/Hyp0xJawrtJEQyjiJt3nz Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE7sDbhY5mwNpwYgrAfb1qx03ikyQFAlrNlhcACgkQfb1qx03i kySL/w//QiGPNQLszeJGusKmtI7IAp4H+p1r/EqOfLuJU6cvfaJsax8iQSl5xozx 4vaM+Qo0MlDOjEqZKa72nmeADXge31twaQdxiZRzet0btDCk70oTP4QkT2D2TaAi T/LqwkTI5sgE+e2AkXa6oVtOC70rZ6U26+MmOEDMAx+BfCshlz/4cNkJVyq60HEn Qx6D82B+rES49Jf5uEqyQ9M883dqj4p61Pp04wc4pMMYt3X268cv8BZVeu6hlWEu sQq8GR0sP/bpW3UmkUza1YdgZ8nztFFMg7YafmiFhAgJm1WDy8gKr+/dz4O7wT5c vmKvaGVIxSDvgqffhIuJ85pOC/JlaerfIgfSDUa70x3jEDrAB29qOKgsW49Q0aIY l7jM6AJ4MrzRH1LX0ran1DZCkD71OoMxeUK9gUD1kGoMJFPsYszRBJM9cDQxSsxi JevwtQTFYu1jFiIA7Baa4ZiOiOSEpimWc3wcFTKe0H2CPjW0yNqurX56mbkx6iOV 7ikFLCUmbKHqqSwNHcCNFUZByRi7Hg25rsaySbj60aC7WBGvm2mPK/6KZJSCkIqO UDxRj2yUGx3NMelXdvAjZF4D83lOK9nOJqAbMzBgTHpLirF9s8+mjtSYzAvUPyVc DoM11WKKJB8/jJE0XD6H2hHAqDp011ELKTvg6oJUVpQlKUwq9YM= =0Dl9 -----END PGP SIGNATURE----- --Sig_/5/Hyp0xJawrtJEQyjiJt3nz--