Changeset 12194


Ignore:
Timestamp:
05/21/09 20:25:10 (4 years ago)
Author:
BrainSlayer
Message:

update to 2.4.37.1

Location:
src/linux/brcm/linux.v24_2
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • src/linux/brcm/linux.v24_2/include/linux/capability.h

    r8761 r12194  
    9999 
    100100#define CAP_FSETID           4 
    101  
    102 /* Used to decide between falling back on the old suser() or fsuser(). */ 
    103  
    104 #define CAP_FS_MASK          0x1f 
    105101 
    106102/* Overrides the restriction that the real or effective user ID of a 
     
    302298#endif 
    303299 
     300/* Used to decide between falling back on the old suser() or fsuser(). */ 
     301 
     302#define CAP_FS_MASK     (CAP_TO_MASK(CAP_CHOWN)                 \ 
     303                        | CAP_TO_MASK(CAP_DAC_OVERRIDE)         \ 
     304                        | CAP_TO_MASK(CAP_DAC_READ_SEARCH)      \ 
     305                        | CAP_TO_MASK(CAP_FOWNER)               \ 
     306                        | CAP_TO_MASK(CAP_FSETID)               \ 
     307                        | CAP_TO_MASK(CAP_LINUX_IMMUTABLE)      \ 
     308                        | CAP_TO_MASK(CAP_MKNOD)) 
     309 
    304310#define CAP_EMPTY_SET       to_cap_t(0) 
    305311#define CAP_FULL_SET        to_cap_t(~0) 
  • src/linux/brcm/linux.v24_2/include/net/af_unix.h

    r8761 r12194  
    66typedef struct sock unix_socket; 
    77extern void unix_gc(void); 
     8extern void wait_for_unix_gc(void); 
    89 
    910#define UNIX_HASH_SIZE  256 
  • src/linux/brcm/linux.v24_2/kernel/exit.c

    r8761 r12194  
    372372        if(current->exit_signal != SIGCHLD && 
    373373            ( current->parent_exec_id != t->self_exec_id  || 
    374               current->self_exec_id != current->parent_exec_id)  
    375             && !capable(CAP_KILL)) 
     374              current->self_exec_id != current->parent_exec_id)) 
    376375                current->exit_signal = SIGCHLD; 
    377376 
  • src/linux/brcm/linux.v24_2/kernel/fork.c

    r8761 r12194  
    768768        p->semundo = NULL; 
    769769         
    770         /* Our parent execution domain becomes current domain 
    771            These must match for thread signalling to apply */ 
    772             
    773         p->parent_exec_id = p->self_exec_id; 
    774  
    775770        /* ok, now we should be set up.. */ 
    776771        p->swappable = 1; 
     
    807802        if (!(clone_flags & CLONE_PARENT)) { 
    808803                p->p_opptr = current; 
     804                p->parent_exec_id = p->self_exec_id; 
    809805                if (!(p->ptrace & PT_PTRACED)) 
    810806                        p->p_pptr = current; 
  • src/linux/brcm/linux.v24_2/net/atm/svc.c

    r8761 r12194  
    319319                goto out; 
    320320        } 
     321        if (test_bit(ATM_VF_LISTEN, &vcc->flags)) { 
     322                error = -EADDRINUSE; 
     323                goto out; 
     324        } 
    321325        vcc->reply = WAITING; 
    322326        add_wait_queue(&vcc->sleep,&wait); 
  • src/linux/brcm/linux.v24_2/net/ipv4/netfilter/ipt_ROUTE.c

    r8761 r12194  
    392392static int __init init(void) 
    393393{ 
     394                DEBUGP(KERN_ERR "registering ipt_ROUTE\n"); 
    394395        /* Set up fake conntrack (stolen from raw.patch): 
    395396            - to never be deleted, not in any hashes */ 
     
    407408 
    408409        if (ipt_register_target(&ipt_route_reg)) 
     410                { 
     411                DEBUGP(KERN_ERR "error while registering target ROUTE\n"); 
    409412                return -EINVAL; 
     413                } 
    410414 
    411415        return 0; 
  • src/linux/brcm/linux.v24_2/net/netrom/af_netrom.c

    r8761 r12194  
    10431043        SOCK_DEBUG(sk, "NET/ROM: sendto: Addresses built.\n"); 
    10441044 
    1045         /* Build a packet */ 
     1045        /* Build a packet - the conventional user limit is 236 bytes. We can 
     1046           do ludicrously large NetROM frames but must not overflow */ 
     1047        if (len > 65536) 
     1048                return -EMSGSIZE; 
     1049 
    10461050        SOCK_DEBUG(sk, "NET/ROM: sendto: building packet.\n"); 
    10471051        size = len + AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + NR_NETWORK_LEN + NR_TRANSPORT_LEN; 
  • src/linux/brcm/linux.v24_2/net/rose/af_rose.c

    r8761 r12194  
    10641064        /* Build a packet */ 
    10651065        SOCK_DEBUG(sk, "ROSE: sendto: building packet.\n"); 
     1066        /* Sanity check the packet size */ 
     1067        if (len > 65535) 
     1068                return -EMSGSIZE; 
     1069 
    10661070        size = len + AX25_BPQ_HEADER_LEN + AX25_MAX_HEADER_LEN + ROSE_MIN_LEN; 
    10671071 
  • src/linux/brcm/linux.v24_2/net/unix/af_unix.c

    r8761 r12194  
    375375                        sk_wake_async(skpair,1,POLL_HUP); 
    376376                        read_unlock(&skpair->callback_lock); 
     377                        yield(); /* let the other side wake up */ 
    377378                } 
    378379                sock_put(skpair); /* It may now die */ 
     
    11621163        long timeo; 
    11631164 
     1165        wait_for_unix_gc(); 
     1166 
    11641167        err = -EOPNOTSUPP; 
    11651168        if (msg->msg_flags&MSG_OOB) 
     
    12911294        struct sk_buff *skb; 
    12921295        int sent=0; 
     1296 
     1297        wait_for_unix_gc(); 
    12931298 
    12941299        err = -EOPNOTSUPP; 
  • src/linux/brcm/linux.v24_2/net/unix/garbage.c

    r8761 r12194  
    7878#include <linux/proc_fs.h> 
    7979#include <linux/tcp.h> 
     80#include <linux/wait.h> 
    8081 
    8182#include <net/sock.h> 
     
    8990 
    9091static unix_socket *gc_current=GC_HEAD; /* stack of objects to mark */ 
     92 
     93static DECLARE_WAIT_QUEUE_HEAD(unix_gc_wait); 
    9194 
    9295atomic_t unix_tot_inflight = ATOMIC_INIT(0); 
     
    164167 
    165168 
     169static int gc_in_progress; 
     170 
     171void wait_for_unix_gc(void) 
     172{ 
     173        wait_event(unix_gc_wait, gc_in_progress == 0); 
     174} 
     175 
    166176/* The external entry point: unix_gc() */ 
    167177 
     
    180190        if (down_trylock(&unix_gc_sem)) 
    181191                return; 
     192 
     193        if (gc_in_progress) 
     194                goto out; 
     195 
     196        gc_in_progress = 1; 
    182197 
    183198        read_lock(&unix_table_lock); 
     
    307322 
    308323        __skb_queue_purge(&hitlist); 
     324        gc_in_progress = 0; 
     325        wake_up(&unix_gc_wait); 
     326 out: 
    309327        up(&unix_gc_sem); 
    310328} 
  • src/linux/brcm/linux.v24_2/net/x25/af_x25.c

    r8761 r12194  
    906906        } 
    907907 
     908        /* Sanity check the packet size */ 
     909        if (len > 65535) 
     910                return -EMSGSIZE; 
     911 
    908912        SOCK_DEBUG(sk, "x25_sendmsg: sendto: Addresses built.\n"); 
    909913 
Note: See TracChangeset for help on using the changeset viewer.