1. 27 3月, 2006 2 次提交
  2. 25 3月, 2006 1 次提交
  3. 24 3月, 2006 1 次提交
  4. 23 3月, 2006 1 次提交
    • P
      [PATCH] cciss: fix use-after-free in cciss_init_one · 61808c2b
      Patrick McHardy 提交于
      free_hba() sets hba[i] to NULL, the dereference afterwards results in this
      crash.  Setting busy_initializing to 0 actually looks unnecessary, but I'm
      not entirely sure, which is why I left it in.
      
      cciss: controller appears to be disabled
      Unable to handle kernel NULL pointer dereference at virtual address 00000370
       printing eip:
      c1114d53
      *pde = 00000000
      Oops: 0002 [#1]
      Modules linked in:
      CPU:    0
      EIP:    0060:[<c1114d53>]    Not tainted VLI
      EFLAGS: 00010286   (2.6.16 #1)
      EIP is at cciss_init_one+0x4e9/0x4fe
      eax: 00000000   ebx: c132cd60   ecx: c13154e4   edx: c27d3c00
      esi: 00000000   edi: c2748800   ebp: c2536ee4   esp: c2536eb8
      ds: 007b   es: 007b   ss: 0068
      Process swapper (pid: 1, threadinfo=c2536000 task=c2535a30)
      Stack: <0>00000000 00000000 00000000 c13fdba0 c2536ee8 c13159c0 c2536f38
      f7c74740
             c132cd60 c132cd60 ffffffed c2536ef0 c10c1d51 c2748800 c2536f04
      c10c1d85
             c132cd60 c2748800 c132cd8c c2536f14 c10c1db8 c2748848 00000000
      c2536f28
      Call Trace:
       [<c10031d5>] show_stack_log_lvl+0xa8/0xb0
       [<c1003305>] show_registers+0x102/0x16a
       [<c10034a2>] die+0xc1/0x13c
       [<c1288160>] do_page_fault+0x38a/0x525
       [<c1002e9b>] error_code+0x4f/0x54
       [<c10c1d51>] pci_call_probe+0xd/0x10
       [<c10c1d85>] __pci_device_probe+0x31/0x43
       [<c10c1db8>] pci_device_probe+0x21/0x34
       [<c110a654>] driver_probe_device+0x44/0x99
       [<c110a73f>] __driver_attach+0x39/0x5d
       [<c1109e1c>] bus_for_each_dev+0x35/0x5a
       [<c110a777>] driver_attach+0x14/0x16
       [<c110a220>] bus_add_driver+0x5c/0x8f
       [<c110ab22>] driver_register+0x73/0x78
       [<c10c1f6d>] __pci_register_driver+0x5f/0x71
       [<c13bf935>] cciss_init+0x1a/0x1c
       [<c13aa718>] do_initcalls+0x4c/0x96
       [<c13aa77e>] do_basic_setup+0x1c/0x1e
       [<c10002b1>] init+0x35/0x118
       [<c1000cf5>] kernel_thread_helper+0x5/0xb
      Code: 04 b5 e0 de 40 c1 8d 50 04 8b 40 34 e8 3f b7 f9 ff 8b 04 b5 e0 de
      40 c1 e8 aa f3 ff ff 89 f0 e8 e8 fa ff ff 8b 04 b5 e0 de 40 c1 <c7> 80
      70 03 00 00 00 00 00 00 83 c8 ff 8d 65 f4 5b 5e 5f 5d c3
       <0>Kernel panic - not syncing: Attempted to kill init!
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Cc: <mike.miller@hp.com>
      Cc: <stable@kernel.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      61808c2b
  5. 22 3月, 2006 1 次提交
  6. 28 2月, 2006 1 次提交
  7. 08 2月, 2006 1 次提交
  8. 10 1月, 2006 1 次提交
  9. 09 1月, 2006 5 次提交
    • J
      [BLOCK] CCISS: update for blk softirq completions · a9925a06
      Jens Axboe 提交于
      Signed-off-by: NJens Axboe <axboe@suse.de>
      a9925a06
    • C
      [PATCH] cciss: avoid defining useless MAJOR_NR macro · 564de74a
      Christoph Hellwig 提交于
      This sneaked in with one of the updates.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      564de74a
    • T
      [PATCH] drivers/block: Use ARRAY_SIZE macro · 945f390f
      Tobias Klauser 提交于
      Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a
      duplicate of ARRAY_SIZE. Some trailing whitespaces are also removed.
      
      drivers/block/acsi* has been left out as it's marked BROKEN.
      Signed-off-by: NTobias Klauser <tklauser@nuerscht.ch>
      Cc: Jens Axboe <axboe@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      945f390f
    • M
      [PATCH] cciss: adds MSI and MSI-X support · fb86a35b
      Mike Miller 提交于
      This creates a new function, cciss_interrupt_mode called from
      cciss_pci_init.  This function determines what type of interrupt vector to
      use, i.e., MSI, MSI-X, or IO-APIC.
      
      One noticeable difference is changing the interrupt field of the controller
      struct to an array of 4 unsigned ints.  The Smart Array HW is capable of
      generating 4 distinct interrupts depending on the transport method in use
      during operation.  These are:
      
      #define DOORBELL_INT 0
      Used to notify the contoller of configuration updates. We only use
      this feature when in polling mode.
      
      #define PERF_MODE_INT 0
      Used when the controller is in Performant Mode.
      
      #define SIMPLE_MODE_INT 2
      Used when the controller is in Simple Mode (current Linux implementation).
      
      #define MEMQ_INT_MODE 3
      Not used.
      
      When using IO-APIC interrupts these 4 lines are OR'ed together so when any
      one fires an interrupt an is generated.  In MSI or MSI-X mode this hardware
      OR'ing is ignored.  We must register for our interrupt depending on what
      mode the controller is running.  For Linux we use SIMPLE_MODE_INT
      exclusively at this time.  Please consider this for inclusion.
      Signed-off-by: NMike Miller <mike.miller@hp.com>
      Cc: Jens Axboe <axboe@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      fb86a35b
    • C
      [PATCH] Add block_device_operations.getgeo block device method · a885c8c4
      Christoph Hellwig 提交于
      HDIO_GETGEO is implemented in most block drivers, and all of them have to
      duplicate the code to copy the structure to userspace, as well as getting
      the start sector.  This patch moves that to common code [1] and adds a
      ->getgeo method to fill out the raw kernel hd_geometry structure.  For many
      drivers this means ->ioctl can go away now.
      
      [1] the s390 block drivers are odd in this respect.  xpram sets ->start
          to 4 always which seems more than odd, and the dasd driver shifts
          the start offset around, probably because of it's non-standard
          sector size.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: Jens Axboe <axboe@suse.de>
      Cc: <mike.miller@hp.com>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Paolo Giarrusso <blaisorblade@yahoo.it>
      Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Markus Lidel <Markus.Lidel@shadowconnect.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a885c8c4
  10. 06 1月, 2006 1 次提交
    • T
      [BLOCK] add @uptodate to end_that_request_last() and @error to rq_end_io_fn() · 8ffdc655
      Tejun Heo 提交于
      add @uptodate argument to end_that_request_last() and @error
      to rq_end_io_fn().  there's no generic way to pass error code
      to request completion function, making generic error handling
      of non-fs request difficult (rq->errors is driver-specific and
      each driver uses it differently).  this patch adds @uptodate
      to end_that_request_last() and @error to rq_end_io_fn().
      
      for fs requests, this doesn't really matter, so just using the
      same uptodate argument used in the last call to
      end_that_request_first() should suffice.  imho, this can also
      help the generic command-carrying request jens is working on.
      Signed-off-by: Ntejun heo <htejun@gmail.com>
      Signed-Off-By: NJens Axboe <axboe@suse.de>
      8ffdc655
  11. 13 12月, 2005 2 次提交
  12. 19 11月, 2005 2 次提交
  13. 07 11月, 2005 2 次提交
  14. 22 9月, 2005 1 次提交
  15. 13 9月, 2005 6 次提交
  16. 11 9月, 2005 1 次提交
  17. 28 7月, 2005 1 次提交
    • M
      [PATCH] cciss per disk queue · ad2b9312
      Mike Miller 提交于
      This patch adds per disk queue functionality to cciss.  Sometime back I
      submitted a patch but it looks like only part of what I needed.  In the 2.6
      kernel if we have more than one logical volume the driver will Oops during
      rmmod.  It seems all of the queues actually point back to the same queue.
      So after deleting the first volume you hit a null pointer on the second
      one.
      
      This has been tested in our labs.  There is no difference in performance,
      it just fixes the Oops.
      Signed-off-by: NMike Miller <mike.miller@hp.com>
      Cc: Jens Axboe <axboe@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      ad2b9312
  18. 29 6月, 2005 1 次提交
  19. 28 6月, 2005 3 次提交
  20. 12 6月, 2005 1 次提交
  21. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4