From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD2F5C433FE for ; Sun, 6 Dec 2020 21:42:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8C898207C5 for ; Sun, 6 Dec 2020 21:42:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8C898207C5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=n3Dgo9g3pikPZZBXh2gEZit8/hkGbTH1FzvgnPu3J3o=; b=wYmHkGbXmAaHTXI1j3BqLvD/r wocsVbtFhRovSJfukeIdLDYA6BTzNsHxaIR6ZrAFyI+f3dyJSAElWx5qRN8Y31jAQN+Ubw+KavOFT yEFaTeCYDftljfyYn82ctPk9j1Tj9FVL3k4o8qFVE7sck/nHd5AsrAXMSaEfOLD8QQHEkdu9vsnWV Inq16oGj6x1TNm9kAiH9SknIeD9UP2I/6jGXTRBNmI0rEdl9hAsuZaGt1DaHKhSPXNYlcJqzRXlmf aKm+meU2LER0EC/Uq9MwgOjp2gAv9YgrO+VF5uuEOLIVXTOJs0PVVx/U+97/iAeicVkhRiKX3cB0z bydPlKprQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1km1mB-0007Xa-2l; Sun, 06 Dec 2020 21:41:03 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1km1m8-0007Wt-D5 for linux-arm-kernel@lists.infradead.org; Sun, 06 Dec 2020 21:41:01 +0000 Received: by mail-wm1-x334.google.com with SMTP id c198so9941784wmd.0 for ; Sun, 06 Dec 2020 13:40:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/BxSizpOargIZyac2nTAqdpMqu9JUHGGbqbw7p9cqXY=; b=GzCcTnP1hykHHnk8kieyiyxzTx6xoXN6w89uNNv3N/J1qe9T2XHMBpdfcT1Bpc+IGk EaaJDdlJHbvpCu2nUPwk6beSSXutJJxeoUnHHEKj/WpIDx0DvdyJh/Tmr3REV/dcDl8F OgBVfyso+hW5mt9i/WdzTxUOAvC9QavNiaLgpjkgxzUS6nXKSQ95ftcz+BMzAjwZ9Wd2 eWdSCp7UT95HKHkWBEzbgFC7hSKYJiJ4bMgiwg/erq8kMbhh7yvk0xkAqJ6oJnKqaQ+b 871rtSreI4ZfDCp/A9FyIMsDMkv965L6cx/FDnFEhDhwMa0fKQ/AJHYhuLxZM9BKCfqx BE4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/BxSizpOargIZyac2nTAqdpMqu9JUHGGbqbw7p9cqXY=; b=s02SosfOiaraZhVvqxf9aiL6Y7KqQRp03jQpraMeImWagH7B582Xhtyo1oDRTC+mnw zpeUhZhwN73j06Kq7OeYPIOGInFAvtFk8tWfORqc46oOldYqy+M4C0XxYgUoNhq1syA0 Te3BWZvvSJE09ir2/enGFcSOJmR8GEb2rp494Z/erMq4e4LkeWQcSc79qQqJTVgYcnMe uR8uX+0r01zLaisJdDF8+5Takx7EHXgjSCPFGflOGPtOZTV4cAi4Yy/gz/h/WsKohpOh ulEaX8fxnOsrlSoDSjsGJXLm8O6K0VPRrpJdussf1qwAdXswFdB3e5Gt+UvlpGMmE8de th0A== X-Gm-Message-State: AOAM532KWcOFc0rkMp6JpDMA+EtERQrgQYIeB9IPYxg+cMZEQ4F03DML HPVIN7+zc6rXpj4WAAbMU1Q= X-Google-Smtp-Source: ABdhPJzZKEbCkaETVTQleZ8rPJgbqrJ0gj7vBfgsr/S/ShhK2oE1HYMAySEm5l9TOEN0AbgN/GLHXA== X-Received: by 2002:a1c:b78a:: with SMTP id h132mr15145028wmf.141.1607290857074; Sun, 06 Dec 2020 13:40:57 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id y68sm10912421wmc.0.2020.12.06.13.40.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Dec 2020 13:40:56 -0800 (PST) Date: Sun, 6 Dec 2020 22:40:53 +0100 From: Corentin Labbe To: Thomas Gleixner Subject: Re: crypto: sun4i-ss: error with kmap Message-ID: <20201206214053.GA8458@Red> References: <20201202195501.GA29296@Red> <877dpzexfr.fsf@nanos.tec.linutronix.de> <20201203173846.GA16207@Red> <87r1o6bh1u.fsf@nanos.tec.linutronix.de> <20201204132631.GA25321@Red> <874kl1bod0.fsf@nanos.tec.linutronix.de> <20201204192753.GA19782@Red> <87wnxx9tle.fsf@nanos.tec.linutronix.de> <20201205184334.GA8034@Red> <87mtys8268.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <87mtys8268.fsf@nanos.tec.linutronix.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201206_164100_576653_64BFFC79 X-CRM114-Status: GOOD ( 16.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jens Axboe , herbert@gondor.apana.org.au, Julia Lawall , linux-kernel@vger.kernel.org, mripard@kernel.org, linux-mm@kvack.org, wens@csie.org, linux-crypto@vger.kernel.org, Andrew Morton , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Dec 05, 2020 at 08:48:15PM +0100, Thomas Gleixner wrote: > Corentin, > > On Sat, Dec 05 2020 at 19:43, Corentin Labbe wrote: > > On Fri, Dec 04, 2020 at 09:58:21PM +0100, Thomas Gleixner wrote: > >> Can you please replace the debug patch with the one below and try again? > >> That stops the trace right on the condition. > > > > Hello, the result could be found at http://kernel.montjoie.ovh/130739.log > > Thanks for providing this. This is clearly showing where stuff goes > wrong. It starts here at 729.550001. I removed the uninteresting parts: > > 0d..2 147103293us : __kmap_local_page_prot <-sg_miter_next > 0d..3 147103308us :__kmap_local_pfn_prot: kmap_local_pfn: 1 ffefd000 > > 0d..3 147103311us : __kmap_local_page_prot <-sg_miter_next > 0d..4 147103325us : __kmap_local_pfn_prot: kmap_local_pfn: 3 ffefb000 > > 0d..3 147103429us : kunmap_local_indexed <-sg_miter_stop > 0d..4 147103433us : kunmap_local_indexed: kunmap_local: 3 ffefd000 > > So this maps two pages and unmaps the first one. That's all called from > sun4i_ss_opti_poll() and the bug is clearly visible there: > > sg_miter_next(&mi); > sg_miter_next(&mo); > > release_ss: > sg_miter_stop(&mi); > sg_miter_stop(&mo); > > Written by yourself :) Same issue in sun4i_ss_cipher_poll() > > Fix below. > Unfortunatly, the crash still happen with the fix. See http://kernel.montjoie.ovh/131321.log _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel