• Stefan Richter's avatar
    firewire: cdev: restrict broadcast write requests to Units Space · 1566f3dc
    Stefan Richter authored
    We don't want random users write to Memory Space (e.g. PCs with physical
    DMA filters down) or to core CSRs like Reset_Start.
    
    This does not protect SBP-2 target CSRs.  But properly behaving SBP-2
    targets ignore broadcast write requests to these registers, and the
    maximum damage which can happen with laxer targets is DOS.  But there
    are ways to create DOS situations anyway if there are devices with weak
    device file permissions (like audio/video devices) present at the same
    bus as an SBP-2 target.
    Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
    1566f3dc
fw-cdev.c 35.8 KB