01 Oct, 2009

1 commit

  • This provides safety against negative optlen at the type
    level instead of depending upon (sometimes non-trivial)
    checks against this sprinkled all over the the place, in
    each and every implementation.

    Based upon work done by Arjan van de Ven and feedback
    from Linus Torvalds.

    Signed-off-by: David S. Miller

    David S. Miller
     

29 Sep, 2009

1 commit

  • Commit cb3824bade2549d7ad059d5802da43312540fdee didn't fix this problem.

    Fix build errors in netjet, using isdnhdlc module:

    drivers/built-in.o: In function `mode_tiger':
    netjet.c:(.text+0x1ca0c7): undefined reference to `isdnhdlc_rcv_init'
    netjet.c:(.text+0x1ca0d4): undefined reference to `isdnhdlc_out_init'
    drivers/built-in.o: In function `fill_dma':
    netjet.c:(.text+0x1ca2bd): undefined reference to `isdnhdlc_encode'
    drivers/built-in.o: In function `read_dma':
    netjet.c:(.text+0x1ca614): undefined reference to `isdnhdlc_decode'
    drivers/built-in.o: In function `nj_irq':
    netjet.c:(.text+0x1cb07a): undefined reference to `isdnhdlc_encode'

    drivers/built-in.o: In function `isdnhdlc_decode':
    (.text+0x1c2088): undefined reference to `crc_ccitt_table'
    drivers/built-in.o: In function `isdnhdlc_encode':
    (.text+0x1c2339): undefined reference to `crc_ccitt_table'

    Signed-off-by: Randy Dunlap
    Signed-off-by: David S. Miller

    Randy Dunlap
     

23 Sep, 2009

1 commit

  • Make all seq_operations structs const, to help mitigate against
    revectoring user-triggerable function pointers.

    This is derived from the grsecurity patch, although generated from scratch
    because it's simpler than extracting the changes from there.

    Signed-off-by: James Morris
    Acked-by: Serge Hallyn
    Acked-by: Casey Schaufler
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    James Morris
     

22 Sep, 2009

2 commits

  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (34 commits)
    trivial: fix typo in aic7xxx comment
    trivial: fix comment typo in drivers/ata/pata_hpt37x.c
    trivial: typo in kernel-parameters.txt
    trivial: fix typo in tracing documentation
    trivial: add __init/__exit macros in drivers/gpio/bt8xxgpio.c
    trivial: add __init macro/ fix of __exit macro location in ipmi_poweroff.c
    trivial: remove unnecessary semicolons
    trivial: Fix duplicated word "options" in comment
    trivial: kbuild: remove extraneous blank line after declaration of usage()
    trivial: improve help text for mm debug config options
    trivial: doc: hpfall: accept disk device to unload as argument
    trivial: doc: hpfall: reduce risk that hpfall can do harm
    trivial: SubmittingPatches: Fix reference to renumbered step
    trivial: fix typos "man[ae]g?ment" -> "management"
    trivial: media/video/cx88: add __init/__exit macros to cx88 drivers
    trivial: fix typo in CONFIG_DEBUG_FS in gcov doc
    trivial: fix missing printk space in amd_k7_smp_check
    trivial: fix typo s/ketymap/keymap/ in comment
    trivial: fix typo "to to" in multiple files
    trivial: fix typos in comments s/DGBU/DBGU/
    ...

    Linus Torvalds
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

21 Sep, 2009

2 commits


20 Sep, 2009

1 commit

  • The tty_operation chars_in_buffer() is not allowed to return a negative
    value to signal an error. Corrects the problem flagged by commit
    23198fda7182969b619613a555f8645fdc3dc334, "tty: fix chars_in_buffers".

    Signed-off-by: Tilman Schmidt
    Cc: "David S. Miller"
    Cc: stable
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Tilman Schmidt
     

01 Sep, 2009

1 commit


13 Aug, 2009

1 commit


05 Aug, 2009

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (47 commits)
    ehea: Fix napi list corruption on ifconfig down
    igbvf: Allow VF driver to correctly recognize failure to set mac
    3c59x: Fix build failure with gcc 3.2
    sky2: Avoid transmits during sky2_down()
    iwlagn: do not send key clear commands when rfkill enabled
    libertas: Read buffer overflow
    drivers/net/wireless: introduce missing kfree
    drivers/net/wireless/iwlwifi: introduce missing kfree
    zd1211rw: fix unaligned access in zd_mac_rx
    cfg80211: fix regression on beacon world roaming feature
    cfg80211: add two missing NULL pointer checks
    ixgbe: Patch to modify 82598 PCIe completion timeout values
    bluetooth: rfcomm_init bug fix
    mlx4_en: Fix double pci unmapping.
    mISDN: Fix handling of receive buffer size in L1oIP
    pcnet32: VLB support fixes
    pcnet32: remove superfluous NULL pointer check in pcnet32_probe1()
    net: restore the original spinlock to protect unicast list
    netxen: fix coherent dma mask setting
    mISDN: Read buffer overflow
    ...

    Linus Torvalds
     

03 Aug, 2009

2 commits

  • The size of receive buffer pointer was used to get size of
    receive buffer instead of recvbuf_size itself, so only 4/8
    bytes could be transfered.

    This is a regression to 2.6.30 introduced by commit 8c90e11e3543d7de612194a042a148caeaab5f1d
    mISDN: Use kernel_{send,recv}msg instead of open coding

    Signed-off-by: Andreas Eversberg
    Signed-off-by: Karsten Keil
    Signed-off-by: David S. Miller

    Andreas Eversberg
     
  • Check whether index is within bounds before testing the element.

    Signed-off-by: Roel Kluin
    Acked-by: Karsten Keil
    Signed-off-by: David S. Miller

    roel kluin
     

29 Jul, 2009

1 commit

  • The size of receive buffer pointer was used to get size of
    receive buffer instead of recvbuf_size itself, so only 4/8
    bytes could be transfered.

    This is a regression to 2.6.30 introduced by commit
    8c90e11e3543d7de612194a042a148caeaab5f1d ("mISDN: Use
    kernel_{send,recv}msg instead of open coding")

    Signed-off-by: Andreas Eversberg
    Signed-off-by: Karsten Keil
    Signed-off-by: Linus Torvalds

    Andreas Eversberg
     

27 Jul, 2009

2 commits


26 Jul, 2009

13 commits


21 Jul, 2009

1 commit

  • This function does not have an error return and returning an error is
    instead interpreted as having a lot of pending bytes.

    Reported by Jeff Harris who provided a list of some of the remaining
    offenders.

    Signed-off-by: Alan Cox
    Signed-off-by: Linus Torvalds

    Alan Cox
     

13 Jul, 2009

1 commit

  • * Remove smp_lock.h from files which don't need it (including some headers!)
    * Add smp_lock.h to files which do need it
    * Make smp_lock.h include conditional in hardirq.h
    It's needed only for one kernel_locked() usage which is under CONFIG_PREEMPT

    This will make hardirq.h inclusion cheaper for every PREEMPT=n config
    (which includes allmodconfig/allyesconfig, BTW)

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

06 Jul, 2009

2 commits


03 Jul, 2009

2 commits


17 Jun, 2009

1 commit

  • Fix up remaining drivers returning a magic or an errno value from their
    ndo_start_xmit() functions that were missed in the first pass:

    - isdn_net: missed conversion
    - bpqether: missed conversion: skb is freed, so return NETDEV_TX_OK
    - hp100: intention appears to be to resubmit skb once resources are
    available, but due to no queue handling it is dropped for now.
    - lapbether: skb is freed, so return NETDEV_TX_OK

    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Patrick McHardy
     

15 Jun, 2009

1 commit


13 Jun, 2009

3 commits