1. 19 Jan, 2004 40 commits
    • Andrew Morton's avatar
      [PATCH] s390: zfcp host adapter · 2eb6e1f3
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
       - Adapt to notify api change in cio.
       - Add missing unregister_reboot_notifier() for error path.
       - Fix infinite error recovery escalation for certain port failures.
       - Fix reference counting.
       - Use GFP_ATOMIC for kmalloc while holding a spinlock.
       - Don't open adapter/port if unit/port is removed from configuration
         after it has already been closed.
       - Don't establish qdio queues if a port/unit is going to be removed.
       - Shutdown ports and units before removing them.
       - Use schedule_work for scsi_add_device.
       - Don't reopen nameserver port when an rscn was received.
       - Don't call scsi_done twice in zfcp_fsf_send_fcp_command_task_handler.
       - Get rid of scsi fake queue, scsi_reqs_active and scsi_reqs_active_wq.
       - Get rid of unused adapter status.
       - Allow enabling of scsi devices at boot time with zfcp_dev parameter.
       - Change name prefix from sg to sg_list for functions which work with
         the struct sg_list.
       - Don't call scsi_add_device from zfcp error recovery thread to avoid a
         deadlock if a scsi command sent during scsi_add_device fails.
       - Fix scsi i/o stall due to missing local-link-up event.
      2eb6e1f3
    • Andrew Morton's avatar
      [PATCH] s390: network drivers · 99e0846e
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
       - ctc/iucv: Add module author/description/license to fsm.c
       - ctc/lcs/iucv/qeth: Remove dst_link_failure calls because they can
         trigger a BUG in icmp.c.
       - ctc/iucv/qeth: Use s390_root_dev_{register,unregister} to fix reference
         counting for the group device sysfs root object.
       - ctc/lcs/qeth: Fix ccwgroup behaviour, remove should not imply offline.
       - ctc: Adapt to notify api change in cio.
       - ctc: Remove duplicate put_user.
       - iucv: Fix oops with empty netiucv peer name.
       - iucv: Use GFP_ATOMIC for kmalloc from tasklet.
       - iucv: Fix removal of attritubes.
       - qeth: Use correct length in clearing of MAC address.
       - qeth: Queue multicast and broadcast packets into the last
         queue on HiperSocket.
       - qeth: Reenable send control data after i/o error.
       - qeth: Find correct recbuf in qeth_send_control_data.
       - qeth: Handle VM startlan disabled.
       - qeth: Set flags for vipa entries.
       - qeth: Correct netmask on vipa setting.
       - qeth: Fix spinlock problems ("scheduling while atomic").
       - qeth: Avoid setting multicast IP addresses several times.
       - qeth: Fix /proc/qeth format.
       - qeth: Fix race on device removal.
      99e0846e
    • Andrew Morton's avatar
      [PATCH] s390: tape driver. · 08f64b97
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
       - Add module license gpl.
       - Add debug messages.
       - Make blocksize persistent after close. Limit blocksize to 64k.
       - Check tape state against TS_INIT/TS_UNUSED for special case of
         medium sense and assign.
       - Assign tape as soon as they are set online and unassign when set offline.
       - Correct implementation of MT_EOD.
       - Add backward compatible tape.agent hotplug support (to be removed as soon
         as a full blown tape class is implemented).
       - Add state to differentiate between character device and block device access.
       - Make tape block device usable.
       - Add 34xx seek speedup code.
       - Fix device reference counting.
       - Fix online-offline-online cycle.
       - Add timeout to standard assign function.
       - Correct calculation of device index in tape_get_device().
       - Check idal buffer for fixed block size reads and writes.
       - Adapt to notify api change in cio.
       - Add sysfs attributes for tape state, first minor, current operation and
         current blocksize.
      08f64b97
    • Andrew Morton's avatar
      [PATCH] s390: dasd driver · 21df060f
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
       - Fix interrupt status examination.
       - Make dasd device attributes dependent on the devmap structure instead of
         the device structure to make them persistent and to be able to modify
         them in the offline state.
       - Allow changing the readonly attribute while dasd is online.
       - Add (diag) option to dasd= paramter.
       - Add missing spin_lock_init call.
       - Increase ref_count in dasd_device_from_cdev and add matching
         dasd_put_device pairs.
       - Adapt to notify api change in cio.
       - Fix bug in 3990 error recovery for cable pulls on ESS.
       - Replace kmap by page_address (no highmem on s/390).
       - Set correct default cache mode on ESS for eckd devices.
       - Change dasd names from "dasdx" to "dasd_<busid>_".
      21df060f
    • Andrew Morton's avatar
      [PATCH] s390: console driver. · b2b9268a
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
      - 3215: Adapt to notify api change in cio.
      - 3215/sclp: move copy_from_user out of locked code.
      b2b9268a
    • Andrew Morton's avatar
      [PATCH] s390: common i/o layer · 53e7ea7f
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
       - Make blacklist busid-aware. Add "all" keyword and ! operator to cio_ignore
         kernel parameter.
       - Add state change notify function for ccw devices (not mandatory) and
         introduce the "device disconnected" state.
       - Remove auto offline from remove function for ccw devices to be able to
         distinguish between user initiated offline and implicit offline due to
         device removal.
       - Store pointer to subchannel structure in the (hardware) subchannel intparm
         and remove the ioinfo array (hurray...). Remove intparm parameter of
         cio_start.
       - Use busid instead of subchannel number for debug output.
       - Use an opm mask to track which paths are logically online for a subchannel.
       - Pathgroup every device it was requested for, even single path devices.
       - Give i/o on a logically switched off path a grace period to complete, then
         kill the i/o to get the path offline.
       - Correctly initialize all spin_locks with spin_lock_init.
       - Handle status pending/busy while disabling subchannel.
       - Set busid already in cio_validate_subchannel.
       - Add s390_root_dev_{register,unregister} functions.
       - Do stcrw() inside a kernel thread. Add crw overflow handling.
       - Use subchannel lock directly instead of ccw device lock pointer in
         ccw_device_recognition to avoid accessing an already free structure.
       - Take/release ccw device lock in ccw_device_console_enable.
       - Don't wipe out the busid field in ccw_device_console_enable.
       - Call ccw_device_unregister() directly on a notoper event - delaying it via
         queue_work is harmful (subchannel may be removed before ccw_device).
       - Handle not opertional condition in ccw_device_cancel_halt_clear.
       - Correct status pending handling: don't collect pending status directly
         but wait for the interrupt to show up.
       - Enable subchannel when trying a steal lock operation.
       - Introduce doverify bit for delayed path verification.
       - Fix locking in __ccw_device_retry_loop/read_conf_data/read_dev/chars.
       - Make SPID retry mechanism more obvious.
       - qdio: check return code of ccw_device_{halt,clear} in qdio_cleanup. Don't
         try to wait for an interrupt we won't get.
       - qdio: fix shared indicators.
       - qdio: add code to handle i/o killed by cio with active queues.
       - qdio: don't do a shutdown on timeout in interrupt context.
       - Update cio documentation.
      53e7ea7f
    • Andrew Morton's avatar
      [PATCH] s390: general update · e966ec57
      Andrew Morton authored
      From: Martin Schwidefsky <schwidefsky@de.ibm.com>
      
       - Add console_unblank in machine_{restart,halt,power_off} to get
         all messages on the screen.
       - Set console_irq to -1 if condev= parameter is present.
       - Fix write_trylock for 64 bit.
       - Fix svc restarting.
       - System call number on 64 bit is an int. Fix compare in entry64.S.
       - Fix tlb flush problem.
       - Use the idte instruction to flush tlbs of a particular mm.
       - Fix ptrace.
       - Add fadvise64_64 system call wrapper.
       - Fix pfault handling.
       - Do not clobber _PAGE_INVALID_NONE pages in pte_wrprotect.
       - Fix siginfo_t size problem (needs to be 128 for s390x, not 136).
       - Avoid direct assignment to tsk->state, use __set_task_state.
       - Always make any pending restarted system call return -EINTR.
       - Add panic_on_oops.
       - Display symbol for psw address in show_trace.
       - Don't discard sections .exit.text, .exit.data and .eh_frame,
         otherwise stabs information for kerntypes will get lost. 
       - Add memory clobber to assembler inline in ip_fast_checksum for gcc 3.3.
       - Fix softirq_pending calls for the current cpu (cpu == smp_processor_id()).
       - Remove BUG_ON in irq_enter. Two irq_enters are possible.
      e966ec57
    • Andrew Morton's avatar
      [PATCH] implement find_extend_vma() for nommu · 0da570b7
      Andrew Morton authored
      From: gerg@snapgear.com
      
      Implement a null find_extend_vma() function for non-MMU architectures.  It
      is called from a couple of places, so needs to be present.
      0da570b7
    • Andrew Morton's avatar
      [PATCH] use m68k/types.h for m68knommu · 7961e872
      Andrew Morton authored
      From: gerg@snapgear.com
      
      Remove m68knommu types.h, use m68k types.h instead.  At this level there is
      no difference between the basic m68k types and the m68knommu types, no
      point having 2 versions of the same file.
      7961e872
    • Andrew Morton's avatar
      [PATCH] fix cpu stats in m68knommu entry.S · 1e0f5459
      Andrew Morton authored
      From: gerg@snapgear.com
      
      Fix cpu stats code to match changes to higher level kstat data structure
      for m68knommu ColdFire CPU architectures.  This fixes all ColdFire
      sub-architecture CPU types.
      1e0f5459
    • Andrew Morton's avatar
      [PATCH] m68knommu include fix · 521789cb
      Andrew Morton authored
      From: gerg@snapgear.com
      
      Remove include of non-existant net/module.h in m68knommu architecture
      specific checksum code.
      521789cb
    • Andrew Morton's avatar
      [PATCH] sched_clock() for m68knommu architectures · 114d9308
      Andrew Morton authored
      From: gerg@snapgear.com
      
      Implement the sched_clock() function for m68knommu architectures.
      114d9308
    • Andrew Morton's avatar
      [PATCH] add module support for m68knommu architecture · 91d44280
      Andrew Morton authored
      From: gerg@snapgear.com
      
      Add module support for m68knommu architecture.
      91d44280
    • Andrew Morton's avatar
      [PATCH] allow for building module support for m68knommu architecture · 8a3788e1
      Andrew Morton authored
      From: gerg@snapgear.com
      
      Allow for building of module support for m68knommu architecture.
      8a3788e1
    • Andrew Morton's avatar
      [PATCH] nfs: Fix an Oops in the RPC debug code... · 0996722e
      Andrew Morton authored
      From: Trond Myklebust <trond.myklebust@fys.uio.no>
      
      Enabling rpc_debug can currently result in an Oops due to an incorrect
      pointer check.
      0996722e
    • Andrew Morton's avatar
      [PATCH] nfs: Fix a possible client deadlock · b85934f2
      Andrew Morton authored
      From: Trond Myklebust <trond.myklebust@fys.uio.no>
      
      Fix a bug in the NFS write code whereby writepage() may end up deadlocking
      on clear_inode().
      b85934f2
    • Andrew Morton's avatar
      [PATCH] nfs: Fix readonly mounts · 7aebcc3f
      Andrew Morton authored
      From: Trond Myklebust <trond.myklebust@fys.uio.no>
      
      The nfs_permission() code needs to check for "local" mount flags such as
      "ro" *before* it decides to optimize away any permissions tests.
      7aebcc3f
    • Andrew Morton's avatar
      [PATCH] nfs: Fix an open intent bug · 7de3a7b2
      Andrew Morton authored
      From: Trond Myklebust <trond.myklebust@fys.uio.no>
      
      The following patch fixes a bug when initializing the intent structure
      in sys_uselib(): intents use the FMODE_READ convention rather than
      O_RDONLY.
      
      It also adds a missing open intent to open_exec(). This ensures that NFS
      clients will do the necessary close-to-open data cache consistency
      checking.
      7de3a7b2
    • Andrew Morton's avatar
      [PATCH] nfs: Optimize away unnecessary NFSv3 COMMIT calls. · ac48c0dd
      Andrew Morton authored
      Currently, when calling nfs_commit_file(), we check the range argument,
      and only commit NFS write requests that fall within the given range.
      This is silly, since all servers use fsync(), to honour a COMMIT call,
      and so will sync all pending writes to stable storage.
      
      The following patch ensures that if at least one NFS write falls within
      the range specified by the call to nfs_commit_file(), then we commit all
      outstanding writes on that file.
      
      This fixes a sometimes severe inefficiency when combining reads and
      writes: nfs_wb_page() is used to clear out writes prior to scheduling a
      read(), and can end up calling COMMIT for each page to be read.
      ac48c0dd
    • Andrew Morton's avatar
      [PATCH] NFS: fix bogus setattr calls · 2f4c9a2d
      Andrew Morton authored
      From: Trond Myklebust <trond.myklebust@fys.uio.no>
      
      If users set the execute bit on a file, and then write to it,
      remove_suid() causes a flood of SETATTR calls (one per write() syscall)
      with no arguments to be sent down the wire.
      
      The server will in any case clear the suid bit itself without any
      prompting from us, so the following patch simply filters away all
      SETATTR requests with empty or unsupported ia_valid fields.
      2f4c9a2d
    • Andrew Morton's avatar
      [PATCH] Add SEND_MSG and RECV_MSG controls · 06fbe36f
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch implements two new access controls for SELinux: SEND_MSG and
      RECV_MSG, providing mediation of network packets based on destination port
      (IPv4 only at this stage).
      06fbe36f
    • Andrew Morton's avatar
      [PATCH] selinux: improve skb audit logging · e0e9c58e
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch is a rework of the skb audit logging code in SELinux.  Rather
      than relying on skb header pointers, it parses the skb for specific
      protocols (TCP and UDP for IPv4 at this stage).  This is safer for the case
      of locally generated raw packets, which can be malformed.  It also now
      takes fragmented skbs into account.  The new code allows the caller to
      parse the skb so that parsed information can be more readily re-used.
      e0e9c58e
    • Andrew Morton's avatar
      [PATCH] selinux: Makefile cleanup · bef7d803
      Andrew Morton authored
      From: Stephen Smalley <sds@epoch.ncsc.mil>
      
      Use obj-$(CONFIG_FOO) instead of `ifeq'.
      bef7d803
    • Andrew Morton's avatar
      [PATCH] selinux: Add dname to audit output when a path cannot be generated. · 605303cc
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch adds dname to audit output when a path cannot be generated.
      This makes analysis of SELinux audit logs easier.
      
      Patch by Stephen Smalley <sds@epoch.ncsc.mil>.
      605303cc
    • Andrew Morton's avatar
      [PATCH] selinux: Add SO_PEERSEC socket option and getpeersec LSM hook. · da6e57a2
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch adds a new option for Unix sockets, SO_PEERSEC, and an
      associated LSM hook, getpeersec.  The SELinux handler is also included.
      
      The purpose of this is to allow applications to obtain each others security
      credentials, analagously to the existing SO_PEERCRED option.
      
      Examples of use are Security Enhanced D-BUS and Security Enhanced X.
      
      This patch was previously approved in principle by David, and has been
      updated with feedback from Chris Wright and extended to cover all
      architectures.
      da6e57a2
    • Andrew Morton's avatar
      [PATCH] selinux: socket_has_perm cleanup · fa9b605f
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This is a cleanup for the SELinux code, which converts all
      remaining appropriate socket hooks over to using socket_has_perm().
      fa9b605f
    • Andrew Morton's avatar
      [PATCH] selinux: Add node_bind control · 0129565d
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch adds a new SELinux access control, node_bind, which can be used
      to restrict the local IP address to which an application may bind.
      0129565d
    • Andrew Morton's avatar
      [PATCH] selinux: Add node controls · 85941b90
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch adds 'node' access controls for SELinux, which allows network
      traffic to be controlled on the basis of remote address.
      
      Like the previous patch, similar functionality was present in earlier
      SELinux implementations; this is a rework within the constraints of the LSM
      hooks present in the mainline kernel.
      85941b90
    • Andrew Morton's avatar
      [PATCH] selinux: add netif controls · db5325b1
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch adds netif access controls for SELinux, which allows network
      traffic to be controlled on the basis of associated network interface.
      
      Similar functionality was present in earlier SELinux implementations; this
      is a rework within the constraints of the LSM hooks present in the mainline
      kernel.
      db5325b1
    • Andrew Morton's avatar
      [PATCH] selinux: Add resource limit control · d99684fd
      Andrew Morton authored
      From: James Morris <jmorris@redhat.com>
      
      This patch adds controls to the SELinux module over the setting and
      inheritance of resource limits.  With these controls, the ability to set
      hard limits can be limited to specific processes such as login, and when an
      untrusted process invokes a more trusted program, soft limits can be reset,
      thereby avoiding failures in the trusted program due to malicious setting
      of the soft limit by the untrusted process.  Roland McGrath provided input
      and feedback on the patch, which was implemented by Stephen Smalley
      <sds@epoch.ncsc.mil>.
      d99684fd
    • Andrew Morton's avatar
      [PATCH] trident: use pr_debug instead of home-brewed TRDBG · 13a2158c
      Andrew Morton authored
      From: Muli Ben-Yehuda <mulix@mulix.org>
      
      Yet another sound/oss/trident cleanup patch.  This one replace the TRDBG
      debugging macro with the standard pr_debug.  Patch is from Eugene Teo
      <eugene.teo@eugeneteo.net>, slightly modified by me to apply against
      2.6.0-rc1-mm1 with the other cleanup patches applied.
      13a2158c
    • Andrew Morton's avatar
      [PATCH] trident OSS sound driver fixes · 0d7bcc30
      Andrew Morton authored
      From: Muli Ben-Yehuda <mulix@mulix.org>
      
      - switch lock_set_fmt() and unlock_set_fmt() from macros to inline
        functions.  Macros that call return() are EVIL.
      
      - simplify lock_set_fmt() and implement it via test_and_set_bit() rather
        than a spinlock protecting an int.
      
      - fix a bug wherein we would do an up() on a semaphore that hasn't been
        down()ed if a signal happened after timeout in trident_write().
      
      - fix a bug where we would not release the open_sem on OOM.
      
      - make the arguments for prog_dmabuf clearer (int -> enum), and add two
        wrapper functions around it, one for record and one for playback.  
      
      - fix a bug where we would call VALIDATE_STATE after lock_kernel().  Since
        VALIDATE_STATE does 'return' if validation fails, bad things can happen. 
        Thanks to Dawson Engler <engler@stanford.edu> and the Stanford checker for
        spotting.
      
      - remove the calls to lock_kernel() from trident_release() and
        trident_mmap().  trident_release() appears to be covered by the open_sem,
        and trident_mmap() is covered by state->sem.
      
      - s/TRUE/1/, s/FALSE/0/
      0d7bcc30
    • Andrew Morton's avatar
      [PATCH] reindent trident OSS sound driver · cb2b15d1
      Andrew Morton authored
      From: Muli Ben-Yehuda <mulix@mulix.org>
      
      Reindent the trident OSS sound driver
      cb2b15d1
    • Andrew Morton's avatar
      [PATCH] MODULE_ALIAS for freevxfs · 0f026a8c
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      Now that modutils don't have built-in aliases anymore this is needed to
      make mount -t vxfs autload the module.
      0f026a8c
    • Andrew Morton's avatar
      [PATCH] parintk_ratelimit fix · 3ca28d64
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      3ca28d64
    • Andrew Morton's avatar
      [PATCH] generalise net_ratelimit (printk_ratelimit) · 11a61205
      Andrew Morton authored
      From: Anton Blanchard <anton@samba.org>
      
      Generate a global printk rate-limiting function, printk_ratelimit().
      
      Also, use it in the page allocator warning code.  Also add a dump_stack to
      that code.
      
      Later, we need to switch net_ratelimit() over to use printk_ratelimit().
      11a61205
    • Andrew Morton's avatar
      [PATCH] Amiga Buddha/CatWeasel IDE · 2b45d70f
      Andrew Morton authored
      From: Geert Uytterhoeven <geert@linux-m68k.org>
      
      Buddha/CatWeasel IDE: Make sure the core IDE driver doesn't try to request the
      MMIO ports a second time, since this will fail.
      2b45d70f
    • Andrew Morton's avatar
      [PATCH] M68k Documentation · 49176262
      Andrew Morton authored
      From: Geert Uytterhoeven <geert@linux-m68k.org>
      
      M68k Documentation: framebuffer.txt no longer exists in the m68k directory
      (from Nikita Melnikov)
      49176262
    • Andrew Morton's avatar
      [PATCH] Genrtc warning · 83373b7a
      Andrew Morton authored
      From: Geert Uytterhoeven <geert@linux-m68k.org>
      
      Genrtc: Move code to kill warning if CONFIG_PROC_FS is disabled
      83373b7a
    • Andrew Morton's avatar
      [PATCH] Cirrusfb extern inline · 8a6a146f
      Andrew Morton authored
      From: Geert Uytterhoeven <geert@linux-m68k.org>
      
      Cirrusfb: Replace `extern inline' by `static inline'
      8a6a146f