Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3214243ybl; Mon, 20 Jan 2020 18:41:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzj95NfwEzEGDVui190pwIpEL11HteuV3y0rPjX1bOt8SBslKITIaszT6xustSMMEQepDN2 X-Received: by 2002:aca:a811:: with SMTP id r17mr1435145oie.59.1579574488702; Mon, 20 Jan 2020 18:41:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579574488; cv=none; d=google.com; s=arc-20160816; b=n4ah5q+wq0EY/5WfZE3vdwtqjFG8z9xI5drNjE0AVI1T2UfScbWw9/nEL0FJlQBZ6S a88DMhvujhkBr8jYgCEVcHjH+xO9blb4al2F6516/Ap364g56ZbzLMM6/IY9Fg7UVsK9 xwtP2okVn5OXKpX5dZN+9LtdfXC9HQR4VRg5lM4x2pbymDfEsoYsAe5xZ6vpE6MBgZJk oX5P5kJN4UE1z4j7IxPiCa/TWBt74oOosvYeI5W0XwmvQlMOoB0kDjtyQ5MKrW663lFb MAq/0I/FEgbj9lVpie9ujhJAeWYMSoe+G/x5uxtf29Rd/gC3crFeg9a+CDh5NsOCHE/+ wksQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=knQMy2xRdsZzgtlpDVE1+4MRjXNiztr9Gbha6bn+Hl0=; b=Hv75LdQ1mMQ44EjXyVFI7n+icANW1fS5C8PUUbM4h6pywFnvVNytOY2axbsc7W0D4v RFMyvev2hGqb8OJRWXsMnWT3NBTA+EVX1x0dYBtcI94zNj7Rg3nc/2BMgvZogj7hmuv1 MC+c0dvCgjuclVFFWsDTbLptDGJaeh0yeqVHOhYHmWrPHaxpt93EM9QFLOhU5pOqsjdd PGHsNa16031dlxIjQWW3j3+3pqgnNICFxnC2CKyzajNknN6RbpHGLKiDuJS6/GG461z0 w+UKNuB/q6/4Vz8It8HR0aeberLRZKlfYIsXYwb7Edasutv22+P46kcFRfnRZhazs+DF cZvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w196si19042668oia.135.2020.01.20.18.41.15; Mon, 20 Jan 2020 18:41:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729009AbgAUCkW (ORCPT + 99 others); Mon, 20 Jan 2020 21:40:22 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:9224 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727829AbgAUCkV (ORCPT ); Mon, 20 Jan 2020 21:40:21 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A1E57BFC39A7165EE507; Tue, 21 Jan 2020 10:40:19 +0800 (CST) Received: from [127.0.0.1] (10.74.221.148) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Tue, 21 Jan 2020 10:40:12 +0800 Subject: Re: [PATCH] net: optimize cmpxchg in ip_idents_reserve To: Eric Dumazet References: <1579058620-26684-1-git-send-email-zhangshaokun@hisilicon.com> <20200116.042722.153124126288244814.davem@davemloft.net> <930faaff-4d18-452d-2e44-ef05b65dc858@gmail.com> <1b3aaddf-22f5-1846-90f1-42e68583c1e4@gmail.com> <430496fc-9f26-8cb4-91d8-505fda9af230@hisilicon.com> <20200117123253.GC14879@hirez.programming.kicks-ass.net> <5fd55696-e46c-4269-c106-79782efb0dd8@hisilicon.com> CC: Peter Zijlstra , Eric Dumazet , David Miller , netdev , LKML , , Alexey Kuznetsov , "Hideaki YOSHIFUJI" , , Will Deacon From: Shaokun Zhang Message-ID: <5377f988-9855-8322-a459-26376f50ee34@hisilicon.com> Date: Tue, 21 Jan 2020 10:40:11 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.221.148] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, On 2020/1/19 12:12, Eric Dumazet wrote: > On Sat, Jan 18, 2020 at 7:47 PM Shaokun Zhang > wrote: >> > >> We have used the atomic_add_return[1], but it makes the UBSAN unhappy followed >> by the comment. >> It seems that Eric also agreed to do it if some comments are added. I will do >> it later. >> >> Thanks, >> Shaokun >> >> [1] https://lkml.org/lkml/2019/7/26/217 >> > > In case you have missed it, we needed a proper analysis. > My feedback was quite simple : > > > Have you first checked that current UBSAN versions will not complain anymore ? > > > You never did this work, never replied to my question, and months Yeah, I'm not sure how to deal with the UBSAN issue and you said that some of you would work this. > later you come back > with a convoluted patch while we simply can proceed with a revert now After several months, we thought that we can do it like refcount_add_not_zero, so we submit this patch. > we are sure that linux kernels are compiled with the proper option. > > As mentioned yesterday, no need for a comment. > Instead the changelog should be explaining why the revert is now safe. > Ok, it is really needed to consider this. Thanks, Shaokun > . >