Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp2017758imm; Fri, 6 Jul 2018 10:19:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcOC8UJZMmDTYaGnYB8rZG4H+xS8BY5aHVgNNdXV+9VddDUGldG6YeySw2qGNx3sKp+tyjk X-Received: by 2002:a65:614a:: with SMTP id o10-v6mr9793490pgv.387.1530897566836; Fri, 06 Jul 2018 10:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530897566; cv=none; d=google.com; s=arc-20160816; b=vhxBt3aFyYFZTNlyAl+jFig7Aub2JTFjUkrb4dh/Hip3OUbRtpClNJCfVXEusxFxmJ iBOAfJPYHAIpJwP9zJhuBL0/+PgBK34/oGCZNttw+1PGANF0Bs/CzXJlgn18XNi3jkVG tCAgZUFgHY3Cw+OE60mJEp/EfLJdUfn92G5sWKaSiXcenLZKgkwaF6cG8UebjZpFuvlL PgLWWIJ6sRcwxZDlhZEqS4SzBggeFOXaDKYGQ0ggKPuiWgy5tURWEcGjUOrcKPdrNVU6 y4Y1cYNdtqa7GpzAJz6zonCPEmuugieixXy62T04Rfy2K5p855WlZjDWIthLnHWf2Lvq d1Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4/MPJyLU8AFuKpDvLlRpieHLuZV4GYQAPirRk1i8FKA=; b=sTB9NJXRm9TGBdOnlp8HR6QP037khMSXdSidxXmWQJOnSEcg5Xo3snvzroBKdo8KPy Lut5o0+Jibz2sbh08N3Q2NpmpUyAtsbgENrbGhaMuLDytHOawvXae+utxBbgZ9j0wO6F kF3aIxvuIgRuDMO8J5ff/63MnFFKtpf70Ke5xeKggPiFema9knWF3102zwdItsDMEDAo Y5BZmQ81PJgUKBKJ9Lef3Bbu81Oauu0OKWnqM6KHd2PH0mGljOz4MmeyK8EWEIcsTV3B 28VOEI/gnbJs6KFXMPWFi/6suNDnJZ8RT1GRGden1oBgBBlx9Kap3OL/Y9M+M4dXWjKK fxSw== 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 b18-v6si8204532pge.666.2018.07.06.10.19.10; Fri, 06 Jul 2018 10:19:26 -0700 (PDT) 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 S933678AbeGFRSV (ORCPT + 99 others); Fri, 6 Jul 2018 13:18:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:40320 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932910AbeGFRST (ORCPT ); Fri, 6 Jul 2018 13:18:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 69E9EB054; Fri, 6 Jul 2018 17:18:18 +0000 (UTC) Date: Fri, 6 Jul 2018 10:18:12 -0700 From: Davidlohr Bueso To: Andrew Morton Cc: Manfred Spraul , Dmitry Vyukov , LKML , 1vier1@web.de, Kees Cook , Michael Kerrisk Subject: Re: [PATCH 2/6] ipc: reorganize initialization of kern_ipc_perm.seq Message-ID: <20180706171812.7kbleqyxjbggd4y7@linux-r8p5> References: <20180705055920.19611-1-manfred@colorfullife.com> <20180705055920.19611-3-manfred@colorfullife.com> <7143da44-448b-8beb-7583-1a5516623649@colorfullife.com> <20180705145656.962e34582646b7a28d221f4a@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180705145656.962e34582646b7a28d221f4a@linux-foundation.org> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 05 Jul 2018, Andrew Morton wrote: >On Thu, 5 Jul 2018 17:12:36 +0200 Manfred Spraul wrote: > >> Hi Dmitry, >> >> On 07/05/2018 10:36 AM, Dmitry Vyukov wrote: >> > [...] >> > Hi Manfred, >> > >> > The series looks like a significant improvement to me. Thanks! >> > >> > I feel that this code can be further simplified (unless I am missing >> > something here). Please take a look at this version: >> > >> > https://github.com/dvyukov/linux/commit/f77aeaf80f3c4ab524db92184d874b03063fea3a?diff=split >> > >> > This is on top of your patches. It basically does the same as your >> > code, but consolidates all id/seq assignment and dealing with next_id, >> > and deduplicates code re CONFIG_CHECKPOINT_RESTORE. Currently it's a >> > bit tricky to follow e.g. where exactly next_id is consumed and where >> > it needs to be left intact. >> > The only difference is that my code assigns new->id earlier. Not sure >> > if it can lead to anything bad. But if yes, then it seems that >> > currently uninitialized new->id is exposed. If necessary (?) we could >> > reset new->id in the same place where we set new->deleted. >> Everything looks correct for me, it is better than the current code. >> Except that you didn't sign off your last patch. >> >> As next step: Who can merge the patches towards linux-next? > >Me. > >But it's unclear which patchset we're talking about. What's the plan >here? To combine both efforts? I'm thinking this series will conflict with the ipc rhashtable fixes I sent out earlier (https://lkml.org/lkml/2018/6/21/727). Thanks, Davidlohr