Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8318898rwl; Sat, 31 Dec 2022 03:53:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvAVz1wcsK+q0aDE5GHtM8R85zK2iscofdDReg7QmwWCD7UJMNaOzsIKGM4yMBCeYxlCY02 X-Received: by 2002:a17:902:b613:b0:18f:98bb:c08e with SMTP id b19-20020a170902b61300b0018f98bbc08emr35453754pls.36.1672487597668; Sat, 31 Dec 2022 03:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672487597; cv=none; d=google.com; s=arc-20160816; b=lUkeq6QtGpLRusw81uySkfe80lt32Fn4r3QMnDGeAn2ThYXZW+ROZGWuIVikmkdhGT 3O2GhtNMVbuBHB1IdEX4+BSu93QopNacw4sOjGyZxEREsY+GhvyW0A201wQfCNHMbW/a ADk8udALR4RX4djswnufvnoasE6jH7bqkRUaaURJ7AlCiWjhGotYNYvbGoY7+dclrYbl Gau4veJTzq7NMv5RoiER1MkwUloPV1ww8DpqxQIvM2/GkGkYVHZKt5OSE4f23A4HEzy9 agTxyF2WvVmJGo/rC57YvsHLFNblWPc+QDRSYdRbB2ftem3GFlvfAt7wRa4JnnKdT3fp uytw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=baTdWaA2Jfj+6F//f4MwRcL0q0V5WsEFtRLkXeOd2Zk=; b=pWYYCzc161Wb7JaplDosFmAKCUReGToIBiHX1iAoE/UHdoFlxpVc6iCIS3lIkc8YKb HsNPpdvhW2OYboAfVx1c151Oa4vJk5r/2VjKIk4xnq8ZDCFJ3X/MMQrj/YwUsj/npKkc NkW9VDR16jiNrv+Y0fM8DOvPtsLnT8CT+1Cwmy6BRilX405dBdVFSNYVi/qe5f8jUeI9 NCQdJCtz/KdRlPXkx42oDvRHIw1yTFisfnhiqG4MfZC+TrJoCbWlcZHoVgVkux0lxifj piHtDpXdqn/U6BxuS/FtLM1IQ1GXV4hZaMhr93NW5KJgtPFaHfrNkXAeowE1GpG7/j5Y V4Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tdAjGap5; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h6-20020a170902f7c600b00192757cc437si16056765plw.92.2022.12.31.03.53.09; Sat, 31 Dec 2022 03:53:17 -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=@linuxfoundation.org header.s=korg header.b=tdAjGap5; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230352AbiLaLrB (ORCPT + 63 others); Sat, 31 Dec 2022 06:47:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiLaLq7 (ORCPT ); Sat, 31 Dec 2022 06:46:59 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED9D87658 for ; Sat, 31 Dec 2022 03:46:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 813DF60A0A for ; Sat, 31 Dec 2022 11:46:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8ED01C433EF; Sat, 31 Dec 2022 11:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672487215; bh=mLNAW/smzliujmTg5b8GKyjVLPSUZjsS30P+w5eM0jA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tdAjGap5Yh22z/adVbMCPUPadCUn9ZkY+5KidVfV2/DKDI9zUMU14NinbsHcDV1sk aH9yExfncgeDF4hTthetm1ah51CvZYAg09jmEEDv8GnNYpvW1lJZ6QAUAJfbGUOd2k 35vMUrtJ4kmEHFZiOapSloQ0YipllTHDvqTft1C8= Date: Sat, 31 Dec 2022 12:46:53 +0100 From: Greg KH To: Yoochan Lee Cc: matt.hsiao@hpe.com, arnd@arndb.de, linux-kernel@vger.kernel.org Subject: Re: [PATCH] misc: hpilo: Fix use-after-free in ilo_open Message-ID: References: <20221231055310.2040648-1-yoochan1026@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 On Sat, Dec 31, 2022 at 07:05:36PM +0900, Yoochan Lee wrote: > Hi, > > I haven't tested with a physical device cause I don't have a real device. > I found this bug through static analysis. Then please verify that it actually is a bug and that you have fixed it properly. To send patches that are broken wastes everyone's time :( Also, you did not properly describe how the static analysis happened or what tools reported it as is required. > This type of bug is similar to [1] and [2]. > > And I'm sorry that my patch is incorrect. > It's my first time patching a Linux kernel myself. I suggest taking the tutorial on kernelnewbies.org and working in the drivers/staging/* portion of the kernel first, so that you can learn how this all works. Do not dive in and assume that fixing issues that a random tool spits out is even correct to do. good luck! greg k-h