Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1867993rwd; Wed, 17 May 2023 02:29:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4C3TmRRQ9TX8lgLzE6MitVSocY2s6hAvZ4ioEsF5YWE8Y+ypeoupRo1QjnMwQUU8O3ZseC X-Received: by 2002:a17:903:6ce:b0:1a6:3799:ec2a with SMTP id kj14-20020a17090306ce00b001a63799ec2amr34981752plb.35.1684315745038; Wed, 17 May 2023 02:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684315745; cv=none; d=google.com; s=arc-20160816; b=lnfAvpJeW95QD4KfnworFU/IAF6Pl0UuJ16Yg+uf9swO2r9OvPhXfUlQZoqaAwdBwC vVtTsftt4B9gTicTRjoMv7ipJLpd1rnKLsdnaFpfwuunnnK13xnoG4FbpXKe0UQIW76+ qhenmGEvK0myedLvwJIjIojCmKWA5tTWEJki+j2TfZ3z1j9e0a3G3KAs8raTN1Dot7bZ ozyILnhDCmzPBLQXQX11O/sj2ZH3APeymOXWnGSJISt+sh2DrLR8WmPJ09aUAs9Ch4R2 ioAlDCqzmW3vcktXKiKKNUclSTit+hYkwRbVTpA7/VQT93I9PAMct1dJeIU4Y90Qf8pn Eibw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=bxzSrr956qyhgN0LMf3kYr1Av7BLTNLnGJzyboFQ3Z8=; b=EoySyasPz2iwo7plHmvcwtq0pLNmka3zrfHigNl6SuUYt/8oLc79svGtXg4dBX1C8c RldibZ/OlYfqTVepDNIZjOCYF/BPAUcqUwmQvJSKWNYOMbq5hboUFV3kHIKKAhTHyEzC vLSO5O1ZMx1/oG9jdAXNiNl9CGVUXUUsTtG1Q4r1GznyiDpL5TkDxcHP+Q+fYJtpEPub 4TNGICJpdeOPU2fRaNutdoppwBjfuna4m/OHJpDiEiucRRhnTiRE+X8yRADaMGQpxbzm 0o6oAW6u4qJnMoyAC6Oi7jfR10qsbirh0uJkHhf0xHD7JavqtB5lCGXfNLcaEW/VLH14 QGXw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z15-20020a170903018f00b001a922d1f4c7si21765501plg.60.2023.05.17.02.28.51; Wed, 17 May 2023 02:29:05 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230100AbjEQIy2 (ORCPT + 99 others); Wed, 17 May 2023 04:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjEQIy1 (ORCPT ); Wed, 17 May 2023 04:54:27 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A95A1738 for ; Wed, 17 May 2023 01:54:26 -0700 (PDT) Received: from kwepemi500009.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QLmxq2XxqzTkwg; Wed, 17 May 2023 16:49:35 +0800 (CST) Received: from [10.67.110.89] (10.67.110.89) by kwepemi500009.china.huawei.com (7.221.188.199) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 17 May 2023 16:54:23 +0800 Message-ID: <484d25eb-bcc3-f64f-1182-ff50fb4aca9a@huawei.com> Date: Wed, 17 May 2023 16:54:22 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH v5] kobject: Fix global-out-of-bounds in kobject_action_type() To: Peter Rajnoha CC: , References: <20230516123719.117137-1-xiafukun@huawei.com> <24c413e6-75a5-254c-b776-1459da83f86f@redhat.com> From: Xia Fukun In-Reply-To: <24c413e6-75a5-254c-b776-1459da83f86f@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.110.89] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500009.china.huawei.com (7.221.188.199) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 在 2023/5/16 22:02, Peter Rajnoha wrote: > On 5/16/23 14:37, Xia Fukun wrote: >> --- >> v4 -> v5: >> - Fixed build errors and warnings, and retested the patch. >> > > Please, also check this is still working: > https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-uevent > > When I try passing the example line "add > fe4d7c9d-b8c6-4a70-9ef1-3d8a58d18eed A=1 B=abc", it doesn't recognize > such input anymore and it incorrectly considers it as erroneous. > Why did I receive the following error message when passing the example line "add fe4d7c9d-b8c6-4a70-9ef1-3d8a58d18eed A=1 B=abc" using the original mainline code? synth uevent: /devices/virtual/block/ram12: incorrect uevent action arguments block ram12: uevent: failed to send synthetic uevent: -22 Is there a problem with my test case, or is the original code unable to successfully parse the sample?