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 9F919C83F3F for ; Sun, 3 Sep 2023 13:37:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238006AbjICNhh (ORCPT ); Sun, 3 Sep 2023 09:37:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237960AbjICNhg (ORCPT ); Sun, 3 Sep 2023 09:37:36 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E33DFB for ; Sun, 3 Sep 2023 06:37:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 02F68CE0AC8 for ; Sun, 3 Sep 2023 13:37:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E269CC433C8; Sun, 3 Sep 2023 13:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1693748251; bh=SGeYKy0hSTsfUbH5Oruf0ELnxmWXsRUwXsp08daMSLE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uK0vSqrwhRq8aKhjOrvbd/q4ZKwAetvTpxSQuI+8QyIdllcaffaCc6xtGmbTTk1HI Cs3m1oXql//Ma6JKLr9kkuNNZgesSllyNBcCDG8Vx9pltVYgaly451uxx8VB4jrhes m7ul6S4caBFdxF1eaauY4yH6G/m7f/4LTVf4MDcw= Date: Sun, 3 Sep 2023 14:54:53 +0200 From: Greg KH To: Edward AD Cc: syzbot+85792f3143e6271d2c97@syzkaller.appspotmail.com, andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, rafael@kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH] kobject: fix kobj and fmt are both null Message-ID: <2023090328-slam-verbose-957d@gregkh> References: <0000000000007b589e0604578e70@google.com> <20230903124231.3748101-1-eadavis@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230903124231.3748101-1-eadavis@sina.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 03, 2023 at 08:42:31PM +0800, Edward AD wrote: > If kobj and fmt are both NULL, it will cause an exception in kvasprintf_const, > then when this situation occurs, -EINVAL is directly returned. How can this happen? Are there any in-kernel users that cause this to occur? If so, which ones, why not fix that? And your description isn't quite correct here, you are not checking for kobj, but rather kobj->name. thanks, greg k-h