[Bug 1368311] Re: Kernel OOPS on reload serial driver
** Attachment added: TTY crash example. https://bugs.launchpad.net/ubuntu/+source/linux-lts-quantal/+bug/1368311/+attachment/4201578/+files/tty.tar.gz ** Description changed: ubuntu version: Ubuntu 12.04.2 LTS kernel version: Linux boris-System-Product-Name 3.5.0-29-generic #49~precise1-Ubuntu SMP Wed May 8 00:08:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux action: sudo insmod tiny_tty.ko sudo rmmod tiny_tty.ko sudo insmod tiny_tty.ko dmesg: [ 3800.078041] [ cut here ] [ 3800.078053] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/fs/proc/generic.c:586 proc_register+0xbf/0x170() [ 3800.078055] Hardware name: System Product Name [ 3800.078056] proc_dir_entry 'driver/tiny_tty' already registered [ 3772.423808] Tiny TTY driver v2.0 [ 3800.078058] Modules linked in: tiny_tty(O+) pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) bnep rfcomm bluetooth parport_pc ppdev nfsd nfs binfmt_misc lockd fscache auth_rpcgss nfs_acl sunrpc snd_hda_codec_hdmi snd_hda_codec_via snd_hda_intel snd_hda_codec bridge stp llc snd_hwdep i915 snd_pcm snd_seq_midi kvm_intel snd_rawmidi kvm drm_kms_helper snd_seq_midi_event drm snd_seq snd_timer ghash_clmulni_intel snd_seq_device snd aesni_intel i2c_algo_bit cryptd joydev aes_x86_64 psmouse soundcore eeepc_wmi asus_wmi alx snd_page_alloc sparse_keymap pcspkr serio_raw mac_hid video microcode mei wmi lpc_ich mdio coretemp lp parport hid_generic usbhid hid ahci libahci [last unloaded: tiny_tty] [ 3800.078111] Pid: 3661, comm: insmod Tainted: G O 3.5.0-29-generic #49~precise1-Ubuntu [ 3800.078113] Call Trace: [ 3800.078120] [81052c7f] warn_slowpath_common+0x7f/0xc0 [ 3800.078124] [81052d76] warn_slowpath_fmt+0x46/0x50 [ 3800.078130] [813320bc] ? ida_get_new_above+0x24c/0x310 [ 3800.078134] [811ef10f] proc_register+0xbf/0x170 [ 3800.078139] [811ef515] proc_create_data+0x75/0xd0 [ 3800.078143] [811f1d34] proc_tty_register_driver+0x54/0x70 [ 3800.078147] [813eb9ae] tty_register_driver+0x14e/0x310 [ 3800.078152] [a0008000] ? 0xa0007fff [ 3800.078157] [a00080ab] tiny_init+0xab/0x1000 [tiny_tty] [ 3800.078162] [8100203f] do_one_initcall+0x3f/0x170 [ 3800.078167] [810b83be] sys_init_module+0xbe/0x220 [ 3800.078173] [816a4d69] system_call_fastpath+0x16/0x1b [ 3800.078175] ---[ end trace d7af2e4f1c4a0ae6 ]--- - If I readed to /proc/tty/driver/tiny_tty on another apps kernel crashed. - Because driver unloaded but proc entry point not removed (it created by - tty_register_driver). + When I read from /proc/tty/driver/tiny_tty from application, kernel will + crash. Because driver unloaded but proc entry point not removed (it + created by tty_register_driver). I'm append examle code to repeat this bug ** Description changed: ubuntu version: Ubuntu 12.04.2 LTS kernel version: Linux boris-System-Product-Name 3.5.0-29-generic #49~precise1-Ubuntu SMP Wed May 8 00:08:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux action: sudo insmod tiny_tty.ko sudo rmmod tiny_tty.ko sudo insmod tiny_tty.ko dmesg: [ 3800.078041] [ cut here ] [ 3800.078053] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/fs/proc/generic.c:586 proc_register+0xbf/0x170() [ 3800.078055] Hardware name: System Product Name [ 3800.078056] proc_dir_entry 'driver/tiny_tty' already registered [ 3772.423808] Tiny TTY driver v2.0 [ 3800.078058] Modules linked in: tiny_tty(O+) pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) bnep rfcomm bluetooth parport_pc ppdev nfsd nfs binfmt_misc lockd fscache auth_rpcgss nfs_acl sunrpc snd_hda_codec_hdmi snd_hda_codec_via snd_hda_intel snd_hda_codec bridge stp llc snd_hwdep i915 snd_pcm snd_seq_midi kvm_intel snd_rawmidi kvm drm_kms_helper snd_seq_midi_event drm snd_seq snd_timer ghash_clmulni_intel snd_seq_device snd aesni_intel i2c_algo_bit cryptd joydev aes_x86_64 psmouse soundcore eeepc_wmi asus_wmi alx snd_page_alloc sparse_keymap pcspkr serio_raw mac_hid video microcode mei wmi lpc_ich mdio coretemp lp parport hid_generic usbhid hid ahci libahci [last unloaded: tiny_tty] [ 3800.078111] Pid: 3661, comm: insmod Tainted: G O 3.5.0-29-generic #49~precise1-Ubuntu [ 3800.078113] Call Trace: [ 3800.078120] [81052c7f] warn_slowpath_common+0x7f/0xc0 [ 3800.078124] [81052d76] warn_slowpath_fmt+0x46/0x50 [ 3800.078130] [813320bc] ? ida_get_new_above+0x24c/0x310 [ 3800.078134] [811ef10f] proc_register+0xbf/0x170 [ 3800.078139] [811ef515] proc_create_data+0x75/0xd0 [ 3800.078143] [811f1d34] proc_tty_register_driver+0x54/0x70 [ 3800.078147] [813eb9ae] tty_register_driver+0x14e/0x310 [ 3800.078152] [a0008000] ? 0xa0007fff [ 3800.078157] [a00080ab] tiny_init+0xab/0x1000
[Bug 1368311] Re: Kernel OOPS on reload serial driver
Quantal EOL was May 16 2014 so there is no more support about it; choose to upgrade instead. ** Changed in: linux-lts-quantal (Ubuntu) Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1368311 Title: Kernel OOPS on reload serial driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-lts-quantal/+bug/1368311/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1368311] Re: Kernel OOPS on reload serial driver
** Description changed: ubuntu version: Ubuntu 12.04.2 LTS kernel version: Linux boris-System-Product-Name 3.5.0-29-generic #49~precise1-Ubuntu SMP Wed May 8 00:08:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux action: sudo insmod tiny_tty.ko sudo rmmod tiny_tty.ko sudo insmod tiny_tty.ko dmesg: [ 3800.078041] [ cut here ] [ 3800.078053] WARNING: at /build/buildd/linux-lts-quantal-3.5.0/fs/proc/generic.c:586 proc_register+0xbf/0x170() [ 3800.078055] Hardware name: System Product Name [ 3800.078056] proc_dir_entry 'driver/tiny_tty' already registered [ 3772.423808] Tiny TTY driver v2.0 [ 3800.078058] Modules linked in: tiny_tty(O+) pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) bnep rfcomm bluetooth parport_pc ppdev nfsd nfs binfmt_misc lockd fscache auth_rpcgss nfs_acl sunrpc snd_hda_codec_hdmi snd_hda_codec_via snd_hda_intel snd_hda_codec bridge stp llc snd_hwdep i915 snd_pcm snd_seq_midi kvm_intel snd_rawmidi kvm drm_kms_helper snd_seq_midi_event drm snd_seq snd_timer ghash_clmulni_intel snd_seq_device snd aesni_intel i2c_algo_bit cryptd joydev aes_x86_64 psmouse soundcore eeepc_wmi asus_wmi alx snd_page_alloc sparse_keymap pcspkr serio_raw mac_hid video microcode mei wmi lpc_ich mdio coretemp lp parport hid_generic usbhid hid ahci libahci [last unloaded: tiny_tty] [ 3800.078111] Pid: 3661, comm: insmod Tainted: G O 3.5.0-29-generic #49~precise1-Ubuntu [ 3800.078113] Call Trace: [ 3800.078120] [81052c7f] warn_slowpath_common+0x7f/0xc0 [ 3800.078124] [81052d76] warn_slowpath_fmt+0x46/0x50 [ 3800.078130] [813320bc] ? ida_get_new_above+0x24c/0x310 [ 3800.078134] [811ef10f] proc_register+0xbf/0x170 [ 3800.078139] [811ef515] proc_create_data+0x75/0xd0 [ 3800.078143] [811f1d34] proc_tty_register_driver+0x54/0x70 [ 3800.078147] [813eb9ae] tty_register_driver+0x14e/0x310 [ 3800.078152] [a0008000] ? 0xa0007fff [ 3800.078157] [a00080ab] tiny_init+0xab/0x1000 [tiny_tty] [ 3800.078162] [8100203f] do_one_initcall+0x3f/0x170 [ 3800.078167] [810b83be] sys_init_module+0xbe/0x220 [ 3800.078173] [816a4d69] system_call_fastpath+0x16/0x1b [ 3800.078175] ---[ end trace d7af2e4f1c4a0ae6 ]--- When I read from /proc/tty/driver/tiny_tty from application, kernel will crash. This happens because driver was unloaded, but proc entry point was not removed (entry created by tty_register_driver) - I'm append examle code to repeat this bug + I'm attaching example code to reproduce this bug -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1368311 Title: Kernel OOPS on reload serial driver To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux-lts-quantal/+bug/1368311/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs