Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp755283iog; Mon, 13 Jun 2022 12:13:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1urH1D5AyCZhtuOCHBkTZWOIL2MHnE6FIubkjeVKQTOdv78eC75BWqXw/zluuAJGO2Im73B X-Received: by 2002:a17:902:6b8b:b0:14d:66c4:f704 with SMTP id p11-20020a1709026b8b00b0014d66c4f704mr766245plk.53.1655147593029; Mon, 13 Jun 2022 12:13:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655147593; cv=none; d=google.com; s=arc-20160816; b=L0DGIJ9p87sMBlBf1nNWshBVb0MS/lXFtUU7QLGqMrhC0H0Di1qQ8siLgkqEmHmv9p +kxxeQQIbcKxLP2/7j1hvo8xwMoX7Y3uR5WM1ovN0kjmm4uql6o+tBDAvXdbA15/N0x3 ShFivzuAMfT/9L0LKF8DoAAnnv1syJFoo+7k5v4OlRN0xFOhTkHaYZ1Jox3S8YBKPdrc 6ycMc7ujbD4rfXKviPJEsySo9aTKTJEgKCIok6k+H4DUg1Jpz7ojGvrtfDQApPqBNiMF R+3ME5i54OnbbPY1PGJAf+8wVD6c/tAUrI0AkBpWTW2ps1HjxzX2tAYapGLJOrWX+yf6 5cjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=9ALP8lsGfjdjgEofzfsJxd9qV2mlI2gIpt2uj+q0ckY=; b=kZTnffBDV7ROXkyL+GpUhRH1+S1h3pcExoJr9O5WncpmYbCr8XkZFYy89TeA+O/7iI AUdWPK2cSbgZkdI4hmD4nMQwaO1zHW3o0afJDIznDwoaidtsZtAPLzFC/EC1fxT7kXfi RN+gx1MwFxP8x7YQaX6DhBGzz8qjkf7nCphTnZb6xDpCFh5G7NcsydmQfkndgzCxP/T9 iNXLjXnF4pJ82ISu0hClezB+NrXp2x3Ru+e6ieMbC+yN1C+z1lD0pjDE/Nia2Nln0BDs rgjH3vcLEbd6bA3MkmulvqJ4w/fT0B9PJxF/2AwKuirToOBEdKnsucthWvnh2ukH5m4A 68dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=czz4osvu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a056a00170400b0051872773159si630881pfc.228.2022.06.13.12.13.01; Mon, 13 Jun 2022 12:13:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=czz4osvu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347484AbiFMTEf (ORCPT + 99 others); Mon, 13 Jun 2022 15:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348594AbiFMTDq (ORCPT ); Mon, 13 Jun 2022 15:03:46 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C285CDECDF; Mon, 13 Jun 2022 09:49:06 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 123so6036499pgb.5; Mon, 13 Jun 2022 09:49:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9ALP8lsGfjdjgEofzfsJxd9qV2mlI2gIpt2uj+q0ckY=; b=czz4osvuz+f2/S9+hKIjWaAk9nwSjJ5BOHALM+L8npDyOhQSu1gub0HzMFya7upev0 ksc11lhUgxu5WOL1X01iW7xW28n2VADA6Drw9tJPihqqX620yo73SEmRJ6hGnGZOAzjq qAUgNs2B0F1W/wZQbVz2t2VLJ5nKXleE2zBa5OitnNb8XSHZrsJFKLMtydUtpznI1+9E fehC7wCZeJMpJkFmbogNuBdjfUA42uqOY4DxjxHRGdQyX1ltUipgYipCxG2mdtoliuRV jlddM/kmMTj75GnveSpGfFLOg8Kf6qr7icepy6U07x7cpPImoEsYWl/QwxdTSCRmlv4P UeiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=9ALP8lsGfjdjgEofzfsJxd9qV2mlI2gIpt2uj+q0ckY=; b=yK5WPLwXavmGzcBpwgJu2L8e1cHjou8k37NHXVs6wSVUGtynBwcc1xaQCuq0naQZgj jJGmA+j222Yyj5ySo79pwJ/yVtlkvooB6xKJCdQ5XLTFQzkkXylB6pcuH04H2BKdXxAT aavaKkxZss4JF7S9gT5QMkDyHdW/OCFMqrqCiI+6J5reDfpOIg/8TLttW4u1PTtgED9Y aXGBSnz/QkUlSHwb4G5Kf0Dp5x+1ApoAiVLPcd02W4C7muHGMyuMCz6HV5kJFO0QLE5O GsBEOvuQ4KmcPaUsFB8do2vntAd9XhRkaNMwlfdH2eJ54MNvJE6vBRG/xrAjsUfPnxUh 0dJA== X-Gm-Message-State: AOAM530RIlH97XwVfwi1522mUM7tlGxmkV5YqF2gJ3QIK5FbGdhlQs79 fdWFzcVBWoazjUwAbJiLO+s= X-Received: by 2002:a05:6a00:3491:b0:51c:1d3b:b0b0 with SMTP id cp17-20020a056a00349100b0051c1d3bb0b0mr131559pfb.68.1655138946195; Mon, 13 Jun 2022 09:49:06 -0700 (PDT) Received: from google.com ([2620:15c:211:201:43cb:e071:e7f2:5e7a]) by smtp.gmail.com with ESMTPSA id ij7-20020a170902ab4700b001621cd83e49sm5356623plb.92.2022.06.13.09.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 09:49:05 -0700 (PDT) Sender: Minchan Kim Date: Mon, 13 Jun 2022 09:49:03 -0700 From: Minchan Kim To: Sergey Senozhatsky , umgwanakikbuti@gmail.com, bigeasy@linutronix.de Cc: Naresh Kamboju , open list , linux-fsdevel@vger.kernel.org, Linux ARM , "open list:KERNEL SELFTEST FRAMEWORK" , linux-block , regressions@lists.linux.dev, Jens Axboe , Nitin Gupta Subject: Re: qemu-arm: zram: mkfs.ext4 : Unable to handle kernel NULL pointer dereference at virtual address 00000140 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 13, 2022 at 04:54:07PM +0900, Sergey Senozhatsky wrote: > Hello, > > On (22/06/12 20:56), Naresh Kamboju wrote: > > > > I have tested this patch and the reported issue got resolved [1]. > > > > Many thanks for the tests. > > Quite honestly I was hoping that the patch would not help :) Well, ok, > we now know that it's mapping area lock and the lockdep part of its > memory is zero-ed out. The question is - "why?" It really should not > be zeroed out. Ccing Mike and Sebastian who are author/expert of the culprit patch Naresh found zsmalloc crashed on the testing [1] and confirmed that Sergey's patch[2] fixed the problem. However, I don't understand why we need reinit the local_lock on cpu_up handler[3]. Could you guys shed some light? [1] https://lore.kernel.org/all/CA+G9fYtVOfWWpx96fa3zzKzBPKiNu1w3FOD4j++G8MOG3Vs0EA@mail.gmail.com/ [2] https://lore.kernel.org/all/YqBRZcsfrRMZXMCC@google.com/ [3] https://lore.kernel.org/all/YqEKapKLBgKEXGBg@google.com/