Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp975998rwi; Wed, 2 Nov 2022 22:21:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5pM3nU/Or17GZbkw+8+DSp1i7eR/LxixUwA7RekvLrZwPTO4dvjU3b0s4ZRNXlMXqVSe8s X-Received: by 2002:a17:90a:5509:b0:213:98ab:da74 with SMTP id b9-20020a17090a550900b0021398abda74mr30113460pji.208.1667452911014; Wed, 02 Nov 2022 22:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667452911; cv=none; d=google.com; s=arc-20160816; b=0jRoiwheS4VRVydQXBvIzBQHs0J/5nzSKx2P3mtxtQDHiqfKB+d6085YGZMTo7RdG1 krG8oVInXpYQuRYeRKI1yCZF8bzpWb0nnmbugfNnnJKLbEYkE/ZyozXBc2jrR3/b/Du0 gJ0U6Hzb+FFsnvgvySHNli4i3hoAtqfckZ/bP7Dp0Esx2+VqYTYfarw1YHK4vf27p0DC QSANYLOZIxLkX3o+IySlwp+OYUcoBTI104oZA3IYuwmaUGExBbPE2mfWsLk/zXJYvFoz Pm6X/Za8hDtaX7VWRUswuFfYEI4YtqzPK3jOa1A2ZefLN8eppHVM2u0ekVZneh58A7wa I5RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:feedback-id:dkim-signature :dkim-signature; bh=RBxPaXEPLNX4kZR/Tfbq6PM+htPjUpWoWE03QVW+h88=; b=mxb0GFXBYOmRsJxiMsjyjyt8FGhBph2bcJDpLV2lr1WpQkIf03jTLiYRlIgd/6QeKf TOLZ7WTpMY4mWsvDRYl+LbIFA/gj1V2Ipj57PwKJs+CTMA69jrFP4g5B6X5Dscs1w/RJ ikEW4iTWXvKx/j3/sceFcFZGDp4JX48kDP+UXGzstHJPBYWlIDilSXAZep25k/b5R164 DCfWZwP8sEs7svNufRlsqcQK9paAltURQu3vOKLpSFIGHgkOINPLQt076b1n8FKtP5Zf r235CGUb5yiYOtqg+2FtUFwq6ZdeFmy+nAOpzyRDRlh+wwL/LqPcG396m3PEHBQJMmv/ xgPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.com.au header.s=fm3 header.b=MRJ5Cs1P; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=GnA7BnDg; 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=fastmail.com.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t11-20020a056a00138b00b005429324b543si20665093pfg.360.2022.11.02.22.21.36; Wed, 02 Nov 2022 22:21:50 -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=@fastmail.com.au header.s=fm3 header.b=MRJ5Cs1P; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=GnA7BnDg; 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=fastmail.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230220AbiKCFGC (ORCPT + 98 others); Thu, 3 Nov 2022 01:06:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230017AbiKCFGA (ORCPT ); Thu, 3 Nov 2022 01:06:00 -0400 Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50DD818387; Wed, 2 Nov 2022 22:05:58 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7462C32008FF; Thu, 3 Nov 2022 01:05:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 03 Nov 2022 01:05:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com.au; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm3; t=1667451954; x=1667538354; bh=RBxPaXEPLN X4kZR/Tfbq6PM+htPjUpWoWE03QVW+h88=; b=MRJ5Cs1PR8XbKbls2o00CqQNxa oHIW7WU43yk3ZSpsS6DZje2dbVAqIri0RVpnYsGUnRv9kM/iEPbZfMx/lraQiu78 f3R2zbVjt1EqSw8Gipeb8EHcvDhxXTcAacWSdShahVDjFfr9iCfdOQYu9udv2UEi YCmfb83JEmyJqBME07gyaLLtckNG0WcZ25AUYX/GA67othMObU5eWmaY9SRJIj/4 6LQ0ey9aQJcVB10iiNNmFTcEqaEvxIb7hw1FpfudqE5mZibIyy/shKn+hC+A+T/G /a9Bm4wZ+BJfOeolQPD7bI4k511v9DnBs01EK7CzCcyHn/6+za6L+pI6iFng== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1667451954; x=1667538354; bh=RBxPaXEPLNX4kZR/Tfbq6PM+htPjUpWoWE0 3QVW+h88=; b=GnA7BnDg4JFLorf9t7Z+DZKT+swVpWFWHmSRjEBzEjAMmuUDGLe GgVNm18d8ahMxwbXWRaYvhi1m+8EPZs6y4t59vR8gz9NC8SElpPG5skLd+IbqYWx o6tGt7kop6sDmMoUscSaNLGt4F7IsSj8AomEFhnLV9unncuEWv8WeNvwE50HsLHR FLatt52VDZ4FUi3LlB8WF+4ufHMy7M/OrDCq+NkgW9NcRvRwepGsdcDeP5G7xuF9 WKsBhXFjIB40IGyWNjxeUoRXjj1TX0vYVYkkLGN8WjEbO8RIQhSba+4dpqxHjERx eNIdChenb+L5n7ShaFrd1z/qMpU8AWwZG3A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrudekgdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeflohhhnhcuvfhh ohhmshhonhcuoehgihhtsehjohhhnhhthhhomhhsohhnrdhfrghsthhmrghilhdrtghomh drrghuqeenucggtffrrghtthgvrhhnpeetjeevgffggeekffduledthfevgfeugeelhfeu veeiueekgfegffetudevhfdutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehgihhtsehjohhhnhhthhhomhhsohhnrdhfrghsthhmrghilhdr tghomhdrrghu X-ME-Proxy: Feedback-ID: ic081425d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 3 Nov 2022 01:05:51 -0400 (EDT) From: John Thomson To: Sergio Paracuellos , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , John Crispin , Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 0/3] mips: ralink: mt7621: fix too-early kzalloc Date: Thu, 3 Nov 2022 15:05:35 +1000 Message-Id: <20221103050538.1930758-1-git@johnthomson.fastmail.com.au> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 ralink mt7621 attempts to use kzalloc before normal memory management is available. Before v6.1-rc1, mt7621.c soc_dev_init silently failed to kzalloc and returned in soc_dev_init, but continued to boot without the soc device registered. After, kernel crashes before it outputs any console messages This was bisected to an mm/slub change (detailed in patch 3) RFC due to - probably a (much) better way to do this - do not have mt7621 device with PCIe to test drivers/phy/ralink/phy-mt7621-pci.c - should this reference a commit as Fixes?