From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751457Ab2LTUsA (ORCPT ); Thu, 20 Dec 2012 15:48:00 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52738 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869Ab2LTUrx (ORCPT ); Thu, 20 Dec 2012 15:47:53 -0500 Date: Thu, 20 Dec 2012 12:47:51 -0800 From: Andrew Morton To: Stanislav Kinsbursky Cc: , , , , , , , , , , , , , , , , , , , Sasha Levin , Wu Fengguang Subject: Re: [RFC PATCH v8 0/5] IPC: checkpoint/restore in userspace enhancements Message-Id: <20121220124751.d7ccbd8e.akpm@linux-foundation.org> In-Reply-To: <50D28EC8.7000708@parallels.com> References: <20121024151555.5642.79086.stgit@localhost.localdomain> <20121218123601.113a29c0.akpm@linux-foundation.org> <50D28EC8.7000708@parallels.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Dec 2012 08:06:32 +0400 Stanislav Kinsbursky wrote: > 19.12.2012 00:36, Andrew Morton __________: > > On Wed, 24 Oct 2012 19:34:51 +0400 > > Stanislav Kinsbursky wrote: > > > >> This respin of the patch set was significantly reworked. Most part of new API > >> was replaced by sysctls (by one per messages, semaphores and shared memory), > >> allowing to preset desired id for next new IPC object. > >> > >> This patch set is aimed to provide additional functionality for all IPC > >> objects, which is required for migration of these objects by user-space > >> checkpoint/restore utils (CRIU). > >> > >> The main problem here was impossibility to set up object id. This patch set > >> solves the problem by adding new sysctls for preset of desired id for new IPC > >> object. > >> > >> Another problem was to peek messages from queues without deleting them. > >> This was achived by introducing of new MSG_COPY flag for sys_msgrcv(). If > >> MSG_COPY flag is set, then msgtyp is interpreted as message number. > > According to my extensive records, Sasha hit a bug in > > ipc-message-queue-copy-feature-introduced.patch and Fengguang found a > > bug in > > ipc-message-queue-copy-feature-introduced-cleanup-do_msgrcv-aroung-msg_copy-feature.patch > > > > It's not obvious (to me) that these things have been identified and > > fixed. What's the status, please? > > Hello, Andrew. > Fengguang's issue was solved by "ipc: simplify message copying" I sent you. > But I can't find Sasha's issue. As I remember, there was some problem in > early > version of the patch set. But I believe its fixed now. http://lkml.indiana.edu/hypermail/linux/kernel/1210.3/01710.html Subject: "ipc, msgqueue: NULL ptr deref in msgrcv"