• Andrew Morton's avatar
    [PATCH] Fixes in 32 bit ioctl emulation code · a4855831
    Andrew Morton authored
    From: Raghavan <raghav@in.ibm.com>,
          me
    
    I am submitting a patch that fixes 2 race conditions in the 32 bit ioctl
    emulation code.(fs/compat.c) Since the search is not locked; when a
    ioctl_trans structure is deleted, corruption can occur.
    
    The following scenarios discuss the race conditions:
    
    1) When the search is hapenning, if any ioctl_trans structure gets
       deleted; then rather than searching the hash table, the code will start
       searching the free list.
    
    while (t && t->cmd != cmd)
            -
    a4855831
compat.c 18.6 KB