Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1982291pxa; Sun, 16 Aug 2020 18:43:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrF3FIS03RSIFcwtX77g4lGUocG9j7Ocpp5L/PyZaJXO1RNzGlEODZ8TBQIFPtQt1gecjA X-Received: by 2002:a05:6402:b23:: with SMTP id bo3mr6865570edb.333.1597628611100; Sun, 16 Aug 2020 18:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597628611; cv=none; d=google.com; s=arc-20160816; b=jGKTSkHMa4bIw+oJcveDqaAcPZrZgqJXCJUAhkgznqrqhkmlsOG/0TA5MgzaNaxDWI AhNc0dBRt13OVfy4xkW4n6pLaxmiGTxcbZEg4pnMXAitFaDH2ZMCgeflCLc42PWWeNi/ RKo8tSI+IBkOqSD5akcMYmi6W8lzBlRu8U8/qbfR2n2bcfrtNOm3bY07WyxVC+TY/w5p wzeYE/RTAocP9ZhSczcBdsZqOE5V4C7VtLuCfv2hDSQIf/B4rSTSux1afzm26xr7yikE 1rZA0hbmWPc3X9mT8xqnG5dUTf02hoGmrIbB6vOa7iKQcLlk0cdMLljsoYyHnwuYnapG IzqQ== 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 :message-id:date:subject:cc:to:from; bh=BHWFkOAeZS7LfZTrBUJXbX/23slWhfsp/rlLwkVh+Fs=; b=GD6BL3PFSA9NjCn67QJkbgXYZ/WX2XvAYuT5yRy+Ih/MbAFrnuJS3ZI5/HJZDQPQb5 W2qR3Sh+TMxxV5PukyUXk3hVSEcDeeH6hsstxwhDquc+Oywryxeu966g04E5Qeo1aAqj 6Yt2TStf9sH+0nIhaH5JfERqC36w/cou4DTmNCEflTPRXPBTVm2Vrf4+q4KoqYnXJbge lIiuQFEAGDc9HG2Ajx2PQ0d6Dlnqdj2YKsI7BENN1wSwwrB0RlkApMxXja5KxX45X1K2 6b6f5Zi1fr/eoAHT/yrJ9p4NDz8ZKAr1qM8jRZRMUJeENoUodH+96qjAFz1albvbb6G5 CtBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i28si12600332edj.373.2020.08.16.18.43.07; Sun, 16 Aug 2020 18:43:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726606AbgHQAp0 (ORCPT + 99 others); Sun, 16 Aug 2020 20:45:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:54670 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbgHQApW (ORCPT ); Sun, 16 Aug 2020 20:45:22 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 713C2AB8B; Mon, 17 Aug 2020 00:45:45 +0000 (UTC) From: Davidlohr Bueso To: akpm@linux-foundation.org Cc: oleg@redhat.com, axboe@kernel.dk, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: [PATCH -next 0/2] tasklist_lock vs get/set priority syscalls Date: Sun, 16 Aug 2020 17:31:46 -0700 Message-Id: <20200817003148.23691-1-dave@stgolabs.net> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is a (late) update on trying to reduce some of the scope of the tasklist_lock for get/setpriority(2) as well as the block io equivalent. This version addresses Oleg's previous concerns and incorporates his feedback. Changes from v1: https://lore.kernel.org/lkml/20200512000353.23653-1-dave@stgolabs.net/ - only take the lock for PGID cases. - drop bogus PF_EXITING checks (and live with the small exit race). - add patch for IOPRIO_WHO_PGRP. Please consider for v5.10. Thanks! Davidlohr Bueso (2): kernel/sys: only take tasklist_lock for get/setpriority(PRIO_PGRP) block: fix ioprio_get/set(IOPRIO_WHO_PGRP) vs setuid(2) block/ioprio.c | 4 ++++ kernel/sys.c | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) -- 2.26.2