Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965073AbVKBPKy (ORCPT ); Wed, 2 Nov 2005 10:10:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965075AbVKBPKy (ORCPT ); Wed, 2 Nov 2005 10:10:54 -0500 Received: from outgoing.smtp.agnat.pl ([193.239.44.83]:39173 "EHLO outgoing.smtp.agnat.pl") by vger.kernel.org with ESMTP id S965073AbVKBPKy convert rfc822-to-8bit (ORCPT ); Wed, 2 Nov 2005 10:10:54 -0500 From: Arkadiusz Miskiewicz Organization: SelfOrganizing To: linux-kernel@vger.kernel.org Subject: mxser driver in 2.6.14: kernel BUG at drivers/char/mxser.c:1004! Date: Wed, 2 Nov 2005 16:10:41 +0100 User-Agent: KMail/1.8.3 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200511021610.41900.arekm@pld-linux.org> X-Authenticated-Id: arekm Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2866 Lines: 79 I have MOXA CP-168U V2. setserial /dev/ttyM0-7 works fine. As soon as I try to do setserial /dev/ttyM8 (or higher) kernel hits BUG() in driver. mxser_open is called, it sets tts->driver_data to something existing (added BUG() in mxser_open to check if info is valid) info = mxvar_table + line; if (!info) BUG(); if (!info->base) return (-ENODEV); tty->driver_data = info; but later mxser_close() fails on second BUG() call struct mxser_struct *info = (struct mxser_struct *) tty->driver_data; [...] if (tty->index == MXSER_PORTS) return; printk("1\n"); if (!info) BUG(); MOXA Smartio/Industio family driver version 1.8 Found MOXA CP-168U series board(BusNo=0,DevNo=9) ACPI: PCI Interrupt 0000:00:09.0[A] -> GSI 17 (level, low) -> IRQ 169 ttyM0 - ttyM7 max. baud rate = 921600 bps. mxser_open go1 1 ------------[ cut here ]------------ kernel BUG at drivers/char/mxser.c:1006! invalid operand: 0000 [#1] Modules linked in: mxser ipv6 nfnetlink crc32c libcrc32c tsdev psmouse 8139too mii realtime ide_cd cdrom xfs exportfs ide_disk sis5513 ide_core CPU: 0 EIP: 0060:[] Not tainted VLI EFLAGS: 00010246 (2.6.14-0.2) EIP is at mxser_close+0x34c/0x360 [mxser] eax: 00000002 ebx: 00000000 ecx: 00000000 edx: c030c66c esi: 00000000 edi: d827f000 ebp: d8327de4 esp: d8327dc8 ds: 007b es: 007b ss: 0068 Process setserial (pid: 4267, threadinfo=d8326000 task=d82ad5c0) Stack: dc9764c3 db66e120 00000000 d827f0d0 d827f000 00000000 db66e120 d8327e9c c020ea50 d827f000 db66e120 00000000 d8327e70 00000000 00000008 00000400 dc97649f 00000000 00000000 00000296 c02122f0 00000011 00000246 c03181ac Call Trace: [] show_stack+0x7f/0xa0 [] show_registers+0x159/0x1c0 [] die+0xce/0x170 [] do_trap+0xae/0xb0 [] do_invalid_op+0xb9/0xd0 [] error_code+0x4f/0x54 [] release_dev+0x6d0/0x6e0 [] tty_open+0x135/0x2d0 [] chrdev_open+0x9b/0x140 [] __dentry_open+0x10a/0x1b0 [] filp_open+0x74/0x90 [] do_sys_open+0x57/0xf0 [] sys_open+0x1f/0x30 [] sysenter_past_esp+0x54/0x75 Code: 58 83 f8 01 0f 84 5a fd ff ff 89 44 24 04 c7 04 24 80 68 97 dc e8 55 8c 7a e3 b8 01 00 00 00 c7 43 58 01 00 00 00 e9 39 fd ff ff <0f> 0b ee 03 ae 64 97 dc e9 d9 fc ff ff 8d b4 26 00 00 00 00 55 -- Arkadiusz Mi?kiewicz PLD/Linux Team http://www.t17.ds.pwr.wroc.pl/~misiek/ http://ftp.pld-linux.org/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/