03 Jul, 2006

1 commit


30 Jun, 2006

7 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (30 commits)
    [TIPC]: Initial activation message now includes TIPC version number
    [TIPC]: Improve response to requests for node/link information
    [TIPC]: Fixed skb_under_panic caused by tipc_link_bundle_buf
    [IrDA]: Fix the AU1000 FIR dependencies
    [IrDA]: Fix RCU lock pairing on error path
    [XFRM]: unexport xfrm_state_mtu
    [NET]: make skb_release_data() static
    [NETFILTE] ipv4: Fix typo (Bugzilla #6753)
    [IrDA]: MCS7780 usb_driver struct should be static
    [BNX2]: Turn off link during shutdown
    [BNX2]: Use dev_kfree_skb() instead of the _irq version
    [ATM]: basic sysfs support for ATM devices
    [ATM]: [suni] change suni_init to __devinit
    [ATM]: [iphase] should be __devinit not __init
    [ATM]: [idt77105] should be __devinit not __init
    [BNX2]: Add NETIF_F_TSO_ECN
    [NET]: Add ECN support for TSO
    [AF_UNIX]: Datagram getpeersec
    [NET]: Fix logical error in skb_gso_ok
    [PKT_SCHED]: PSCHED_TADD() and PSCHED_TADD2() can result,tv_usec >= 1000000
    ...

    Linus Torvalds
     
  • This patch implements an API whereby an application can determine the
    label of its peer's Unix datagram sockets via the auxiliary data mechanism of
    recvmsg.

    Patch purpose:

    This patch enables a security-aware application to retrieve the
    security context of the peer of a Unix datagram socket. The application
    can then use this security context to determine the security context for
    processing on behalf of the peer who sent the packet.

    Patch design and implementation:

    The design and implementation is very similar to the UDP case for INET
    sockets. Basically we build upon the existing Unix domain socket API for
    retrieving user credentials. Linux offers the API for obtaining user
    credentials via ancillary messages (i.e., out of band/control messages
    that are bundled together with a normal message). To retrieve the security
    context, the application first indicates to the kernel such desire by
    setting the SO_PASSSEC option via getsockopt. Then the application
    retrieves the security context using the auxiliary data mechanism.

    An example server application for Unix datagram socket should look like this:

    toggle = 1;
    toggle_len = sizeof(toggle);

    setsockopt(sockfd, SOL_SOCKET, SO_PASSSEC, &toggle, &toggle_len);
    recvmsg(sockfd, &msg_hdr, 0);
    if (msg_hdr.msg_controllen > sizeof(struct cmsghdr)) {
    cmsg_hdr = CMSG_FIRSTHDR(&msg_hdr);
    if (cmsg_hdr->cmsg_len cmsg_level == SOL_SOCKET &&
    cmsg_hdr->cmsg_type == SCM_SECURITY) {
    memcpy(&scontext, CMSG_DATA(cmsg_hdr), sizeof(scontext));
    }
    }

    sock_setsockopt is enhanced with a new socket option SOCK_PASSSEC to allow
    a server socket to receive security context of the peer.

    Testing:

    We have tested the patch by setting up Unix datagram client and server
    applications. We verified that the server can retrieve the security context
    using the auxiliary data mechanism of recvmsg.

    Signed-off-by: Catherine Zhang
    Acked-by: Acked-by: James Morris
    Signed-off-by: David S. Miller

    Catherine Zhang
     
  • Happily, life is much simpler on 32-bit sparc systems.
    The "intr" property, preferred over the "interrupts"
    property is used-as. Some minor translations of this
    value happen on sun4d systems.

    The stage is now set to rewrite the sparc serial driver
    probing to use the of_driver framework, and then to convert
    all SBUS, EBUS, and ISA drivers in-kind so that we can nuke
    all those special bus frameworks.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     
  • The idea is to fully construct the device register and
    interrupt values into these of_device objects, and convert
    all of SBUS, EBUS, ISA drivers to use this new stuff.

    Much ideas and code taken from Ben H.'s powerpc work.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Signed-off-by: David S. Miller

    David S. Miller
     

26 Jun, 2006

3 commits


24 Jun, 2006

4 commits


23 Jun, 2006

1 commit

  • Correct the return type of handle_IRQ_event() (inconsistency noticed during
    Xen development), and remove redundant declarations. The return type
    adjustment required breaking out the definition of irqreturn_t into a
    separate header, in order to satisfy current include order dependencies.

    Signed-off-by: Jan Beulich

    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Russell King
    Cc: Ian Molton
    Cc: Mikael Starvik
    Cc: Yoshinori Sato
    Cc: Hirokazu Takata
    Cc: Heiko Carstens
    Cc: Martin Schwidefsky
    Cc: William Lee Irwin III
    Cc: "David S. Miller"
    Cc: Miles Bader
    Cc: Geert Uytterhoeven
    Cc: Roman Zippel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Beulich
     

21 Jun, 2006

1 commit

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Update defconfig.
    [SPARC64]: Don't double-export synchronize_irq.
    [SPARC64]: Move over to GENERIC_HARDIRQS.
    [SPARC64]: Virtualize IRQ numbers.
    [SPARC64]: Kill ino_bucket->pil
    [SPARC]: Kill __irq_itoa().
    [SPARC64]: bp->pil can never be zero
    [SPARC64]: Send all device interrupts via one PIL.
    [SPARC]: Fix iommu_flush_iotlb end address
    [SPARC]: Mark smp init functions as cpuinit
    [SPARC]: Add missing rw can_lock macros
    [SPARC]: Setup cpu_possible_map
    [SPARC]: Add topology_init()

    Linus Torvalds
     

20 Jun, 2006

3 commits

  • This ugly hack was long overdue to die.

    It was a way to print out Sparc interrupts in a more freindly format,
    since IRQ numbers were arbitrary opaque 32-bit integers which vectored
    into PIL levels. These 32-bit integers were not necessarily in the
    0-->NR_IRQS range, but the PILs they vectored to were.

    The idea now is that we will increase NR_IRQS a little bit and use a
    virtualreal IRQ number mapping scheme similar to PowerPC.

    That makes this IRQ printing hack irrelevant, and furthermore only a
    handful of drivers actually used __irq_itoa() making it even less
    useful.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • Fix a link failure by adding the missing can_lock macros for the rw
    locks.

    Signed-off-by: Bob Breuer
    Signed-off-by: David S. Miller

    Bob Breuer
     
  • Setup cpu_possible_map so the secondary cpus will get started.

    Signed-off-by: Bob Breuer
    Signed-off-by: David S. Miller

    Bob Breuer
     

24 May, 2006

1 commit


22 May, 2006

1 commit


07 May, 2006

1 commit


04 May, 2006

1 commit


29 Apr, 2006

1 commit


26 Apr, 2006

1 commit


25 Apr, 2006

1 commit


20 Apr, 2006

1 commit


15 Apr, 2006

1 commit


11 Apr, 2006

1 commit

  • sparc32 lacks vga.h, so lots of fbdev drivers won't compile. There are no
    sparc32 systems with PCI slots, so it's a bit moot.

    The patch gives sparc32 a copy of the sparc64 vga.h. It fixes sparc32
    allmodconfig without mucking up fbdev Kconfig and gives us wider compile
    coverage.

    Cc: "Antonino A. Daplas"
    Acked-by: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     

01 Apr, 2006

2 commits


28 Mar, 2006

1 commit


27 Mar, 2006

2 commits

  • - remove __{,test_and_}{set,clear,change}_bit() and test_bit()
    - remove ffz()
    - remove __ffs()
    - remove sched_find_first_bit()
    - remove ffs()
    - remove generic_fls()
    - remove generic_fls64()
    - remove generic_hweight{32,16,8}()
    - remove find_{next,first}{,_zero}_bit()
    - remove ext2_{set,clear,test,find_first_zero,find_next_zero}_bit()
    - remove ext2_{set,clear}_bit_atomic()
    - remove minix_{test,set,test_and_clear,test,find_first_zero}_bit()

    Signed-off-by: Akinobu Mita
    Cc: William Lee Irwin III
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     
  • Bitmap functions for the minix filesystem and the ext2 filesystem except
    ext2_set_bit_atomic() and ext2_clear_bit_atomic() do not require the atomic
    guarantees.

    But these are defined by using atomic bit operations on several architectures.
    (cris, frv, h8300, ia64, m32r, m68k, m68knommu, mips, s390, sh, sh64, sparc,
    sparc64, v850, and xtensa)

    This patch switches to non atomic bit operation.

    Signed-off-by: Akinobu Mita
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

26 Mar, 2006

2 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC]: Try to start getting SMP back into shape.

    Linus Torvalds
     
  • Implement the half-closed devices notifiation, by adding a new POLLRDHUP
    (and its alias EPOLLRDHUP) bit to the existing poll/select sets. Since the
    existing POLLHUP handling, that does not report correctly half-closed
    devices, was feared to be changed, this implementation leaves the current
    POLLHUP reporting unchanged and simply add a new bit that is set in the few
    places where it makes sense. The same thing was discussed and conceptually
    agreed quite some time ago:

    http://lkml.org/lkml/2003/7/12/116

    Since this new event bit is added to the existing Linux poll infrastruture,
    even the existing poll/select system calls will be able to use it. As far
    as the existing POLLHUP handling, the patch leaves it as is. The
    pollrdhup-2.6.16.rc5-0.10.diff defines the POLLRDHUP for all the existing
    archs and sets the bit in the six relevant files. The other attached diff
    is the simple change required to sys/epoll.h to add the EPOLLRDHUP
    definition.

    There is "a stupid program" to test POLLRDHUP delivery here:

    http://www.xmailserver.org/pollrdhup-test.c

    It tests poll(2), but since the delivery is same epoll(2) will work equally.

    Signed-off-by: Davide Libenzi
    Cc: "David S. Miller"
    Cc: Michael Kerrisk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davide Libenzi
     

24 Mar, 2006

1 commit

  • Todo items:
    - IRQ_INPROGRESS flag - use sparc64 irq buckets, or generic irq_desc?
    - sun4d
    - re-indent large chunks of sun4m_smp.c
    - some places assume sequential cpu numbering (i.e. 0,1 instead of 0,2)

    Last I checked (with 2.6.14), random programs segfault with dual
    HyperSPARC. And with SuperSPARC II's, it seems stable but will
    eventually die from a write lock error (wrong lock owner or something).

    I haven't tried the HyperSPARC + highmem combination recently, so that
    may still be a problem.

    Signed-off-by: David S. Miller

    Bob Breuer
     

22 Mar, 2006

1 commit


21 Mar, 2006

1 commit