Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753151AbcCLAoU (ORCPT ); Fri, 11 Mar 2016 19:44:20 -0500 Received: from mail-ig0-f196.google.com ([209.85.213.196]:36701 "EHLO mail-ig0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbcCLAoR (ORCPT ); Fri, 11 Mar 2016 19:44:17 -0500 MIME-Version: 1.0 In-Reply-To: <20160312003556.GF32214@thunk.org> References: <20160309230819.GB3949@thunk.org> <56E18B9B.5070503@gmail.com> <56E24CA5.3030702@redhat.com> <20160311135952.57a44931@lxorguk.ukuu.org.uk> <20160311223047.GZ30721@dastard> <20160312003556.GF32214@thunk.org> Date: Fri, 11 Mar 2016 16:44:16 -0800 X-Google-Sender-Auth: Gn0FhnxGzUGh_FOAB6r1xFPSwRg Message-ID: Subject: Re: [PATCH 2/2] block: create ioctl to discard-or-zeroout a range of blocks From: Linus Torvalds To: "Theodore Ts'o" , Dave Chinner , Linus Torvalds , Andy Lutomirski , One Thousand Gnomes , Ric Wheeler , Gregory Farnum , "Martin K. Petersen" , Christoph Hellwig , "Darrick J. Wong" , Jens Axboe , Andrew Morton , Linux API , Linux Kernel Mailing List , shane.seymour@hpe.com, Bruce Fields , linux-fsdevel , Jeff Layton , Eric Sandeen Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 748 Lines: 18 On Fri, Mar 11, 2016 at 4:35 PM, Theodore Ts'o wrote: > > At the end of the day it's about whether you trust the userspace > program or not. There's a big difference between "give the user rope", and "tie the rope in a noose and put a banana peel so that the user might stumble into the rope and hang himself", though. So I do think that Dave is right that we should also strive to make sure that our interfaces are not just secure in theory, but that they are also good interfaces to make mistakes less likely. I think we _should_ give users rope, but maybe we should also make sure that there isn't some hidden rapidly spinning saw-blade right next to the rope that the user doesn't even think about. Linus