From patchwork Thu Nov 3 05:05:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Thomson X-Patchwork-Id: 1069 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp327883wru; Wed, 2 Nov 2022 22:17:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Wjk37bgvjkIOngG7kn/VuT+NVtf0o7JdIu3ugWeXxP/7gU7fxuohISWBoIg52O5v/U1JR X-Received: by 2002:a17:90a:590a:b0:20a:e93e:2022 with SMTP id k10-20020a17090a590a00b0020ae93e2022mr28584026pji.141.1667452633011; Wed, 02 Nov 2022 22:17:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667452633; cv=none; d=google.com; s=arc-20160816; b=DyK47QKs0RIb/vPbsG3QOWX3VAseUDEcx61xT0lMG3bkBYgExqpYlmk72an6V3oKED u2Rrt+gr7JRKHVmv/Yi1Pj66SssVJ/VFtP/NdKB80Ry1sjAjyYFfq4MVoaBNuD8Rctwn sQ02DlhCKTM/RpSQqIm0vGzGeaEp5YHdFA0g8ba3o1gWfweFYN6ccAzuXJTxCTwBZwzI 8yP+LIObg3iikAqOE57XfmMAQeGEVgC4MtWKR6q+rqLOOHVMCP50Oc15wEaVciRL2hv7 w+gDdiHepBZxlpyfw/PWpYiKRTWssoTH/p5bsEDcDnaCa3yMuZ2DO3lEcxRWxVDzLsf0 Di/A== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170902e84d00b00176b3c7d158si21430175plg.99.2022.11.02.22.16.59; Wed, 02 Nov 2022 22:17:12 -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 + 99 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?b?QXLEsW4=?= =?utf-8?b?w6cgw5xOQUw=?= , 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748450812065397176?= X-GMAIL-MSGID: =?utf-8?q?1748450812065397176?= 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?