Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1104354imm; Thu, 5 Jul 2018 14:58:47 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe40QIS3QPlGlPWv4Dh/8OSlNm7m7zYoaL6pRheuzRDFjPC0bPlRpt8yc3qpKvoGPys0def X-Received: by 2002:a17:902:ba97:: with SMTP id k23-v6mr7816155pls.259.1530827927258; Thu, 05 Jul 2018 14:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530827927; cv=none; d=google.com; s=arc-20160816; b=aY5qV6+wVCzvQ0jMCdzX4R+xu1Q4ypWCpuhvqi26WOLTpAP44xrPYeaDnygTm7Ypx/ 9pynjOsC9a8A3E723dL34eSpkVipyHWVdwuY0vONF8ZovuGImZz6KOzSA83Sx5i4GlJn g3q3eJR4qoouzMQp2Rk8SaXhxi9dyJ5ZI0qCPHhRkq8NWMvHgEMOArhh8QUKY6ZsCoY0 8UdhUw4YW9JNv3kKw04A3NJAshBSH1wP17E1SypS9aZBVsdGxMpKkfki2etUGm1RN6Rp ejSwhU9RkAq+2sJ/EM/IwwxXLPaQctHMheMop7U6bmlQxiKRiPUC4NyFES9k3htMK14A CQeg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=pJbdIltUIItSzCwhpQlYx1+Vf1qaikAaBCXBZeKEYTg=; b=JCU/N2/sX6FTeP3I06rCgtyTP+O2Nsd86ZgNwt/PP1logr5cgfVDdU1IsvnRPwXjJ0 ilxUzzjudz4uCHBCntZUTmmeqaQZPSQC4LCKu7XYCfQIV6pqTUskhwEI/Etod8OXMiKl CXs0stbdyJcwHwJoamCyWvD62ZDNmO2cp3F+YHRm0i67ofiBovin63o8YVBToHopR2VY o3hPiXadJBNdCZvuhW2fxoiRIcKcfZGW7aZnK4zNMixBCebWSsIZWXbq9jmz4+aAFPdd i1/JK9DoTncSiJk1FWzWTX4UGdVzlsLtEMGbYRUuiH/xBm0f10Tm2lXrpZQSy3r8EarI 6Eng== 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 91-v6si6668787ply.296.2018.07.05.14.58.32; Thu, 05 Jul 2018 14:58:47 -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 S1753680AbeGEV5s (ORCPT + 99 others); Thu, 5 Jul 2018 17:57:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59994 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753439AbeGEV46 (ORCPT ); Thu, 5 Jul 2018 17:56:58 -0400 Received: from localhost.localdomain (c-24-4-125-7.hsd1.ca.comcast.net [24.4.125.7]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id EB6CADB7; Thu, 5 Jul 2018 21:56:57 +0000 (UTC) Date: Thu, 5 Jul 2018 14:56:56 -0700 From: Andrew Morton To: Manfred Spraul Cc: Dmitry Vyukov , Davidlohr Bueso , LKML , 1vier1@web.de, Kees Cook , Michael Kerrisk Subject: Re: [PATCH 2/6] ipc: reorganize initialization of kern_ipc_perm.seq Message-Id: <20180705145656.962e34582646b7a28d221f4a@linux-foundation.org> In-Reply-To: <7143da44-448b-8beb-7583-1a5516623649@colorfullife.com> References: <20180705055920.19611-1-manfred@colorfullife.com> <20180705055920.19611-3-manfred@colorfullife.com> <7143da44-448b-8beb-7583-1a5516623649@colorfullife.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > The only open point that I see are stress tests of the error codepaths. > > And: > I don't think that the patches are relevant for linux-stable, correct?