Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4986115rwb; Sun, 13 Nov 2022 18:52:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf5iku9jw8BmwSQ0EBf9Mn2BkXsowO+E4PrVDXt5h7yDfQqrtBvHhORmLi5GdVvcetdAjW3U X-Received: by 2002:a17:906:390c:b0:78d:a30f:3f46 with SMTP id f12-20020a170906390c00b0078da30f3f46mr8530935eje.681.1668394372041; Sun, 13 Nov 2022 18:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668394372; cv=none; d=google.com; s=arc-20160816; b=NUb39o4FKxQGv+UKg1bR3dcgG1RllrWu+lyTvNN3YLB8lc5hp1yLPiKc9/8hadifiy fj1UM4TTNSFRcWzmeIpF7dBoQSrzi65KOND/jX75QiQgGqz4w2IxKwhlPl7ZEY0Xjed2 If3dFHgxBXRkg9D2+eHfoW/0meMKKgFkUPXVuZ2c4R1qTXpMiFt7n/w3m2rVTcHV82If KC5mZrTODSU+mtxEFYqSrGoaAU8G6GUQTf3XjNnhjb8ainjm1tzY+IpHScDDGmOeYYCl TEKlmC9kVfw6rWSo6MP3zeptyFTDY8e7XDAq3lPtKzjNpp6zGce5d6kFGuxGbIgfsiV7 qlww== 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=ZCSbXSTClCsoH9IoKxpSM2OTbMIBunrI93rhd2fC/c4=; b=jmzNFFvb8E34T/Jm39fZWnVRtOgmU1W2IR0YJl1rmaYYe9bdp86UzIWmrH8MjBDwUW On5O2cThgGStR0wx/rEhQxt3IwPevS1qNsnGAevwb508CSIpx6EgS5qIDjOhkFkuP+dy 9VqYN1RBBS3kTRWYUs92JkcCb+PHPeg1OVG/oFm+t4N5puyWgaNXlhBQNU0uO9YQNqQN t6JwNEedHwIg/u5gPlkEbzAgxKa7jrf3vMkoNI3g6RQzAbkreWCy6jBxFyGOpXnxjPY9 o5DU8jtdWZmUgoUWDIlX091BJfhZx6TloXL7BNWB4EveUpTQz1IjeKFMM5KT5ABARbk6 4SAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fastmail.com.au header.s=fm1 header.b="WB/zmzL+"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cJT9E3bJ; 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 dn2-20020a17090794c200b00781cde43588si9644605ejc.58.2022.11.13.18.52.28; Sun, 13 Nov 2022 18:52:52 -0800 (PST) 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=fm1 header.b="WB/zmzL+"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=cJT9E3bJ; 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 S235633AbiKNB5T (ORCPT + 89 others); Sun, 13 Nov 2022 20:57:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235473AbiKNB5R (ORCPT ); Sun, 13 Nov 2022 20:57:17 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A65EE625C; Sun, 13 Nov 2022 17:57:16 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 1666B5C00EC; Sun, 13 Nov 2022 20:57:16 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 13 Nov 2022 20:57:16 -0500 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=fm1; t=1668391036; x=1668477436; bh=ZCSbXSTClC soH9IoKxpSM2OTbMIBunrI93rhd2fC/c4=; b=WB/zmzL+eVUOvIRl02brtzOIEK aeg+dayISEXTknxOPN224ob1zfXD8VBpXxoX/1uCE8ijzm2pf/kT+8W+6Ht4MaT9 ph8BctGIJLVVyQ71bbQXKw+9GqlNTvjmTQA66D5Rd19YEjmYG7JHFRbBp7Z2qZ+M pYGBe2TwmfoRnq1LSKgTP/B3V/MVlncGtt6HRwOri38ESpwYA82mwuHqwH4TQTAb 1MTaimLXk8lXcs4W3sb0GdqDgsJqEkolRGHfJeeRGUhF5Lo4uDgWVcm3AHgTlCwY TrHuNK2hMnUmi4zPeJbLDTWUVmc1HSqYyElzZopmrlwAEfkh0SEq7s8qeoNA== 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=fm1; t= 1668391036; x=1668477436; bh=ZCSbXSTClCsoH9IoKxpSM2OTbMIBunrI93r hd2fC/c4=; b=cJT9E3bJJrxRd/yTa1ztNpdF9d4Biop41YHKxXc/qxUE6uY9C4T hbfVsg7irpXAAvffJeU/g8fYEPAiZA3QSF/Y7/scQvdnjxF0YaJ+5DAG4cN1NkEJ ZpqPAGSFjOH8z5ywLvftzrC0KdpHPfRWg8Ovryr81ddT9hHxCWgpdy6oCU0IqW77 A5gLNcdfL/huIvYyknCmatdmFCX1pwcQ68m0CpVuyrWncVflEDSWwsdpZeVTzeIc gW11fpzexVd/phTtwm63ifRt9JzqEsgTZXeDS18V18tgEAiaAxOVtaQ2tFU1SXdD JoGupLjNeWGuGPBg1fgj5QgovgXcGCRTDQg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgedugdeflecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpeflohhhnhcuvfhh ohhmshhonhcuoehgihhtsehjohhhnhhthhhomhhsohhnrdhfrghsthhmrghilhdrtghomh drrghuqeenucggtffrrghtthgvrhhnpeefvdekveeggfekgeehvdelteeiffehgfeihfel gfdvkeefvdetkeeuueevleehveenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhithesjhho hhhnthhhohhmshhonhdrfhgrshhtmhgrihhlrdgtohhmrdgruh X-ME-Proxy: Feedback-ID: ic081425d:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 13 Nov 2022 20:57:13 -0500 (EST) From: John Thomson To: Sergio Paracuellos , Thomas Bogendoerfer , John Crispin , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] mips: ralink: mt7621: fix kzalloc too early Date: Mon, 14 Nov 2022 11:56:55 +1000 Message-Id: <20221114015658.2873120-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,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 immediately afterwards, continuing to boot without the SOC_BUS device registered. After, (with CONFIG_SLUB) kernel crashes before it outputs any console messages This was bisected to an mm/slub change (detailed in patch 3) This change exposed oops in the quirks tables in the mt7621 phy-pci & pci-controller drivers. The phy-pci quirk fix got into -rc5, but the pci-controller quirk fix has not been picked up yet. https://lore.kernel.org/lkml/20221114012036.2870067-1-git@johnthomson.fastmail.com.au/T/#u This is mentioned in patch 3 as: not yet applied ("PCI: mt7621: add sentinel to quirks table") Changes from RFC https://lore.kernel.org/lkml/20221103050538.1930758-1-git@johnthomson.fastmail.com.au/T/#u to v1: 1/3: cut the CPHYSADDR to match the line moved to the header file 2/3: No useless const unsigned {int,bool} function declarations (thanks kernel test robot) 3/3: static struct *soc_info_ptr Mention fixed phy-pci & (unapplied) pci-controller quirks sentinels Add fixes tag Cheers, John