Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932346AbaGSQb3 (ORCPT ); Sat, 19 Jul 2014 12:31:29 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:57054 "EHLO mail-ie0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932069AbaGSQb1 (ORCPT ); Sat, 19 Jul 2014 12:31:27 -0400 MIME-Version: 1.0 In-Reply-To: References: <1402655819-14325-1-git-send-email-dh.herrmann@gmail.com> <1402655819-14325-5-git-send-email-dh.herrmann@gmail.com> Date: Sat, 19 Jul 2014 18:31:26 +0200 Message-ID: Subject: Re: [PATCH v3 4/7] selftests: add memfd_create() + sealing tests From: David Herrmann To: Hugh Dickins Cc: linux-kernel , Michael Kerrisk , Ryan Lortie , Linus Torvalds , Andrew Morton , linux-mm , linux-fsdevel , Linux API , Greg Kroah-Hartman , John Stultz , Lennart Poettering , Daniel Mack , Kay Sievers , Tony Battersby , Andy Lutomirski Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Wed, Jul 16, 2014 at 12:07 PM, Hugh Dickins wrote: > On Fri, 13 Jun 2014, David Herrmann wrote: > >> Some basic tests to verify sealing on memfds works as expected and >> guarantees the advertised semantics. >> >> Signed-off-by: David Herrmann > > Thanks for whatever the fix was, I didn't hit any problem running > this version repeatedly, on 64-bit and on 32-bit. glibc does pid-caching so getpid() can be skipped once called. fork() and clone() have to update it, though. Therefore, you shouldn't mix fork() and clone() in the same process. I replaced my fork() call with a simple clone() and the bug was gone. Thanks David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/