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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E604C433F5 for ; Wed, 18 May 2022 08:56:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233762AbiERI4Y (ORCPT ); Wed, 18 May 2022 04:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233634AbiERIzp (ORCPT ); Wed, 18 May 2022 04:55:45 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC283134E1F for ; Wed, 18 May 2022 01:55:40 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1652864138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UcxXOvDlY2eSV87H7dyKFcZrRDyg8Lk6SHYT9Da8KPE=; b=soOUlAjykXqqw5GqpV6bSf3DeibNHLnZ6JJhWS1tz0XWIkl95zBIzfxO/1jYTTkPn7OsfR h9KH72lIOoy5ev2WAbVGxhYEV0UHr2KAErgvAN1KPJxYGEZxGH25UrMY3en69mYTENKrPF NWMslFjnTkUxO1JgT9hmxu9kpizZF6w1xAd4mdoeZdgbFMLG+NU3pXV0jP5WByg8CYdCpV KttSXwYBw50EDz8AeuzTfGFM+0tvi6WSJgIQrTymJjyiCr/aHAqGL8lv66v1uPXQ+v2gh+ MByCIiIZ5Z9+T7SHN/04HEYtfYgKKcFVcYqPX2LlBBbnHk8GNgi01h46MAMIqg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1652864138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UcxXOvDlY2eSV87H7dyKFcZrRDyg8Lk6SHYT9Da8KPE=; b=s8ytQ9+po5ZeGiw2qixlDDlIyKp3zZx4e06fhU3rnjk9Nc9yTZX0bFm6uZVRwGas7XFl9L D1ZwWtaL2qvHAZAw== To: Chao Liu , linux-kernel@vger.kernel.org, hewenliang4@huawei.com Cc: steven.price@arm.com, Peter Zijlstra Subject: Re: [PATCH] cpu/hotplug: check the return value of idle_thread_get In-Reply-To: <20230327203728.159123-1-liuchao173@huawei.com> References: <20230327203728.159123-1-liuchao173@huawei.com> Date: Wed, 18 May 2022 10:55:37 +0200 Message-ID: <87leuzjk3a.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27 2023 at 20:37, Chao Liu wrote: > ilde may be ERR_PTR() Yes, but if that happens in bringup_cpu() or finish_cpu() it would be a serious bug and the error pointer dereference would be the least of the problems. If the initial check in _cpu_up() failed for a CPU then the above functions cannot be invoked for that CPU ever. Thanks, tglx