Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp253121imm; Wed, 4 Jul 2018 23:02:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc/7BfAKYybtu7R2ip2jc9iOW1+Gr8xkWEuEMtBkwlYB/uY1HTR35LFFKPRjlKT0jvDn1E3 X-Received: by 2002:a65:6301:: with SMTP id g1-v6mr4331971pgv.324.1530770537009; Wed, 04 Jul 2018 23:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530770536; cv=none; d=google.com; s=arc-20160816; b=rcfSNRg+/TGn8REqkbivDa9kHo4tcg9pHteTXvbo9ZE8yJHPABsgUuKToht06xrwoD iRIyCXuaZFVtdJ6TziHSsZvZYABJKWgUXsiMtYhekPfVXsGsxlempTBS4m9PLdu5FoO1 3CUEaI7JVaKxWs8cdi/MeopBBqvw7drVvTXs+yXKjs2ZgK4QRjGRs+CvsRUx5f2D++T1 UHKPAYzuRuRpGoQppEaWLixQQkhuwS6fZBMXGx0I6t/ojzqdRn7wuNlhl+pus6wyS56u quivBy0s2KP8GOXqsHT0qpNCgF9dqvfzjY96Yc4Qgy3GpUnFc5pmjzUkPJS4Pe17VdNd aneQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=vUJD4SCvihnjfphFKwNmNmLRqX8o58P/Iv6Re/5Kcqc=; b=iBaQJ1CUp3HyfEU9Kr4yxQQJh8HWzXCIF/KihXdoTF+9R8umz7LlLx0Pnk33p82XVS xJq6Gr1pFoKUkSUKMaA0/C1Xvait6NpCJFcVCd6m5ULq4oZ8TR+cRL8SFNewRIJ0KIsA zKcqkuXfgFc3cuzRakfsfzuBnqeLXWOm7W4TKaBKS0G63qT0o6UJXk9ZPRYHQyuuOtx4 7Jg4LPZR3ijdHBPncc80ZjVjpozQKeSgE3PzJXOsaRIYMmc0yrx1nvlaiDZwXb73TN5I UC2JBZujJzub5xJD67/6VrOLrALahpBrkFt9SYhBdk+1AEuYSeJWgM///y9tuih1W5jh b70g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@colorfullife-com.20150623.gappssmtp.com header.s=20150623 header.b=OnIpMRpx; 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 y123-v6si5606427pfc.302.2018.07.04.23.02.02; Wed, 04 Jul 2018 23:02:16 -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; dkim=pass header.i=@colorfullife-com.20150623.gappssmtp.com header.s=20150623 header.b=OnIpMRpx; 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 S1753068AbeGEF7a (ORCPT + 99 others); Thu, 5 Jul 2018 01:59:30 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:34908 "EHLO mail-wr1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751811AbeGEF73 (ORCPT ); Thu, 5 Jul 2018 01:59:29 -0400 Received: by mail-wr1-f50.google.com with SMTP id h40-v6so526215wrh.2 for ; Wed, 04 Jul 2018 22:59:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=colorfullife-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=vUJD4SCvihnjfphFKwNmNmLRqX8o58P/Iv6Re/5Kcqc=; b=OnIpMRpxjSaWQ5IKbx4azpB6n1odzBolX1b9L55DXlYGBs1EOBWSOFkCWJvg2NdFqy 8wvtnPn2wIGUGedluwIzyvLRJB57ZgibdMly+nwx3B1ZuEWXTKb6Dp/yQoyHpTqfJUwQ LDdeof9WGXKhw3ELHo9BEqsuof6NG60pgwJRHNU8G7oUYu7ta+4NGG6hbsYEeEj+m9HT QrIDhxGEg/qesf/cn96trFn4aEJsGoQ2S1Q0GG5CmolDjd92cCrDw4muE6plcQbPVJQ5 9V/YRcUrbhIlopPEeQ1LZaA69v+J0dZYbsBg5d9otytM5eW1MsNbG1OEURSuRc2YWrun M70g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=vUJD4SCvihnjfphFKwNmNmLRqX8o58P/Iv6Re/5Kcqc=; b=kILKfrmWcVRHwDw2YyAvgOWIAb+qrKb7AQoaMPUnJ7mih31o9ITGuFE+ALvHvkcEyK PKiC6dy18yVR2eW8QxqyRuCL5KLHCRTQ4kXqvTqeFCM7XjWMnc6RAqOFRphusLIs4jsR YFy8gTFRxgVxJBHj06/ubwN3omNN4idI7vAw8ldWCtXl5x3/C5MHeSaKBEch82LkuRQq 3QCNCTZZfWnt6XbVGgmDnO9EGVHNCg4RY+GiohqQX7j3eh3NoW4YFL40HbgiOXRxuhQF tg6hlDkQ0B6+3R8ugc4yZ6xEN/Q4iQ81CJrIZ+aasSmTmM8311wZCoxCDcaMDnp/JnwF LV8g== X-Gm-Message-State: APt69E0p0LMOMKEjOXA52oE9/Tj+vIAUejR9EQcutwgDzTvxvLkCpb4t PU6BBs4VGx+Z6FSmuFldqsbFZ6nMZ63Ylg== X-Received: by 2002:adf:b112:: with SMTP id l18-v6mr3682930wra.101.1530770367745; Wed, 04 Jul 2018 22:59:27 -0700 (PDT) Received: from localhost.localdomain (p200300D993C4E0002E4725E865D6E031.dip0.t-ipconnect.de. [2003:d9:93c4:e000:2e47:25e8:65d6:e031]) by smtp.googlemail.com with ESMTPSA id h40-v6sm7452689wrf.40.2018.07.04.22.59.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Jul 2018 22:59:27 -0700 (PDT) From: Manfred Spraul To: LKML , Davidlohr Bueso , Dmitry Vyukov Cc: 1vier1@web.de, Andrew Morton , Kees Cook , Manfred Spraul Subject: [PATCH 0/5] ipc: cleanups & bugfixes Date: Thu, 5 Jul 2018 07:59:14 +0200 Message-Id: <20180705055920.19611-1-manfred@colorfullife.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Dmitry convinced me that I should properly review the initialization of new ipc objects, and I found another issue. The series corrects 3 issues with ipc_addid(), and also renames two functions and corrects a wrong comment. 0001-ipc-reorganize-initialization-of-kern_ipc_perm.id: Access kern_ipc_perm.id under the IPC spinlock. My original idea of removing kern_ipc_perm entirely is not possible, e.g. the proc interface needs the id. 0002-ipc-reorganize-initialization-of-kern_ipc_perm.seq: Bugfix for the syzbot finding 0003-ipc-util.c-Use-ipc_rcu_putref-for-failues-in-ipc_add: Bugfix from code review 0004-ipc-Rename-ipcctl_pre_down_nolock.patch: Comment update & function rename from code review 0005-ipc-rename-ipc_lock-to-ipc_lock_idr: Function rename from code review 0006-ipc-util.c-correct-comment-in-ipc_obtain_object_che Comment correction from code review The patches are lightly tested, especially I have not tested the checkpoint/restore code or tested the failure cases. -- Manfred