Skip to contentSkip to conversation

ruffian IRQs, OSF syscalls dedugging fixes

PATCH In review Ivan Kokshaysky 2 participants 2 messages Feb 8, 2001 Alpha port

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ruffian IRQs, OSF syscalls dedugging fixes

- Don't trust IRQs assigned by ARC console on ruffian any more; use interrupt routing table provided by <[email protected]> instead. This fixes cards reporting bogus interrupt pin (ES1969).
- Disable debugging messages for OSF syscalls as potential source of DoS attack. Besides, the same info can be obtained with `strace'.

Patches for 2.2 and 2.4 attached.

Ivan.

arch/alpha/kernel/osf_sys.c +2 -0
@@ -78,8 +78,10 @@ asmlinkage int osf_set_program_attribute
 	mm = current->mm;
 	mm->end_code = bss_start + bss_len;
 	mm->brk = bss_start + bss_len;
+#if 0
 	printk("set_program_attributes(%lx %lx %lx %lx)\n",
 		text_start, text_len, bss_start, bss_len);
+#endif
 	unlock_kernel();
 	return 0;
 }
arch/alpha/kernel/traps.c +2 -0
@@ -1086,7 +1086,9 @@ alpha_ni_syscall(unsigned long a0, unsig
 {
 	/* We only get here for OSF system calls, minus #112;
 	   the rest go to sys_ni_syscall.  */
+#if 0
 	printk("<sc %ld(%lx,%lx,%lx)>", regs.r0, a0, a1, a2);
+#endif
 	return -ENOSYS;
 }
 
arch/alpha/kernel/sys_ruffian.c +76 -1

92 lines not on this page · raw message

arch/alpha/kernel/osf_sys.c +2 -0
diff -ur 2.4.1/arch/alpha/kernel/osf_sys.c linux/arch/alpha/kernel/osf_sys.c
@@ -74,8 +74,10 @@
 	mm = current->mm;
 	mm->end_code = bss_start + bss_len;
 	mm->brk = bss_start + bss_len;
+#if 0
 	printk("set_program_attributes(%lx %lx %lx %lx)\n",
 		text_start, text_len, bss_start, bss_len);
+#endif
 	unlock_kernel();
 	return 0;
 }
arch/alpha/kernel/traps.c +2 -0
diff -ur 2.4.1/arch/alpha/kernel/traps.c linux/arch/alpha/kernel/traps.c
@@ -1093,7 +1093,9 @@
 {
 	/* We only get here for OSF system calls, minus #112;
 	   the rest go to sys_ni_syscall.  */
+#if 0
 	printk("<sc %ld(%lx,%lx,%lx)>", regs.r0, a0, a1, a2);
+#endif
 	return -ENOSYS;
 }
 
arch/alpha/kernel/sys_ruffian.c +70 -4

90 lines not on this page · raw message

#1 lore raw
Quoted 3 lines · Ivan Kokshaysky

- Don't trust IRQs assigned by ARC console on ruffian any more; use interrupt routing table provided by <[email protected]> instead. This fixes cards reporting bogus interrupt pin (ES1969).

Oh cool. I think this was the only one we were missing.

Quoted 4 lines

- Disable debugging messages for OSF syscalls as potential source of DoS attack. Besides, the same info can be obtained with `strace'.

Patches for 2.2 and 2.4 attached.

Forwarded to Linus for 2.4; Alan, this looks good for 2.2.

r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/