Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp640993ybx; Wed, 6 Nov 2019 06:17:39 -0800 (PST) X-Google-Smtp-Source: APXvYqz40ieo+yfF1TQh96dEliKfcDYIbyZJ1dbcdJXWi6KQoT5NQAL8ATy76lJ4IF/ldhO0AZF9 X-Received: by 2002:aa7:c44a:: with SMTP id n10mr2851312edr.282.1573049859611; Wed, 06 Nov 2019 06:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573049859; cv=none; d=google.com; s=arc-20160816; b=TO6xhcMGIHqsNNQowFdasY6KP719dwJiaPM07MRP/CS8YvM9wUZQc6K7lGSbUH5AVf +fyoRb8Soq+S92jQEksp/ySBW0IlJo8OM07gcHkVOwjEPL/Ide84MQU+2KlCVEmQQjFa qkbxGhfEEYv8ZWl6lHw8PE7/cqOF3HOamVhORYIAO18jrJLcyAIt/ohUbRwxrfvl4mdg S08saPElhUsJufHQsnWeXmxe9Y+lVUx03pKQ+0g1f5KluYzgSW8hgQHF7ZXxKs2r7Qoy G2xmE/tsRQYAFk56L63ngtyDd1QjmhDdFbZMKoGoyzKRBfcZ85y1vXoNZjaYtGQJMdW0 4tkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=fb1ARWKRKHIN6Pz/B+3MqnSemQTdwYkLn+4GidJKp2g=; b=p+mXzSXJKzgLabI12H+UaczZtL6svl4kb1wxDAYG+JI0dNr3kTbL4DvfuI5WwcXOnT 3N2Vwgs26fi7y6u7sWJLqLrhecg8ZN0gvmsp6ybpIFhCwjWAfGC5WOT/enIRRZ0yIeyg 9zYGmFtzvRmWWFQKaQXgUh0Xpgk3UGRB2X4Ur48EP+e/bSMVYfAIwjXssGfK6TmoolAY di1lc+Nl7OPViCwc4l58gqeLuuR+6y460c8opT+iavwfwHtxN81CXOSSrvJFpdlU8Z4X fyAggv+pcPwKh1gS1Kl4N+zdB6oWrFkcoiWLBvgC/0QmvrznfDtg26alWzBvhbT07ADd 8r1g== 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 gz10si5225246ejb.32.2019.11.06.06.17.15; Wed, 06 Nov 2019 06:17:39 -0800 (PST) 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 S1731910AbfKFOQc (ORCPT + 99 others); Wed, 6 Nov 2019 09:16:32 -0500 Received: from l2mail1.panix.com ([166.84.1.75]:50702 "EHLO l2mail1.panix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727478AbfKFOQb (ORCPT ); Wed, 6 Nov 2019 09:16:31 -0500 X-Greylist: delayed 926 seconds by postgrey-1.27 at vger.kernel.org; Wed, 06 Nov 2019 09:16:30 EST Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by l2mail1.panix.com (Postfix) with ESMTPS id 477Sqj3NDGzFGw; Wed, 6 Nov 2019 09:01:05 -0500 (EST) Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) by mailbackend.panix.com (Postfix) with ESMTPSA id 477Sqh2bHWz14BZ; Wed, 6 Nov 2019 09:01:04 -0500 (EST) Received: by mail-io1-f51.google.com with SMTP id k1so15264588ioj.6; Wed, 06 Nov 2019 06:01:03 -0800 (PST) X-Gm-Message-State: APjAAAW30bdjrwoPxeQ+iEMF8z1CV67HC3DFxqmDKz/ZNvREcNfUWjOF nRA2UU0sLTo0hTmRxJ/RDCtYUe0MXyqs+ilgIds= X-Received: by 2002:a5d:9ecd:: with SMTP id a13mr20356555ioe.270.1573048863570; Wed, 06 Nov 2019 06:01:03 -0800 (PST) MIME-Version: 1.0 References: <20191104002909.25783-1-shawn@git.icu> <87woceslfs.fsf@oldenburg2.str.redhat.com> <87sgn2skm6.fsf@oldenburg2.str.redhat.com> In-Reply-To: From: Zack Weinberg Date: Wed, 6 Nov 2019 09:00:51 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC v2 PATCH] futex: extend set_robust_list to allow 2 locking ABIs at the same time. To: Thomas Gleixner Cc: "Carlos O'Donell" , Florian Weimer , Shawn Landden , GNU C Library , linux-api@vger.kernel.org, LKML , Arnd Bergmann , Deepa Dinamani , Oleg Nesterov , Andrew Morton , Catalin Marinas , Keith Packard , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 5, 2019 at 9:28 AM Thomas Gleixner wrote: > > The real issue is that the robust list could be circular by incident or > malice and there is no way for the kernel to figure that out. That would > prevent the task from exiting and make it iterate over the list until > doomsday, i.e. a nice unpriviledged DoS. Why can't the kernel use the standard tortoise-and-hare algorithm for detecting circular linked lists here? zw