News for hackers. Stuff that matters.
Re:Is Redlock Safe? Reply to Redlock Analysis by viraptor on Tuesday February 09, 2016 @05:08PM (#11069190)
But your "write" action is separate from the "X.currlock" operations, right?

Doesn't it mean that this can happen?

    A: X.currlock = Token_ID_A
    A: resource read
    A: is X.currlock still Token_ID_A? yes
    B: X.currlock = Token_ID_B
    B: resource read
    B: is X.currlock still Token_ID_B? yes
    B: resource write
    A: resource write
Is there anything that makes the "write-if-currlock == token" operation atomic?
Re:Is Redlock Safe? Reply to Redlock Analysis by tptacek on Tuesday February 09, 2016 @05:20PM (#11069279)
Yes: it turns out, he's stipulating a single server, in which case this is a trivial feature to build. The problem then is, if you're willing to have that single point of failure, you don't need a lock service at all.