VERSION = 1
PATCHLEVEL = 2
-SUBLEVEL = 10
+SUBLEVEL = 11
ARCH = i386
static inline int is_revectored(int nr, struct revectored_struct * bitmap)
{
+ if (verify_area(VERIFY_READ, bitmap, 256/8) < 0)
+ return 1;
__asm__ __volatile__("btl %2,%%fs:%1\n\tsbbl %0,%0"
:"=r" (nr)
:"m" (*bitmap),"r" (nr));
static void do_int(struct vm86_regs *regs, int i, unsigned char * ssp, unsigned long sp)
{
- unsigned short seg = get_fs_word((void *) ((i<<2)+2));
+ unsigned short *intr_ptr, seg;
- if (seg == BIOSSEG || regs->cs == BIOSSEG ||
- is_revectored(i, ¤t->tss.vm86_info->int_revectored))
- return_to_32bit(regs, VM86_INTx + (i << 8));
+ if (regs->cs == BIOSSEG)
+ goto cannot_handle;
+ if (is_revectored(i, ¤t->tss.vm86_info->int_revectored))
+ goto cannot_handle;
if (i==0x21 && is_revectored(AH(regs),¤t->tss.vm86_info->int21_revectored))
- return_to_32bit(regs, VM86_INTx + (i << 8));
+ goto cannot_handle;
+ intr_ptr = (unsigned short *) (i << 2);
+ if (verify_area(VERIFY_READ, intr_ptr, 4) < 0)
+ goto cannot_handle;
+ seg = get_fs_word(intr_ptr+1);
+ if (seg == BIOSSEG)
+ goto cannot_handle;
pushw(ssp, sp, get_vflags(regs));
pushw(ssp, sp, regs->cs);
pushw(ssp, sp, IP(regs));
regs->cs = seg;
SP(regs) -= 6;
- IP(regs) = get_fs_word((void *) (i<<2));
+ IP(regs) = get_fs_word(intr_ptr+0);
clear_TF(regs);
clear_IF(regs);
return;
+
+cannot_handle:
+ return_to_32bit(regs, VM86_INTx + (i << 8));
}
void handle_vm86_debug(struct vm86_regs * regs, long error_code)
* (Heiko Eissfeldt <heiko@colossus.escape.de>)
*
* 1995-06-01
- * More chages to support CDU-510/515 series
+ * More changes to support CDU-510/515 series
* (Claudio Porfiri<C.Porfiri@nisms.tei.ericsson.se>)
*
* Things to do:
Written 1994-95 by Avery Pennarun, derived from skeleton.c by
Donald Becker.
- Contact Avery at: apenwarr@tourism.807-city.on.ca or
+ Contact Avery at: apenwarr@foxnet.net or
RR #5 Pole Line Road, Thunder Bay, ON, Canada P7C 5M9
**********************
**********************
+ v1.02 (95/06/21)
+ - A fix to make "exception" packets sent from Linux receivable
+ on other systems. (The protocol_id byte was sometimes being set
+ incorrectly, and Linux wasn't checking it on receive so it
+ didn't show up)
+ - Updated my email address. Please use apenwarr@foxnet.net
+ from now on.
v1.01 (95/03/24)
- Fixed some IPX-related bugs. (Thanks to Tomasz Motylewski
<motyl@tichy.ch.uj.edu.pl> for the patches to make arcnet work
* 8 times every second.
*
* This should no longer be necessary. if you experience "stuck" ARCnet
- * drivers, please email apenwarr@tourism.807-city.on.ca or I will remove
+ * drivers, please email apenwarr@foxnet.net or I will remove
* this feature in a future release.
*/
#undef USE_TIMER_HANDLER
/**************************************************************************/
static char *version =
- "arcnet.c:v1.01 95/03/24 Avery Pennarun <apenwarr@tourism.807-city.on.ca>\n";
+ "arcnet.c:v1.02 95/06/21 Avery Pennarun <apenwarr@foxnet.net>\n";
/*
Sources:
* make the packet long enough to fit in a 512-byte
* frame.
*/
- arcpacket->raw[offset+0]=arcsoft->protocol_id;
+ arcpacket->raw[offset+0]=hdr->protocol_id;
arcpacket->raw[offset+1]=0xFF; /* FF flag */
arcpacket->raw[offset+2]=0xFF; /* FF padding */
arcpacket->raw[offset+3]=0xFF; /* FF padding */
struct pci_chip {
unsigned short pci_device_id;
int chip;
- int max_revision;
int min_revision;
+ int max_revision;
};
static struct pci_chip pci_chip_ids[] = {
} else {
overrides[commandline_current].data.pci.bus = ints[1];
overrides[commandline_current].data.pci.device = ints[2];
- overrides[commandline_current].data.pci.device = ints[3];
+ overrides[commandline_current].data.pci.function = ints[3];
overrides[commandline_current].options = (ints[0] >= 4) ?
ints[4] : 0;
}
/*
* u14-34f.c - Low-level driver for UltraStor 14F/34F SCSI host adapters.
*
+ * 13 Jun 1995 rev. 2.01 for linux 1.2.10
+ * HAVE_OLD_UX4F_FIRMWARE should be defined for U34F boards when
+ * the firmware prom is not the lastest one (28008-006).
+ *
* 11 Mar 1995 rev. 2.00 for linux 1.2.0
* Fixed a bug which prevented media change detection for removable
* disk drives.
*
* Copyright (C) 1994, 1995 Dario Ballabio (dario@milano.europe.dg.com)
*
- * WARNING: if your 14F board has an old firmware revision (see below)
+ * WARNING: if your 14/34F board has an old firmware revision (see below)
* you must change "#undef" into "#define" in the following
* statement.
*/
-#undef HAVE_OLD_U14F_FIRMWARE
+#undef HAVE_OLD_UX4F_FIRMWARE
/*
* The UltraStor 14F, 24F, and 34F are a family of intelligent, high
* performance SCSI-2 host adapters.
*
* The new firmware has fixed all the above problems.
*
+ * For U34F boards the latest bios prom is 38008-002 (BIOS rev. 2.01),
+ * the latest firmware prom is 28008-006. Older firmware 28008-005 has
+ * problems when using more then 16 scatter/gather lists.
+ *
* In order to support multiple ISA boards in a reliable way,
* the driver sets host->wish_block = TRUE for all ISA boards.
*/
irqlist[irq] = j;
if (HD(j)->subversion == ESA) {
+
+#if defined (HAVE_OLD_UX4F_FIRMWARE)
+ sh[j]->sg_tablesize = MAX_SAFE_SGLIST;
+#endif
+
sh[j]->dma_channel = NO_DMA;
sh[j]->unchecked_isa_dma = FALSE;
sprintf(BN(j), "U34F%d", j);
else {
sh[j]->wish_block = TRUE;
-#if defined (HAVE_OLD_U14F_FIRMWARE)
+#if defined (HAVE_OLD_UX4F_FIRMWARE)
sh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh[j]->sg_tablesize = MAX_SAFE_SGLIST;
#endif
if (strcmp(&HD(j)->board_id[32], "06000600")) {
printk("%s: %s.\n", BN(j), &HD(j)->board_id[8]);
- printk("%s: firmware %s is outdated, BIOS rev. should be 2.01.\n",
+ printk("%s: firmware %s is outdated, FW PROM should be 28004-006.\n",
BN(j), &HD(j)->board_id[32]);
sh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh[j]->sg_tablesize = MAX_SAFE_SGLIST;
int u14_34f_reset(Scsi_Cmnd *);
int u14_34f_biosparam(Disk *, int, int *);
-#define U14_34F_VERSION "2.00.00"
+#define U14_34F_VERSION "2.01.00"
#define ULTRASTOR_14_34F { \
NULL, /* Ptr for modules */ \
return;
}
ino &= 0x0000ffff;
- inode->i_uid = p->euid;
- inode->i_gid = p->egid;
+ if (p->dumpable && p->uid == p->euid && p->gid == p->egid) {
+ inode->i_uid = p->uid;
+ inode->i_gid = p->gid;
+ }
switch (ino) {
case PROC_PID_INO:
inode->i_nlink = 4;
#define _LINUX_SBPCD_H
/*==========================================================================*/
/*==========================================================================*/
-#define LONG_TIMING 0 /* test against timeouts with "gold" CDs on CR-521 */
+#define LONG_TIMING 1 /* test against timeouts with "gold" CDs on CR-521 */
#undef FUTURE
#define TEST_UPC 0
* Copyright (C) 1991, 1992 Linus Torvalds
*/
-#define DEBUG_PROC_TREE
+#undef DEBUG_PROC_TREE
#include <linux/wait.h>
#include <linux/errno.h>
* somewhere. We might as well truncate it to what everybody
* else does..
*/
- if (backlog > 5)
- backlog = 5;
+ if ((unsigned) backlog > 128)
+ backlog = 128;
sk->max_ack_backlog = backlog;
if (sk->state != TCP_LISTEN)
{
*/
atype=ip_chk_addr(iph->daddr);
- if(atype==IS_BROADCAST || IN_MULTICAST(iph->daddr))
+ if(atype==IS_BROADCAST || atype==IS_MULTICAST)
return;
/*