lkml.org 
[lkml]   [2015]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] netlink: Replace rhash_portid with bound
Hello,

On Thu, Sep 24, 2015 at 10:54:36AM +0800, Herbert Xu wrote:
> What I am concerned about is the next guy who comes along and
> does a rewrite like the one that introduced the netlink_bind
> bug. That person needs to fully understand what each primitive
> is protecting against.
>
> Using primitives where they're not needed can lead to misunderstandings
> which may end up causing bugs.

I think this is where we're not agreeing. My point is that better
understanding and lower likelihood of bug doesn't equate specializing
each usage site. That's a lot more likely to lead to unnecessary
cognition overhead and naturally errors. There's no reason to require
such error-prone and specific understanding of each usage site when we
can have agreed-upon abstractions which yield invariants which are a
lot easier for people to wrap their heads around.

This isn't an isolated one-off barrier hack. This is a
well-established pattern and sure there are cases we wanna deconstruct
that and make exceptions but that needs to be justifiable. The
overhead gotta buy us something. Here it just doesn't.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2015-09-24 05:21    [W:0.108 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site