* [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten @ 2011-11-21 9:14 Sasha Levin 2011-11-21 10:15 ` Eric Dumazet 0 siblings, 1 reply; 24+ messages in thread From: Sasha Levin @ 2011-11-21 9:14 UTC (permalink / raw) To: Matt Mackall, Christoph Lameter, Pekka Enberg; +Cc: linux-mm, linux-kernel Hi All, I got the following output when running some tests (I'm not really sure what exactly happened when this bug was triggered): [13850.947279] ============================================================================= [13850.948024] BUG kmalloc-8: Redzone overwritten [13850.948024] ----------------------------------------------------------------------------- [13850.948024] [13850.948024] INFO: 0xffff8800104f6d28-0xffff8800104f6d2b. First byte 0x0 instead of 0xcc [13850.948024] INFO: Allocated in __seq_open_private+0x20/0x5e age=4436 cpu=0 pid=17295 [13850.948024] __slab_alloc.clone.46+0x3e7/0x456 [13850.948024] __kmalloc+0x8c/0x110 [13850.948024] __seq_open_private+0x20/0x5e [13850.948024] seq_open_net+0x3b/0x5d [13850.948024] dev_mc_seq_open+0x15/0x17 [13850.948024] proc_reg_open+0xad/0x127 [13850.948024] __dentry_open+0x1a0/0x2fe [13850.948024] nameidata_to_filp+0x63/0x6a [13850.948024] do_last+0x59e/0x5cb [13850.948024] path_openat+0xcd/0x35d [13850.948024] do_filp_open+0x38/0x84 [13850.948024] do_sys_open+0x6f/0x101 [13850.948024] sys_open+0x1b/0x1d [13850.948024] system_call_fastpath+0x16/0x1b [13850.948024] INFO: Freed in seq_release_private+0x26/0x45 age=30272 cpu=0 pid=17283 [13850.948024] __slab_free+0x35/0x1dc [13850.948024] kfree+0xb6/0xbf [13850.948024] seq_release_private+0x26/0x45 [13850.948024] seq_release_net+0x32/0x3b [13850.948024] proc_reg_release+0xd9/0xf6 [13850.948024] fput+0x11e/0x1dc [13850.948024] filp_close+0x6e/0x79 [13850.948024] put_files_struct+0xcc/0x196 [13850.948024] exit_files+0x46/0x4f [13850.948024] do_exit+0x264/0x75c [13850.948024] do_group_exit+0x83/0xb1 [13850.948024] sys_exit_group+0x12/0x16 [13850.948024] system_call_fastpath+0x16/0x1b [13850.948024] INFO: Slab 0xffffea0000413d80 objects=12 used=8 fp=0xffff8800104f6000 flags=0x10000000000081 [13850.948024] INFO: Object 0xffff8800104f6d20 @offset=3360 fp=0xffff8800104f6e70 [13850.948024] [13850.948024] Bytes b4 ffff8800104f6d10: 39 64 00 00 01 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a 9d......ZZZZZZZZ [13850.948024] Object ffff8800104f6d20: 00 a9 38 83 ff ff ff ff ..8..... [13850.948024] Redzone ffff8800104f6d28: 00 00 00 00 cc cc cc cc ........ [13850.948024] Padding ffff8800104f6e68: 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZ [13850.948024] Pid: 17295, comm: trinity Tainted: G W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 [13850.948024] Call Trace: [13850.948024] [<ffffffff8112c8f6>] ? print_section+0x38/0x3a [13850.948024] [<ffffffff8112ca21>] print_trailer+0x129/0x132 [13850.948024] [<ffffffff8112cd02>] check_bytes_and_report+0xb2/0xeb [13850.948024] [<ffffffff8115bacc>] ? __seq_open_private+0x31/0x5e [13850.948024] [<ffffffff8112d811>] check_object+0x4e/0x1ae [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [13850.948024] [<ffffffff8112e723>] free_debug_processing+0x96/0x1dc [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [13850.948024] [<ffffffff8112ec07>] __slab_free+0x35/0x1dc [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [13850.948024] [<ffffffff81626be3>] ? debug_check_no_obj_freed+0x12/0x17 [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [13850.948024] [<ffffffff8113041f>] kfree+0xb6/0xbf [13850.948024] [<ffffffff81196f4b>] ? single_open_net+0x54/0x54 [13850.948024] [<ffffffff8115ba7c>] seq_release_private+0x26/0x45 [13850.948024] [<ffffffff81196f7d>] seq_release_net+0x32/0x3b [13850.948024] [<ffffffff8118dc6c>] proc_reg_release+0xd9/0xf6 [13850.948024] [<ffffffff811418cf>] fput+0x11e/0x1dc [13850.948024] [<ffffffff8113f3d8>] filp_close+0x6e/0x79 [13850.948024] [<ffffffff81089f17>] put_files_struct+0xcc/0x196 [13850.948024] [<ffffffff8108a074>] exit_files+0x46/0x4f [13850.948024] [<ffffffff8108a756>] do_exit+0x264/0x75c [13850.948024] [<ffffffff8113f67c>] ? fsnotify_modify+0x60/0x68 [13850.948024] [<ffffffff81b96f8a>] ? sysret_check+0x2e/0x69 [13850.948024] [<ffffffff8108ad01>] do_group_exit+0x83/0xb1 [13850.948024] [<ffffffff8108ad41>] sys_exit_group+0x12/0x16 [13850.948024] [<ffffffff81b96f52>] system_call_fastpath+0x16/0x1b [13850.948024] FIX kmalloc-8: Restoring 0xffff8800104f6d28-0xffff8800104f6d2b=0xcc [13850.948024] [14925.113722] ============================================================================= [14925.114041] BUG kmalloc-8: Redzone overwritten [14925.114041] ----------------------------------------------------------------------------- [14925.114041] [14925.114041] INFO: 0xffff8800104f2d28-0xffff8800104f2d2b. First byte 0x0 instead of 0xcc [14925.114041] INFO: Allocated in __seq_open_private+0x20/0x5e age=6777 cpu=0 pid=17491 [14925.114041] __slab_alloc.clone.46+0x3e7/0x456 [14925.114041] __kmalloc+0x8c/0x110 [14925.114041] __seq_open_private+0x20/0x5e [14925.114041] seq_open_net+0x3b/0x5d [14925.114041] dev_mc_seq_open+0x15/0x17 [14925.114041] proc_reg_open+0xad/0x127 [14925.114041] __dentry_open+0x1a0/0x2fe [14925.114041] nameidata_to_filp+0x63/0x6a [14925.114041] do_last+0x59e/0x5cb [14925.114041] path_openat+0xcd/0x35d [14925.114041] do_filp_open+0x38/0x84 [14925.114041] do_sys_open+0x6f/0x101 [14925.114041] sys_open+0x1b/0x1d [14925.114041] system_call_fastpath+0x16/0x1b [14925.114041] INFO: Freed in seq_release_private+0x26/0x45 age=30836 cpu=0 pid=17487 [14925.114041] __slab_free+0x35/0x1dc [14925.114041] kfree+0xb6/0xbf [14925.114041] seq_release_private+0x26/0x45 [14925.114041] seq_release_net+0x32/0x3b [14925.114041] proc_reg_release+0xd9/0xf6 [14925.114041] fput+0x11e/0x1dc [14925.114041] filp_close+0x6e/0x79 [14925.114041] put_files_struct+0xcc/0x196 [14925.114041] exit_files+0x46/0x4f [14925.114041] do_exit+0x264/0x75c [14925.114041] do_group_exit+0x83/0xb1 [14925.114041] sys_exit_group+0x12/0x16 [14925.114041] system_call_fastpath+0x16/0x1b [14925.114041] INFO: Slab 0xffffea0000413c80 objects=12 used=11 fp=0xffff8800104f27e0 flags=0x10000000000081 [14925.114041] INFO: Object 0xffff8800104f2d20 @offset=3360 fp=0xffff8800104f2bd0 [14925.114041] [14925.114041] Bytes b4 ffff8800104f2d10: 0a b1 de 00 01 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a ........ZZZZZZZZ [14925.114041] Object ffff8800104f2d20: 00 a9 38 83 ff ff ff ff ..8..... [14925.114041] Redzone ffff8800104f2d28: 00 00 00 00 cc cc cc cc ........ [14925.114041] Padding ffff8800104f2e68: 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZ [14925.114041] Pid: 17491, comm: trinity Tainted: G W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 [14925.114041] Call Trace: [14925.114041] [<ffffffff8112c8f6>] ? print_section+0x38/0x3a [14925.114041] [<ffffffff8112ca21>] print_trailer+0x129/0x132 [14925.114041] [<ffffffff8112cd02>] check_bytes_and_report+0xb2/0xeb [14925.114041] [<ffffffff8115bacc>] ? __seq_open_private+0x31/0x5e [14925.114041] [<ffffffff8112d811>] check_object+0x4e/0x1ae [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [14925.114041] [<ffffffff8112e723>] free_debug_processing+0x96/0x1dc [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [14925.114041] [<ffffffff8112ec07>] __slab_free+0x35/0x1dc [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [14925.114041] [<ffffffff81626be3>] ? debug_check_no_obj_freed+0x12/0x17 [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 [14925.114041] [<ffffffff8113041f>] kfree+0xb6/0xbf [14925.114041] [<ffffffff81196f4b>] ? single_open_net+0x54/0x54 [14925.114041] [<ffffffff8115ba7c>] seq_release_private+0x26/0x45 [14925.114041] [<ffffffff81196f7d>] seq_release_net+0x32/0x3b [14925.114041] [<ffffffff8118dc6c>] proc_reg_release+0xd9/0xf6 [14925.114041] [<ffffffff811418cf>] fput+0x11e/0x1dc [14925.114041] [<ffffffff8113f3d8>] filp_close+0x6e/0x79 [14925.114041] [<ffffffff81089f17>] put_files_struct+0xcc/0x196 [14925.114041] [<ffffffff8108a074>] exit_files+0x46/0x4f [14925.114041] [<ffffffff8108a756>] do_exit+0x264/0x75c [14925.114041] [<ffffffff8104ca1b>] ? smp_apic_timer_interrupt+0x76/0x84 [14925.114041] [<ffffffff81b966b8>] ? retint_restore_args+0x13/0x13 [14925.114041] [<ffffffff8108ad01>] do_group_exit+0x83/0xb1 [14925.114041] [<ffffffff8108ad41>] sys_exit_group+0x12/0x16 [14925.114041] [<ffffffff81b96f52>] system_call_fastpath+0x16/0x1b [14925.114041] FIX kmalloc-8: Restoring 0xffff8800104f2d28-0xffff8800104f2d2b=0xcc [14925.114041] [15958.081391] general protection fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC [15958.082012] CPU 1 [15958.082012] Pid: 15, comm: rcuc/1 Tainted: G W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 [15958.082012] RIP: 0010:[<ffffffff810b305b>] [<ffffffff810b305b>] __lock_acquire+0xff/0xe50 [15958.082012] RSP: 0000:ffff880013c03cc8 EFLAGS: 00010002 [15958.082012] RAX: 6b6b6b6b6b6b6b6b RBX: ffff8800124daf60 RCX: 0000000000000000 [15958.082012] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880010b82568 [15958.082012] RBP: ffff880013c03d98 R08: 0000000000000002 R09: 0000000000000000 [15958.082012] R10: ffff880010b82568 R11: 0000000000000001 R12: ffff880010b82568 [15958.082012] R13: 0000000000000002 R14: 0000000000000000 R15: ffff880013c03f18 [15958.082012] FS: 0000000000000000(0000) GS:ffff880013c00000(0000) knlGS:0000000000000000 [15958.082012] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [15958.082012] CR2: 00007f9193a05c2c CR3: 0000000010735000 CR4: 00000000000406e0 [15958.082012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [15958.082012] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [15958.082012] Process rcuc/1 (pid: 15, threadinfo ffff8800124e6000, task ffff8800124daf60) [15958.082012] Stack: [15958.082012] ffff880013dceb10 ffff8800124daf60 ffffffff00000000 0000000000000000 [15958.082012] ffff880010b82568 0000000000000082 ffff880000000000 ffffffff810b1d97 [15958.082012] ffff8800124daf60 ffff880013c03ee8 ffff880013c03df8 ffffffff816141ae [15958.082012] Call Trace: [15958.082012] <IRQ> [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 [15958.082012] [<ffffffff816141ae>] ? trace_hardirqs_on_thunk+0x3a/0x3f [15958.082012] [<ffffffff810b4255>] lock_acquire+0x8a/0xa7 [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 [15958.082012] [<ffffffff810afac3>] ? arch_local_irq_restore+0x12/0x19 [15958.082012] [<ffffffff81b958b7>] _raw_spin_lock+0x3b/0x6e [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 [15958.082012] [<ffffffff81aa6314>] dn_slow_timer+0x20/0x108 [15958.082012] [<ffffffff810915f1>] run_timer_softirq+0x1da/0x28c [15958.082012] [<ffffffff81091599>] ? run_timer_softirq+0x182/0x28c [15958.082012] [<ffffffff81aa62f4>] ? dn_neigh_elist+0x3a/0x3a [15958.082012] [<ffffffff8108c2e4>] __do_softirq+0xa4/0x14b [15958.082012] [<ffffffff81b9923c>] call_softirq+0x1c/0x30 [15958.082012] <EOI> [15958.082012] [<ffffffff8103525a>] do_softirq+0x62/0xb8 [15958.082012] [<ffffffff810e1711>] ? rcu_cpu_kthread+0x284/0x2b8 [15958.082012] [<ffffffff8108c1cb>] _local_bh_enable_ip+0xaf/0xe6 [15958.082012] [<ffffffff8108c233>] local_bh_enable+0xd/0xf [15958.082012] [<ffffffff810e1711>] rcu_cpu_kthread+0x284/0x2b8 [15958.082012] [<ffffffff810e148d>] ? rcu_do_batch.clone.24+0x1fe/0x1fe [15958.082012] [<ffffffff8109ee97>] kthread+0x9b/0xa3 [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 [15958.082012] [<ffffffff81b99144>] kernel_thread_helper+0x4/0x10 [15958.082012] [<ffffffff81b966b8>] ? retint_restore_args+0x13/0x13 [15958.082012] [<ffffffff8109edfc>] ? kthread_flush_work_fn+0xf/0xf [15958.082012] [<ffffffff81b99140>] ? gs_change+0x13/0x13 [15958.082012] Code: 8d 40 ff ff ff 4c 89 95 50 ff ff ff 45 31 f6 e8 23 fc ff ff 44 8b 8d 40 ff ff ff 48 85 c0 4c 8b 95 50 ff ff ff 0f 84 e4 0c 00 00 <f0> ff 80 98 01 00 00 44 8b bb d0 08 00 00 83 3d 64 27 74 01 00 [15958.082012] RIP [<ffffffff810b305b>] __lock_acquire+0xff/0xe50 [15958.082012] RSP <ffff880013c03cc8> [15958.082012] ---[ end trace 21ee6c8ed26977a8 ]--- [15958.082012] Kernel panic - not syncing: Fatal exception in interrupt [15958.082012] Pid: 15, comm: rcuc/1 Tainted: G D W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 [15958.082012] Call Trace: [15958.082012] <IRQ> [<ffffffff81b930f3>] panic+0x96/0x1c3 [15958.082012] [<ffffffff81036626>] oops_end+0xcf/0xdf [15958.082012] [<ffffffff8103677c>] die+0x55/0x61 [15958.082012] [<ffffffff8103417b>] do_general_protection+0x12e/0x136 [15958.082012] [<ffffffff81b966e8>] ? restore_args+0x30/0x30 [15958.082012] [<ffffffff81b96935>] general_protection+0x25/0x30 [15958.082012] [<ffffffff810b305b>] ? __lock_acquire+0xff/0xe50 [15958.082012] [<ffffffff810b2fcb>] ? __lock_acquire+0x6f/0xe50 [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 [15958.082012] [<ffffffff816141ae>] ? trace_hardirqs_on_thunk+0x3a/0x3f [15958.082012] [<ffffffff810b4255>] lock_acquire+0x8a/0xa7 [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 [15958.082012] [<ffffffff810afac3>] ? arch_local_irq_restore+0x12/0x19 [15958.082012] [<ffffffff81b958b7>] _raw_spin_lock+0x3b/0x6e [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 [15958.082012] [<ffffffff81aa6314>] dn_slow_timer+0x20/0x108 [15958.082012] [<ffffffff810915f1>] run_timer_softirq+0x1da/0x28c [15958.082012] [<ffffffff81091599>] ? run_timer_softirq+0x182/0x28c [15958.082012] [<ffffffff81aa62f4>] ? dn_neigh_elist+0x3a/0x3a [15958.082012] [<ffffffff8108c2e4>] __do_softirq+0xa4/0x14b [15958.082012] [<ffffffff81b9923c>] call_softirq+0x1c/0x30 [15958.082012] <EOI> [<ffffffff8103525a>] do_softirq+0x62/0xb8 [15958.082012] [<ffffffff810e1711>] ? rcu_cpu_kthread+0x284/0x2b8 [15958.082012] [<ffffffff8108c1cb>] _local_bh_enable_ip+0xaf/0xe6 [15958.082012] [<ffffffff8108c233>] local_bh_enable+0xd/0xf [15958.082012] [<ffffffff810e1711>] rcu_cpu_kthread+0x284/0x2b8 [15958.082012] [<ffffffff810e148d>] ? rcu_do_batch.clone.24+0x1fe/0x1fe [15958.082012] [<ffffffff8109ee97>] kthread+0x9b/0xa3 [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 [15958.082012] [<ffffffff81b99144>] kernel_thread_helper+0x4/0x10 [15958.082012] [<ffffffff81b966b8>] ? retint_restore_args+0x13/0x13 [15958.082012] [<ffffffff8109edfc>] ? kthread_flush_work_fn+0xf/0xf [15958.082012] [<ffffffff81b99140>] ? gs_change+0x13/0x13 [15958.082012] Rebooting in 1 seconds.. # KVM session ended normally. Please let me know if theres anything I can do to help debugging it. -- Sasha. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-21 9:14 [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten Sasha Levin @ 2011-11-21 10:15 ` Eric Dumazet 2011-11-21 10:21 ` Eric Dumazet 2011-11-28 7:14 ` [PATCH] net: Fix corruption in /proc/*/net/dev_mcast Anton Blanchard 0 siblings, 2 replies; 24+ messages in thread From: Eric Dumazet @ 2011-11-21 10:15 UTC (permalink / raw) To: Sasha Levin, David Miller Cc: Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev Le lundi 21 novembre 2011 A 11:14 +0200, Sasha Levin a A(C)crit : > Hi All, > > I got the following output when running some tests (I'm not really sure > what exactly happened when this bug was triggered): > > [13850.947279] ============================================================================= > [13850.948024] BUG kmalloc-8: Redzone overwritten > [13850.948024] ----------------------------------------------------------------------------- > [13850.948024] > [13850.948024] INFO: 0xffff8800104f6d28-0xffff8800104f6d2b. First byte 0x0 instead of 0xcc > [13850.948024] INFO: Allocated in __seq_open_private+0x20/0x5e age=4436 cpu=0 pid=17295 > [13850.948024] __slab_alloc.clone.46+0x3e7/0x456 > [13850.948024] __kmalloc+0x8c/0x110 > [13850.948024] __seq_open_private+0x20/0x5e > [13850.948024] seq_open_net+0x3b/0x5d > [13850.948024] dev_mc_seq_open+0x15/0x17 > [13850.948024] proc_reg_open+0xad/0x127 > [13850.948024] __dentry_open+0x1a0/0x2fe > [13850.948024] nameidata_to_filp+0x63/0x6a > [13850.948024] do_last+0x59e/0x5cb > [13850.948024] path_openat+0xcd/0x35d > [13850.948024] do_filp_open+0x38/0x84 > [13850.948024] do_sys_open+0x6f/0x101 > [13850.948024] sys_open+0x1b/0x1d > [13850.948024] system_call_fastpath+0x16/0x1b > [13850.948024] INFO: Freed in seq_release_private+0x26/0x45 age=30272 cpu=0 pid=17283 > [13850.948024] __slab_free+0x35/0x1dc > [13850.948024] kfree+0xb6/0xbf > [13850.948024] seq_release_private+0x26/0x45 > [13850.948024] seq_release_net+0x32/0x3b > [13850.948024] proc_reg_release+0xd9/0xf6 > [13850.948024] fput+0x11e/0x1dc > [13850.948024] filp_close+0x6e/0x79 > [13850.948024] put_files_struct+0xcc/0x196 > [13850.948024] exit_files+0x46/0x4f > [13850.948024] do_exit+0x264/0x75c > [13850.948024] do_group_exit+0x83/0xb1 > [13850.948024] sys_exit_group+0x12/0x16 > [13850.948024] system_call_fastpath+0x16/0x1b > [13850.948024] INFO: Slab 0xffffea0000413d80 objects=12 used=8 fp=0xffff8800104f6000 flags=0x10000000000081 > [13850.948024] INFO: Object 0xffff8800104f6d20 @offset=3360 fp=0xffff8800104f6e70 > [13850.948024] > [13850.948024] Bytes b4 ffff8800104f6d10: 39 64 00 00 01 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a 9d......ZZZZZZZZ > [13850.948024] Object ffff8800104f6d20: 00 a9 38 83 ff ff ff ff ..8..... > [13850.948024] Redzone ffff8800104f6d28: 00 00 00 00 cc cc cc cc ........ > [13850.948024] Padding ffff8800104f6e68: 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZ > [13850.948024] Pid: 17295, comm: trinity Tainted: G W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 > [13850.948024] Call Trace: > [13850.948024] [<ffffffff8112c8f6>] ? print_section+0x38/0x3a > [13850.948024] [<ffffffff8112ca21>] print_trailer+0x129/0x132 > [13850.948024] [<ffffffff8112cd02>] check_bytes_and_report+0xb2/0xeb > [13850.948024] [<ffffffff8115bacc>] ? __seq_open_private+0x31/0x5e > [13850.948024] [<ffffffff8112d811>] check_object+0x4e/0x1ae > [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [13850.948024] [<ffffffff8112e723>] free_debug_processing+0x96/0x1dc > [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [13850.948024] [<ffffffff8112ec07>] __slab_free+0x35/0x1dc > [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [13850.948024] [<ffffffff81626be3>] ? debug_check_no_obj_freed+0x12/0x17 > [13850.948024] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [13850.948024] [<ffffffff8113041f>] kfree+0xb6/0xbf > [13850.948024] [<ffffffff81196f4b>] ? single_open_net+0x54/0x54 > [13850.948024] [<ffffffff8115ba7c>] seq_release_private+0x26/0x45 > [13850.948024] [<ffffffff81196f7d>] seq_release_net+0x32/0x3b > [13850.948024] [<ffffffff8118dc6c>] proc_reg_release+0xd9/0xf6 > [13850.948024] [<ffffffff811418cf>] fput+0x11e/0x1dc > [13850.948024] [<ffffffff8113f3d8>] filp_close+0x6e/0x79 > [13850.948024] [<ffffffff81089f17>] put_files_struct+0xcc/0x196 > [13850.948024] [<ffffffff8108a074>] exit_files+0x46/0x4f > [13850.948024] [<ffffffff8108a756>] do_exit+0x264/0x75c > [13850.948024] [<ffffffff8113f67c>] ? fsnotify_modify+0x60/0x68 > [13850.948024] [<ffffffff81b96f8a>] ? sysret_check+0x2e/0x69 > [13850.948024] [<ffffffff8108ad01>] do_group_exit+0x83/0xb1 > [13850.948024] [<ffffffff8108ad41>] sys_exit_group+0x12/0x16 > [13850.948024] [<ffffffff81b96f52>] system_call_fastpath+0x16/0x1b > [13850.948024] FIX kmalloc-8: Restoring 0xffff8800104f6d28-0xffff8800104f6d2b=0xcc > [13850.948024] > [14925.113722] ============================================================================= > [14925.114041] BUG kmalloc-8: Redzone overwritten > [14925.114041] ----------------------------------------------------------------------------- > [14925.114041] > [14925.114041] INFO: 0xffff8800104f2d28-0xffff8800104f2d2b. First byte 0x0 instead of 0xcc > [14925.114041] INFO: Allocated in __seq_open_private+0x20/0x5e age=6777 cpu=0 pid=17491 > [14925.114041] __slab_alloc.clone.46+0x3e7/0x456 > [14925.114041] __kmalloc+0x8c/0x110 > [14925.114041] __seq_open_private+0x20/0x5e > [14925.114041] seq_open_net+0x3b/0x5d > [14925.114041] dev_mc_seq_open+0x15/0x17 > [14925.114041] proc_reg_open+0xad/0x127 > [14925.114041] __dentry_open+0x1a0/0x2fe > [14925.114041] nameidata_to_filp+0x63/0x6a > [14925.114041] do_last+0x59e/0x5cb > [14925.114041] path_openat+0xcd/0x35d > [14925.114041] do_filp_open+0x38/0x84 > [14925.114041] do_sys_open+0x6f/0x101 > [14925.114041] sys_open+0x1b/0x1d > [14925.114041] system_call_fastpath+0x16/0x1b > [14925.114041] INFO: Freed in seq_release_private+0x26/0x45 age=30836 cpu=0 pid=17487 > [14925.114041] __slab_free+0x35/0x1dc > [14925.114041] kfree+0xb6/0xbf > [14925.114041] seq_release_private+0x26/0x45 > [14925.114041] seq_release_net+0x32/0x3b > [14925.114041] proc_reg_release+0xd9/0xf6 > [14925.114041] fput+0x11e/0x1dc > [14925.114041] filp_close+0x6e/0x79 > [14925.114041] put_files_struct+0xcc/0x196 > [14925.114041] exit_files+0x46/0x4f > [14925.114041] do_exit+0x264/0x75c > [14925.114041] do_group_exit+0x83/0xb1 > [14925.114041] sys_exit_group+0x12/0x16 > [14925.114041] system_call_fastpath+0x16/0x1b > [14925.114041] INFO: Slab 0xffffea0000413c80 objects=12 used=11 fp=0xffff8800104f27e0 flags=0x10000000000081 > [14925.114041] INFO: Object 0xffff8800104f2d20 @offset=3360 fp=0xffff8800104f2bd0 > [14925.114041] > [14925.114041] Bytes b4 ffff8800104f2d10: 0a b1 de 00 01 00 00 00 5a 5a 5a 5a 5a 5a 5a 5a ........ZZZZZZZZ > [14925.114041] Object ffff8800104f2d20: 00 a9 38 83 ff ff ff ff ..8..... > [14925.114041] Redzone ffff8800104f2d28: 00 00 00 00 cc cc cc cc ........ > [14925.114041] Padding ffff8800104f2e68: 5a 5a 5a 5a 5a 5a 5a 5a ZZZZZZZZ > [14925.114041] Pid: 17491, comm: trinity Tainted: G W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 > [14925.114041] Call Trace: > [14925.114041] [<ffffffff8112c8f6>] ? print_section+0x38/0x3a > [14925.114041] [<ffffffff8112ca21>] print_trailer+0x129/0x132 > [14925.114041] [<ffffffff8112cd02>] check_bytes_and_report+0xb2/0xeb > [14925.114041] [<ffffffff8115bacc>] ? __seq_open_private+0x31/0x5e > [14925.114041] [<ffffffff8112d811>] check_object+0x4e/0x1ae > [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [14925.114041] [<ffffffff8112e723>] free_debug_processing+0x96/0x1dc > [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [14925.114041] [<ffffffff8112ec07>] __slab_free+0x35/0x1dc > [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [14925.114041] [<ffffffff81626be3>] ? debug_check_no_obj_freed+0x12/0x17 > [14925.114041] [<ffffffff8115ba7c>] ? seq_release_private+0x26/0x45 > [14925.114041] [<ffffffff8113041f>] kfree+0xb6/0xbf > [14925.114041] [<ffffffff81196f4b>] ? single_open_net+0x54/0x54 > [14925.114041] [<ffffffff8115ba7c>] seq_release_private+0x26/0x45 > [14925.114041] [<ffffffff81196f7d>] seq_release_net+0x32/0x3b > [14925.114041] [<ffffffff8118dc6c>] proc_reg_release+0xd9/0xf6 > [14925.114041] [<ffffffff811418cf>] fput+0x11e/0x1dc > [14925.114041] [<ffffffff8113f3d8>] filp_close+0x6e/0x79 > [14925.114041] [<ffffffff81089f17>] put_files_struct+0xcc/0x196 > [14925.114041] [<ffffffff8108a074>] exit_files+0x46/0x4f > [14925.114041] [<ffffffff8108a756>] do_exit+0x264/0x75c > [14925.114041] [<ffffffff8104ca1b>] ? smp_apic_timer_interrupt+0x76/0x84 > [14925.114041] [<ffffffff81b966b8>] ? retint_restore_args+0x13/0x13 > [14925.114041] [<ffffffff8108ad01>] do_group_exit+0x83/0xb1 > [14925.114041] [<ffffffff8108ad41>] sys_exit_group+0x12/0x16 > [14925.114041] [<ffffffff81b96f52>] system_call_fastpath+0x16/0x1b > [14925.114041] FIX kmalloc-8: Restoring 0xffff8800104f2d28-0xffff8800104f2d2b=0xcc > [14925.114041] > [15958.081391] general protection fault: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC > [15958.082012] CPU 1 > [15958.082012] Pid: 15, comm: rcuc/1 Tainted: G W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 > [15958.082012] RIP: 0010:[<ffffffff810b305b>] [<ffffffff810b305b>] __lock_acquire+0xff/0xe50 > [15958.082012] RSP: 0000:ffff880013c03cc8 EFLAGS: 00010002 > [15958.082012] RAX: 6b6b6b6b6b6b6b6b RBX: ffff8800124daf60 RCX: 0000000000000000 > [15958.082012] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff880010b82568 > [15958.082012] RBP: ffff880013c03d98 R08: 0000000000000002 R09: 0000000000000000 > [15958.082012] R10: ffff880010b82568 R11: 0000000000000001 R12: ffff880010b82568 > [15958.082012] R13: 0000000000000002 R14: 0000000000000000 R15: ffff880013c03f18 > [15958.082012] FS: 0000000000000000(0000) GS:ffff880013c00000(0000) knlGS:0000000000000000 > [15958.082012] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b > [15958.082012] CR2: 00007f9193a05c2c CR3: 0000000010735000 CR4: 00000000000406e0 > [15958.082012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > [15958.082012] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 > [15958.082012] Process rcuc/1 (pid: 15, threadinfo ffff8800124e6000, task ffff8800124daf60) > [15958.082012] Stack: > [15958.082012] ffff880013dceb10 ffff8800124daf60 ffffffff00000000 0000000000000000 > [15958.082012] ffff880010b82568 0000000000000082 ffff880000000000 ffffffff810b1d97 > [15958.082012] ffff8800124daf60 ffff880013c03ee8 ffff880013c03df8 ffffffff816141ae > [15958.082012] Call Trace: > [15958.082012] <IRQ> > [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 > [15958.082012] [<ffffffff816141ae>] ? trace_hardirqs_on_thunk+0x3a/0x3f > [15958.082012] [<ffffffff810b4255>] lock_acquire+0x8a/0xa7 > [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 > [15958.082012] [<ffffffff810afac3>] ? arch_local_irq_restore+0x12/0x19 > [15958.082012] [<ffffffff81b958b7>] _raw_spin_lock+0x3b/0x6e > [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 > [15958.082012] [<ffffffff81aa6314>] dn_slow_timer+0x20/0x108 > [15958.082012] [<ffffffff810915f1>] run_timer_softirq+0x1da/0x28c > [15958.082012] [<ffffffff81091599>] ? run_timer_softirq+0x182/0x28c > [15958.082012] [<ffffffff81aa62f4>] ? dn_neigh_elist+0x3a/0x3a > [15958.082012] [<ffffffff8108c2e4>] __do_softirq+0xa4/0x14b > [15958.082012] [<ffffffff81b9923c>] call_softirq+0x1c/0x30 > [15958.082012] <EOI> > [15958.082012] [<ffffffff8103525a>] do_softirq+0x62/0xb8 > [15958.082012] [<ffffffff810e1711>] ? rcu_cpu_kthread+0x284/0x2b8 > [15958.082012] [<ffffffff8108c1cb>] _local_bh_enable_ip+0xaf/0xe6 > [15958.082012] [<ffffffff8108c233>] local_bh_enable+0xd/0xf > [15958.082012] [<ffffffff810e1711>] rcu_cpu_kthread+0x284/0x2b8 > [15958.082012] [<ffffffff810e148d>] ? rcu_do_batch.clone.24+0x1fe/0x1fe > [15958.082012] [<ffffffff8109ee97>] kthread+0x9b/0xa3 > [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 > [15958.082012] [<ffffffff81b99144>] kernel_thread_helper+0x4/0x10 > [15958.082012] [<ffffffff81b966b8>] ? retint_restore_args+0x13/0x13 > [15958.082012] [<ffffffff8109edfc>] ? kthread_flush_work_fn+0xf/0xf > [15958.082012] [<ffffffff81b99140>] ? gs_change+0x13/0x13 > [15958.082012] Code: 8d 40 ff ff ff 4c 89 95 50 ff ff ff 45 31 f6 e8 23 fc ff ff 44 8b 8d 40 ff ff ff 48 85 c0 4c 8b 95 50 ff ff ff 0f 84 e4 0c 00 00 <f0> ff 80 98 01 00 00 44 8b bb d0 08 00 00 83 3d 64 27 74 01 00 > [15958.082012] RIP [<ffffffff810b305b>] __lock_acquire+0xff/0xe50 > [15958.082012] RSP <ffff880013c03cc8> > [15958.082012] ---[ end trace 21ee6c8ed26977a8 ]--- > [15958.082012] Kernel panic - not syncing: Fatal exception in interrupt > [15958.082012] Pid: 15, comm: rcuc/1 Tainted: G D W 3.2.0-rc2-sasha-00146-gc729049-dirty #15 > [15958.082012] Call Trace: > [15958.082012] <IRQ> [<ffffffff81b930f3>] panic+0x96/0x1c3 > [15958.082012] [<ffffffff81036626>] oops_end+0xcf/0xdf > [15958.082012] [<ffffffff8103677c>] die+0x55/0x61 > [15958.082012] [<ffffffff8103417b>] do_general_protection+0x12e/0x136 > [15958.082012] [<ffffffff81b966e8>] ? restore_args+0x30/0x30 > [15958.082012] [<ffffffff81b96935>] general_protection+0x25/0x30 > [15958.082012] [<ffffffff810b305b>] ? __lock_acquire+0xff/0xe50 > [15958.082012] [<ffffffff810b2fcb>] ? __lock_acquire+0x6f/0xe50 > [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 > [15958.082012] [<ffffffff816141ae>] ? trace_hardirqs_on_thunk+0x3a/0x3f > [15958.082012] [<ffffffff810b4255>] lock_acquire+0x8a/0xa7 > [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 > [15958.082012] [<ffffffff810afac3>] ? arch_local_irq_restore+0x12/0x19 > [15958.082012] [<ffffffff81b958b7>] _raw_spin_lock+0x3b/0x6e > [15958.082012] [<ffffffff81aa6314>] ? dn_slow_timer+0x20/0x108 > [15958.082012] [<ffffffff81aa6314>] dn_slow_timer+0x20/0x108 > [15958.082012] [<ffffffff810915f1>] run_timer_softirq+0x1da/0x28c > [15958.082012] [<ffffffff81091599>] ? run_timer_softirq+0x182/0x28c > [15958.082012] [<ffffffff81aa62f4>] ? dn_neigh_elist+0x3a/0x3a > [15958.082012] [<ffffffff8108c2e4>] __do_softirq+0xa4/0x14b > [15958.082012] [<ffffffff81b9923c>] call_softirq+0x1c/0x30 > [15958.082012] <EOI> [<ffffffff8103525a>] do_softirq+0x62/0xb8 > [15958.082012] [<ffffffff810e1711>] ? rcu_cpu_kthread+0x284/0x2b8 > [15958.082012] [<ffffffff8108c1cb>] _local_bh_enable_ip+0xaf/0xe6 > [15958.082012] [<ffffffff8108c233>] local_bh_enable+0xd/0xf > [15958.082012] [<ffffffff810e1711>] rcu_cpu_kthread+0x284/0x2b8 > [15958.082012] [<ffffffff810e148d>] ? rcu_do_batch.clone.24+0x1fe/0x1fe > [15958.082012] [<ffffffff8109ee97>] kthread+0x9b/0xa3 > [15958.082012] [<ffffffff810b1d97>] ? trace_hardirqs_on_caller+0x151/0x197 > [15958.082012] [<ffffffff81b99144>] kernel_thread_helper+0x4/0x10 > [15958.082012] [<ffffffff81b966b8>] ? retint_restore_args+0x13/0x13 > [15958.082012] [<ffffffff8109edfc>] ? kthread_flush_work_fn+0xf/0xf > [15958.082012] [<ffffffff81b99140>] ? gs_change+0x13/0x13 > [15958.082012] Rebooting in 1 seconds.. > # KVM session ended normally. > > Please let me know if theres anything I can do to help debugging it. > Hmm, trinity tries to crash decnet ;) Maybe we should remove this decnet stuff for good instead of tracking all bugs just for the record. Is there anybody still using decnet ? For example dn_start_slow_timer() starts a timer without holding a reference on struct sock, this is highly suspect. [PATCH] decnet: proper socket refcounting Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we dont access already freed/reused memory later. Reported-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- net/decnet/dn_timer.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/net/decnet/dn_timer.c b/net/decnet/dn_timer.c index 67f691b..9f95f0d 100644 --- a/net/decnet/dn_timer.c +++ b/net/decnet/dn_timer.c @@ -36,16 +36,13 @@ static void dn_slow_timer(unsigned long arg); void dn_start_slow_timer(struct sock *sk) { - sk->sk_timer.expires = jiffies + SLOW_INTERVAL; - sk->sk_timer.function = dn_slow_timer; - sk->sk_timer.data = (unsigned long)sk; - - add_timer(&sk->sk_timer); + setup_timer(&sk->sk_timer, dn_slow_timer, (unsigned long)sk); + sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); } void dn_stop_slow_timer(struct sock *sk) { - del_timer(&sk->sk_timer); + sk_stop_timer(sk, &sk->sk_timer); } static void dn_slow_timer(unsigned long arg) @@ -57,8 +54,7 @@ static void dn_slow_timer(unsigned long arg) bh_lock_sock(sk); if (sock_owned_by_user(sk)) { - sk->sk_timer.expires = jiffies + HZ / 10; - add_timer(&sk->sk_timer); + sk_reset_timer(sk, &sk->sk_timer, jiffies + HZ / 10); goto out; } @@ -100,9 +96,7 @@ static void dn_slow_timer(unsigned long arg) scp->keepalive_fxn(sk); } - sk->sk_timer.expires = jiffies + SLOW_INTERVAL; - - add_timer(&sk->sk_timer); + sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); out: bh_unlock_sock(sk); sock_put(sk); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply related [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-21 10:15 ` Eric Dumazet @ 2011-11-21 10:21 ` Eric Dumazet 2011-11-21 10:22 ` Sasha Levin 2011-11-21 10:58 ` Steven Whitehouse 2011-11-28 7:14 ` [PATCH] net: Fix corruption in /proc/*/net/dev_mcast Anton Blanchard 1 sibling, 2 replies; 24+ messages in thread From: Eric Dumazet @ 2011-11-21 10:21 UTC (permalink / raw) To: Sasha Levin Cc: David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev Le lundi 21 novembre 2011 A 11:15 +0100, Eric Dumazet a A(C)crit : > > Hmm, trinity tries to crash decnet ;) > > Maybe we should remove this decnet stuff for good instead of tracking > all bugs just for the record. Is there anybody still using decnet ? > > For example dn_start_slow_timer() starts a timer without holding a > reference on struct sock, this is highly suspect. > > [PATCH] decnet: proper socket refcounting > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > dont access already freed/reused memory later. > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Hmm, I forgot to remove the sock_hold(sk) call from dn_slow_timer(), here is V2 : [PATCH] decnet: proper socket refcounting Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we dont access already freed/reused memory later. Reported-by: Sasha Levin <levinsasha928@gmail.com> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> --- V2: remove sock_hold(sk) call from dn_slow_timer() net/decnet/dn_timer.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/net/decnet/dn_timer.c b/net/decnet/dn_timer.c index 67f691b..d9c150c 100644 --- a/net/decnet/dn_timer.c +++ b/net/decnet/dn_timer.c @@ -36,16 +36,13 @@ static void dn_slow_timer(unsigned long arg); void dn_start_slow_timer(struct sock *sk) { - sk->sk_timer.expires = jiffies + SLOW_INTERVAL; - sk->sk_timer.function = dn_slow_timer; - sk->sk_timer.data = (unsigned long)sk; - - add_timer(&sk->sk_timer); + setup_timer(&sk->sk_timer, dn_slow_timer, (unsigned long)sk); + sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); } void dn_stop_slow_timer(struct sock *sk) { - del_timer(&sk->sk_timer); + sk_stop_timer(sk, &sk->sk_timer); } static void dn_slow_timer(unsigned long arg) @@ -53,12 +50,10 @@ static void dn_slow_timer(unsigned long arg) struct sock *sk = (struct sock *)arg; struct dn_scp *scp = DN_SK(sk); - sock_hold(sk); bh_lock_sock(sk); if (sock_owned_by_user(sk)) { - sk->sk_timer.expires = jiffies + HZ / 10; - add_timer(&sk->sk_timer); + sk_reset_timer(sk, &sk->sk_timer, jiffies + HZ / 10); goto out; } @@ -100,9 +95,7 @@ static void dn_slow_timer(unsigned long arg) scp->keepalive_fxn(sk); } - sk->sk_timer.expires = jiffies + SLOW_INTERVAL; - - add_timer(&sk->sk_timer); + sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); out: bh_unlock_sock(sk); sock_put(sk); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply related [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-21 10:21 ` Eric Dumazet @ 2011-11-21 10:22 ` Sasha Levin 2011-11-26 10:54 ` Sasha Levin 2011-11-21 10:58 ` Steven Whitehouse 1 sibling, 1 reply; 24+ messages in thread From: Sasha Levin @ 2011-11-21 10:22 UTC (permalink / raw) To: Eric Dumazet Cc: David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev On Mon, 2011-11-21 at 11:21 +0100, Eric Dumazet wrote: > Le lundi 21 novembre 2011 a 11:15 +0100, Eric Dumazet a ecrit : > > > > > Hmm, trinity tries to crash decnet ;) > > > > Maybe we should remove this decnet stuff for good instead of tracking > > all bugs just for the record. Is there anybody still using decnet ? > > > > For example dn_start_slow_timer() starts a timer without holding a > > reference on struct sock, this is highly suspect. > > > > [PATCH] decnet: proper socket refcounting > > > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > > dont access already freed/reused memory later. > > > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > > Hmm, I forgot to remove the sock_hold(sk) call from dn_slow_timer(), > here is V2 : > > [PATCH] decnet: proper socket refcounting > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > dont access already freed/reused memory later. > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > --- [snip] Applied locally and running same tests as before, will update with results. -- Sasha. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-21 10:22 ` Sasha Levin @ 2011-11-26 10:54 ` Sasha Levin 2011-11-26 10:59 ` Eric Dumazet 0 siblings, 1 reply; 24+ messages in thread From: Sasha Levin @ 2011-11-26 10:54 UTC (permalink / raw) To: Eric Dumazet Cc: David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev On Mon, 2011-11-21 at 12:22 +0200, Sasha Levin wrote: > On Mon, 2011-11-21 at 11:21 +0100, Eric Dumazet wrote: > > Le lundi 21 novembre 2011 a 11:15 +0100, Eric Dumazet a ecrit : > > > > > > > > Hmm, trinity tries to crash decnet ;) > > > > > > Maybe we should remove this decnet stuff for good instead of tracking > > > all bugs just for the record. Is there anybody still using decnet ? > > > > > > For example dn_start_slow_timer() starts a timer without holding a > > > reference on struct sock, this is highly suspect. > > > > > > [PATCH] decnet: proper socket refcounting > > > > > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > > > dont access already freed/reused memory later. > > > > > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > > > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > > > > Hmm, I forgot to remove the sock_hold(sk) call from dn_slow_timer(), > > here is V2 : > > > > [PATCH] decnet: proper socket refcounting > > > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > > dont access already freed/reused memory later. > > > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > > --- > > [snip] > > Applied locally and running same tests as before, will update with > results. > Looks ok after a couple days of testing. Tested-by: Sasha Levin <levinsasha928@gmail.com> -- Sasha. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-26 10:54 ` Sasha Levin @ 2011-11-26 10:59 ` Eric Dumazet 2011-11-26 20:49 ` David Miller 0 siblings, 1 reply; 24+ messages in thread From: Eric Dumazet @ 2011-11-26 10:59 UTC (permalink / raw) To: Sasha Levin Cc: David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev Le samedi 26 novembre 2011 A 12:54 +0200, Sasha Levin a A(C)crit : > > On Mon, 2011-11-21 at 11:21 +0100, Eric Dumazet wrote: > > > > > > Hmm, I forgot to remove the sock_hold(sk) call from dn_slow_timer(), > > > here is V2 : > > > > > > [PATCH] decnet: proper socket refcounting > > > > > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > > > dont access already freed/reused memory later. > > > > > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > > > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > > > --- > > > > > > Applied locally and running same tests as before, will update with > > results. > > > > Looks ok after a couple days of testing. > > Tested-by: Sasha Levin <levinsasha928@gmail.com> > Thanks Sasha ! -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-26 10:59 ` Eric Dumazet @ 2011-11-26 20:49 ` David Miller 0 siblings, 0 replies; 24+ messages in thread From: David Miller @ 2011-11-26 20:49 UTC (permalink / raw) To: eric.dumazet Cc: levinsasha928, mpm, cl, penberg, linux-mm, linux-kernel, netdev From: Eric Dumazet <eric.dumazet@gmail.com> Date: Sat, 26 Nov 2011 11:59:22 +0100 > Le samedi 26 novembre 2011 à 12:54 +0200, Sasha Levin a écrit : >> > On Mon, 2011-11-21 at 11:21 +0100, Eric Dumazet wrote: >> > > >> > > Hmm, I forgot to remove the sock_hold(sk) call from dn_slow_timer(), >> > > here is V2 : >> > > >> > > [PATCH] decnet: proper socket refcounting >> > > >> > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we >> > > dont access already freed/reused memory later. >> > > >> > > Reported-by: Sasha Levin <levinsasha928@gmail.com> >> > > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> >> > > --- >> > >> > >> > Applied locally and running same tests as before, will update with >> > results. >> > >> >> Looks ok after a couple days of testing. >> >> Tested-by: Sasha Levin <levinsasha928@gmail.com> >> > > Thanks Sasha ! Applied and queued up for -stable, thanks everyone. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-21 10:21 ` Eric Dumazet 2011-11-21 10:22 ` Sasha Levin @ 2011-11-21 10:58 ` Steven Whitehouse 2011-11-26 20:50 ` David Miller 1 sibling, 1 reply; 24+ messages in thread From: Steven Whitehouse @ 2011-11-21 10:58 UTC (permalink / raw) To: Eric Dumazet Cc: Sasha Levin, David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev, Chrissie Caulfield Hi, On Mon, 2011-11-21 at 11:21 +0100, Eric Dumazet wrote: > Le lundi 21 novembre 2011 A 11:15 +0100, Eric Dumazet a A(C)crit : > > > > > Hmm, trinity tries to crash decnet ;) > > > > Maybe we should remove this decnet stuff for good instead of tracking > > all bugs just for the record. Is there anybody still using decnet ? > > The best place to ask that question is on the decnet mailing list: linux-decnet-user@lists.sourceforge.net. I've BCC'd this message since that list requires you to be subscribed in order to post there. I have to say that I've been wondering lately whether it has got to the point where it is no longer useful. Has anybody actually tested it lately against "real" DEC implementations? Steve. > > > For example dn_start_slow_timer() starts a timer without holding a > > reference on struct sock, this is highly suspect. > > > > [PATCH] decnet: proper socket refcounting > > > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > > dont access already freed/reused memory later. > > > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > > Hmm, I forgot to remove the sock_hold(sk) call from dn_slow_timer(), > here is V2 : > > [PATCH] decnet: proper socket refcounting > > Better use sk_reset_timer() / sk_stop_timer() helpers to make sure we > dont access already freed/reused memory later. > > Reported-by: Sasha Levin <levinsasha928@gmail.com> > Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> > --- > V2: remove sock_hold(sk) call from dn_slow_timer() > > net/decnet/dn_timer.c | 17 +++++------------ > 1 file changed, 5 insertions(+), 12 deletions(-) > > diff --git a/net/decnet/dn_timer.c b/net/decnet/dn_timer.c > index 67f691b..d9c150c 100644 > --- a/net/decnet/dn_timer.c > +++ b/net/decnet/dn_timer.c > @@ -36,16 +36,13 @@ static void dn_slow_timer(unsigned long arg); > > void dn_start_slow_timer(struct sock *sk) > { > - sk->sk_timer.expires = jiffies + SLOW_INTERVAL; > - sk->sk_timer.function = dn_slow_timer; > - sk->sk_timer.data = (unsigned long)sk; > - > - add_timer(&sk->sk_timer); > + setup_timer(&sk->sk_timer, dn_slow_timer, (unsigned long)sk); > + sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); > } > > void dn_stop_slow_timer(struct sock *sk) > { > - del_timer(&sk->sk_timer); > + sk_stop_timer(sk, &sk->sk_timer); > } > > static void dn_slow_timer(unsigned long arg) > @@ -53,12 +50,10 @@ static void dn_slow_timer(unsigned long arg) > struct sock *sk = (struct sock *)arg; > struct dn_scp *scp = DN_SK(sk); > > - sock_hold(sk); > bh_lock_sock(sk); > > if (sock_owned_by_user(sk)) { > - sk->sk_timer.expires = jiffies + HZ / 10; > - add_timer(&sk->sk_timer); > + sk_reset_timer(sk, &sk->sk_timer, jiffies + HZ / 10); > goto out; > } > > @@ -100,9 +95,7 @@ static void dn_slow_timer(unsigned long arg) > scp->keepalive_fxn(sk); > } > > - sk->sk_timer.expires = jiffies + SLOW_INTERVAL; > - > - add_timer(&sk->sk_timer); > + sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); > out: > bh_unlock_sock(sk); > sock_put(sk); > > > -- > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-21 10:58 ` Steven Whitehouse @ 2011-11-26 20:50 ` David Miller 2011-11-28 9:58 ` Christine Caulfield 0 siblings, 1 reply; 24+ messages in thread From: David Miller @ 2011-11-26 20:50 UTC (permalink / raw) To: swhiteho Cc: eric.dumazet, levinsasha928, mpm, cl, penberg, linux-mm, linux-kernel, netdev, ccaulfie From: Steven Whitehouse <swhiteho@redhat.com> Date: Mon, 21 Nov 2011 10:58:30 +0000 > I have to say that I've been wondering lately whether it has got to the > point where it is no longer useful. Has anybody actually tested it > lately against "real" DEC implementations? I doubt it :-) If we can't think of any real reason to keep it around, let's try to reach a quirk consensus and I'll toss it from the net-next tree. Thanks. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten 2011-11-26 20:50 ` David Miller @ 2011-11-28 9:58 ` Christine Caulfield 2011-11-28 14:22 ` Proposed removal of DECnet support (was: Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten) Steven Whitehouse 0 siblings, 1 reply; 24+ messages in thread From: Christine Caulfield @ 2011-11-28 9:58 UTC (permalink / raw) To: David Miller Cc: swhiteho, eric.dumazet, levinsasha928, mpm, cl, penberg, linux-mm, linux-kernel, netdev On 26/11/11 20:50, David Miller wrote: > From: Steven Whitehouse<swhiteho@redhat.com> > Date: Mon, 21 Nov 2011 10:58:30 +0000 > >> I have to say that I've been wondering lately whether it has got to the >> point where it is no longer useful. Has anybody actually tested it >> lately against "real" DEC implementations? > > I doubt it :-) > DECnet is in use against real DEC implementations - I have checked it quite recently against a VAX running OpenVMS. How many people are actually using it for real work is a different question though. It's also true that it's not really supported by anyone as I orphaned it some time ago and nobody else seems to care enough to take it over. So if it's becoming a burden on people doing real kernel work then I don't think many tears will be wept for its removal. Chrissie -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Proposed removal of DECnet support (was: Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten) 2011-11-28 9:58 ` Christine Caulfield @ 2011-11-28 14:22 ` Steven Whitehouse 2011-11-29 14:47 ` Philipp Schafft 0 siblings, 1 reply; 24+ messages in thread From: Steven Whitehouse @ 2011-11-28 14:22 UTC (permalink / raw) To: Christine Caulfield Cc: David Miller, eric.dumazet, levinsasha928, mpm, cl, penberg, linux-mm, linux-kernel, netdev Hi, On Mon, 2011-11-28 at 09:58 +0000, Christine Caulfield wrote: > On 26/11/11 20:50, David Miller wrote: > > From: Steven Whitehouse<swhiteho@redhat.com> > > Date: Mon, 21 Nov 2011 10:58:30 +0000 > > > >> I have to say that I've been wondering lately whether it has got to the > >> point where it is no longer useful. Has anybody actually tested it > >> lately against "real" DEC implementations? > > > > I doubt it :-) > > > > DECnet is in use against real DEC implementations - I have checked it > quite recently against a VAX running OpenVMS. How many people are > actually using it for real work is a different question though. > Ok, thats useful info. > It's also true that it's not really supported by anyone as I orphaned it > some time ago and nobody else seems to care enough to take it over. So > if it's becoming a burden on people doing real kernel work then I don't > think many tears will be wept for its removal. > > Chrissie Really the only issue with keeping it around is the maintenance burden I think. It doesn't look like anybody wants to take it on, but maybe we should give it another few days for someone to speak up, just in case they are on holiday or something at the moment. Also, I've updated the subject of the thread, to make it more obvious what is being discussed, as well as bcc'ing it again to the DECnet list, Steve. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: Proposed removal of DECnet support (was: Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten) 2011-11-28 14:22 ` Proposed removal of DECnet support (was: Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten) Steven Whitehouse @ 2011-11-29 14:47 ` Philipp Schafft 2011-11-30 13:52 ` [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG " mike.gair 2011-11-30 14:03 ` [Linux-decnet-user] Proposed removal of DECnet support Bob Armstrong 0 siblings, 2 replies; 24+ messages in thread From: Philipp Schafft @ 2011-11-29 14:47 UTC (permalink / raw) To: Steven Whitehouse Cc: Eric Dumazet, Sasha Levin, David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev, Chrissie Caulfield, Linux-DECnet user, RoarAudio [-- Attachment #1: Type: text/plain, Size: 1735 bytes --] reflum, On Tue, 2011-11-29 at 15:34 +0100, Steven Whitehouse wrote: > Has anybody actually tested it > > >> lately against "real" DEC implementations? > > > I doubt it :-) > > DECnet is in use against real DEC implementations - I have checked it > > quite recently against a VAX running OpenVMS. How many people are > > actually using it for real work is a different question though. > > > Ok, thats useful info. I confirmed parts of it with tcpdump and the specs some weeks ago. The parts I worked on passed :) I also considered to send the tcpdump upstream a patch for protocol decoding. > > It's also true that it's not really supported by anyone as I orphaned it > > some time ago and nobody else seems to care enough to take it over. So > > if it's becoming a burden on people doing real kernel work then I don't > > think many tears will be wept for its removal. > > Chrissie > > Really the only issue with keeping it around is the maintenance burden I > think. It doesn't look like anybody wants to take it on, but maybe we > should give it another few days for someone to speak up, just in case > they are on holiday or something at the moment. > > Also, I've updated the subject of the thread, to make it more obvious > what is being discussed, as well as bcc'ing it again to the DECnet list, I'm very interested in the module. However my problem is that I had nothing to do with kernel coding yet. However I'm currently searching a new maintainer for it (I got info about this thread by today). If somebody is interested in this and only needs some "motivation" or maybe someone would like to get me into kernel coding, please just reply :) -- Philipp. (Rah of PH2) [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 482 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG kmalloc-8: Redzone overwritten) 2011-11-29 14:47 ` Philipp Schafft @ 2011-11-30 13:52 ` mike.gair 2011-11-30 14:52 ` Steven Whitehouse 2011-11-30 14:03 ` [Linux-decnet-user] Proposed removal of DECnet support Bob Armstrong 1 sibling, 1 reply; 24+ messages in thread From: mike.gair @ 2011-11-30 13:52 UTC (permalink / raw) To: Philipp Schafft Cc: Chrissie Caulfield, Christoph Lameter, David Miller, Eric Dumazet, Sasha Levin, Linux-DECnet user, linux-kernel, linux-mm, Matt Mackall, netdev, Pekka Enberg, RoarAudio, Steven Whitehouse [-- Attachment #1: Type: text/html, Size: 5010 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG kmalloc-8: Redzone overwritten) 2011-11-30 13:52 ` [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG " mike.gair @ 2011-11-30 14:52 ` Steven Whitehouse 2011-12-02 9:14 ` mike.gair 2011-12-04 19:50 ` Philipp Schafft 0 siblings, 2 replies; 24+ messages in thread From: Steven Whitehouse @ 2011-11-30 14:52 UTC (permalink / raw) To: mike.gair Cc: Philipp Schafft, Chrissie Caulfield, Christoph Lameter, David Miller, Eric Dumazet, Sasha Levin, Linux-DECnet user, linux-kernel, linux-mm, Matt Mackall, netdev, Pekka Enberg, RoarAudio Hi, On Wed, 2011-11-30 at 13:52 +0000, mike.gair@tatasteel.com wrote: > We're using decnet on linux, > as a way of expanding a control system, > using DEC PDP11s (actually charon11 emulations). > > So woud be very interested in keeping decnet supported. > > In theory i'd be interested in maintaining it, > but i'm not sure what amount of work is involved, > have no experience of kernel, or where to start. > > Any ideas? > > So the issue is basically that due to there being nobody currently maintaining the DECnet stack, it puts a burden on the core network maintainers when they make cross-protocol changes, as they have to figure out what impact the changes are likely to have on the DECnet stack. So its an extra barrier to making cross-protocol code changes. If there was an active maintainer who could be a source of knowledge (and the odd patch to help out making those changes) then this issue would largely go away. The most important duty of the maintainer is just to watch whats going on in the core networking development and to contribute the DECnet part of that. So it would be most likely be more a reviewing of patches and providing advice role, than one of writing patches (though it could be that too) and ensuring that the code continues to function correctly by testing it from time to time. The ideal maintainer would have an in-depth knowledge of the core Linux networking stack (socket layer, dst and neigh code), the DECnet specs and have a good knowledge of C. Bearing in mind the low patch volume (almost zero, except for core stuff), it would probably be one of the subsystems with the least amount of work to do in maintaining it. So in some ways, a good intro for a new maintainer. I do try and keep an eye on what get submitted to the DECnet code and I'll continue to do that while it is still in the kernel. However, it is now quite a long time since I last did any substantial work in the networking area and things have moved on a fair bit in the mean time. I don't have a lot of time to review DECnet patches these days and no way to actually test any contributions against a real DECnet implementation. So I'll provide what help I can to anybody who wants to take the role on, within those limitations. I'm also happy to answer questions about why things were done in a particular way, for example. It is good to know that people are still using the Linux DECnet code too. It has lived far beyond the time when I'd envisioned it still being useful :-) Steve. > > > > Philipp Schafft <lion@lion.leolix.org> wrote on 29/11/2011 14:47:19: > > > reflum, > > > > On Tue, 2011-11-29 at 15:34 +0100, Steven Whitehouse wrote: > > > > > Has anybody actually tested it > > > > >> lately against "real" DEC implementations? > > > > > I doubt it :-) > > > > DECnet is in use against real DEC implementations - I have > checked it > > > > quite recently against a VAX running OpenVMS. How many people > are > > > > actually using it for real work is a different question though. > > > > > > > Ok, thats useful info. > > > > I confirmed parts of it with tcpdump and the specs some weeks ago. > The > > parts I worked on passed :) I also considered to send the tcpdump > > upstream a patch for protocol decoding. > > > > > > > > It's also true that it's not really supported by anyone as I > orphaned it > > > > some time ago and nobody else seems to care enough to take it > over. So > > > > if it's becoming a burden on people doing real kernel work then > I don't > > > > think many tears will be wept for its removal. > > > > Chrissie > > > > > > Really the only issue with keeping it around is the maintenance > burden I > > > think. It doesn't look like anybody wants to take it on, but maybe > we > > > should give it another few days for someone to speak up, just in > case > > > they are on holiday or something at the moment. > > > > > > Also, I've updated the subject of the thread, to make it more > obvious > > > what is being discussed, as well as bcc'ing it again to the DECnet > list, > > > > I'm very interested in the module. However my problem is that I had > > nothing to do with kernel coding yet. However I'm currently > searching a > > new maintainer for it (I got info about this thread by today). > > If somebody is interested in this and only needs some "motivation" > or > > maybe someone would like to get me into kernel coding, please just > > reply :) > > > > -- > > Philipp. > > (Rah of PH2) > > [attachment "signature.asc" deleted by Mike Gair/UK/Corus] > > > ------------------------------------------------------------------------------ > > All the data continuously generated in your IT infrastructure > > contains a definitive record of customers, application performance, > > security threats, fraudulent activity, and more. Splunk takes this > > data and makes sense of it. IT sense. And common sense. > > http://p.sf.net/sfu/splunk-novd2d > > _______________________________________________ > > Project Home Page: http://linux-decnet.wiki.sourceforge.net/ > > > > Linux-decnet-user mailing list > > Linux-decnet-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/linux-decnet-user > > > > > ********************************************************************** > This transmission is confidential and must not be used or disclosed by > anyone other than the intended recipient. Neither Tata Steel Europe > Limited nor any of its subsidiaries can accept any responsibility for > any use or misuse of the transmission by anyone. > > For address and company registration details of certain entities > within the Tata Steel Europe group of companies, please visit > http://www.tatasteeleurope.com/entities > ********************************************************************** > -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG kmalloc-8: Redzone overwritten) 2011-11-30 14:52 ` Steven Whitehouse @ 2011-12-02 9:14 ` mike.gair 2011-12-04 19:54 ` Philipp Schafft 2011-12-04 19:50 ` Philipp Schafft 1 sibling, 1 reply; 24+ messages in thread From: mike.gair @ 2011-12-02 9:14 UTC (permalink / raw) To: Steven Whitehouse Cc: Chrissie Caulfield, Christoph Lameter, David Miller, Eric Dumazet, Sasha Levin, Linux-DECnet user, linux-kernel, linux-mm, Philipp Schafft, Matt Mackall, netdev, Pekka Enberg, RoarAudio [-- Attachment #1: Type: text/html, Size: 9625 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG kmalloc-8: Redzone overwritten) 2011-12-02 9:14 ` mike.gair @ 2011-12-04 19:54 ` Philipp Schafft 0 siblings, 0 replies; 24+ messages in thread From: Philipp Schafft @ 2011-12-04 19:54 UTC (permalink / raw) To: mike.gair Cc: Steven Whitehouse, Chrissie Caulfield, Christoph Lameter, David Miller, Eric Dumazet, Sasha Levin, Linux-DECnet user, linux-kernel, linux-mm, Matt Mackall, netdev, Pekka Enberg, RoarAudio [-- Attachment #1: Type: text/plain, Size: 689 bytes --] reflum, On Fri, 2011-12-02 at 09:14 +0000, mike.gair@tatasteel.com wrote: > I suspect I'm not up to the job, > > - definitely not got an in-depth knowledge of the core Linux > networking stack > or the DECnet specs, > Have limited, but growing experience of C, (mainly work in coral66) I'm willing to offer you help with C and the protocol stuff. I'm the current most active developer of the userland part. > But I'll have a look at code/documentation > & see if I understand any of it. Ok. If you are still interested let me know if I can help you with the above. Maybe Steven can give you some pointers for the kernel stuff. > -- Philipp. (Rah of PH2) [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 482 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG kmalloc-8: Redzone overwritten) 2011-11-30 14:52 ` Steven Whitehouse 2011-12-02 9:14 ` mike.gair @ 2011-12-04 19:50 ` Philipp Schafft 2011-12-05 1:23 ` Ben Hutchings 1 sibling, 1 reply; 24+ messages in thread From: Philipp Schafft @ 2011-12-04 19:50 UTC (permalink / raw) To: Steven Whitehouse Cc: mike.gair, Chrissie Caulfield, Christoph Lameter, David Miller, Eric Dumazet, Sasha Levin, Linux-DECnet user, linux-kernel, linux-mm, Matt Mackall, netdev, Pekka Enberg, RoarAudio [-- Attachment #1: Type: text/plain, Size: 3008 bytes --] reflum, On Wed, 2011-11-30 at 14:52 +0000, Steven Whitehouse wrote: > On Wed, 2011-11-30 at 13:52 +0000, mike.gair@tatasteel.com wrote: > > In theory i'd be interested in maintaining it, > > but i'm not sure what amount of work is involved, > > have no experience of kernel, or where to start. > > > > Any ideas? > > > > > So the issue is basically that due to there being nobody currently > maintaining the DECnet stack, it puts a burden on the core network > maintainers when they make cross-protocol changes, as they have to > figure out what impact the changes are likely to have on the DECnet > stack. So its an extra barrier to making cross-protocol code changes. > > If there was an active maintainer who could be a source of knowledge > (and the odd patch to help out making those changes) then this issue > would largely go away. *nods* > The most important duty of the maintainer is just to watch whats going > on in the core networking development and to contribute the DECnet part > of that. So it would be most likely be more a reviewing of patches and > providing advice role, than one of writing patches (though it could be > that too) and ensuring that the code continues to function correctly by > testing it from time to time. > > The ideal maintainer would have an in-depth knowledge of the core Linux > networking stack (socket layer, dst and neigh code), the DECnet specs > and have a good knowledge of C. I guess I would fit mostly but I have no idea of the kernel internal stuff. Also I'm a bit short on time. > Bearing in mind the low patch volume (almost zero, except for core > stuff), it would probably be one of the subsystems with the least amount > of work to do in maintaining it. So in some ways, a good intro for a new > maintainer. Jup. This is very true. I hope we will find a new maintainer because of exactly this point. Maybe somebody like Mike Gair. > I do try and keep an eye on what get submitted to the DECnet code and > I'll continue to do that while it is still in the kernel. However, it is > now quite a long time since I last did any substantial work in the > networking area and things have moved on a fair bit in the mean time. I > don't have a lot of time to review DECnet patches these days and no way > to actually test any contributions against a real DECnet implementation. I'm glad you are still interested. I'm always happy when I see mails from you at the DECnet for Linux list. > So I'll provide what help I can to anybody who wants to take the role > on, within those limitations. I'm also happy to answer questions about > why things were done in a particular way, for example. > > It is good to know that people are still using the Linux DECnet code > too. It has lived far beyond the time when I'd envisioned it still being > useful :-) There are still some people interested in it. Btw. on Debian popcon counts 5356 users. -- Philipp. (Rah of PH2) [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 482 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG kmalloc-8: Redzone overwritten) 2011-12-04 19:50 ` Philipp Schafft @ 2011-12-05 1:23 ` Ben Hutchings 2011-12-05 10:14 ` Philipp Schafft 0 siblings, 1 reply; 24+ messages in thread From: Ben Hutchings @ 2011-12-05 1:23 UTC (permalink / raw) To: Philipp Schafft Cc: Steven Whitehouse, mike.gair, Chrissie Caulfield, Christoph Lameter, David Miller, Eric Dumazet, Sasha Levin, Linux-DECnet user, linux-kernel, linux-mm, Matt Mackall, netdev, Pekka Enberg, RoarAudio [-- Attachment #1: Type: text/plain, Size: 1406 bytes --] On Sun, 2011-12-04 at 20:50 +0100, Philipp Schafft wrote: > reflum, > > On Wed, 2011-11-30 at 14:52 +0000, Steven Whitehouse wrote: [...] > > It is good to know that people are still using the Linux DECnet code > > too. It has lived far beyond the time when I'd envisioned it still being > > useful :-) > > There are still some people interested in it. Btw. on Debian popcon > counts 5356 users. This is grossly misleading. Here's the historical graph showing <100 installations of libdnet until early 2011: http://qa.debian.org/popcon-graph.php?packages=libdnet The increase in 2011 is not a sudden resurgence of interest; it comes from roaraudio[1] users. For some reason (a joke?) roaraudio has DECnet support and its packages depend on libdnet. You can see that the above graph is precisely correlated with this: http://qa.debian.org/popcon-graph.php?packages=libroar1 (And so far as I can work out, libroar1 is mostly being installed as a dependency of an unofficial package of Xine.) The only reason I know this is because there was a sudden spate of bug reports on the kernel due to people getting dnet-common installed as a recommendation of libdnet and then having their Ethernet MAC addresses reconfigured for DECnet. [1] Yet another audio mixing daemon Ben. -- Ben Hutchings Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG kmalloc-8: Redzone overwritten) 2011-12-05 1:23 ` Ben Hutchings @ 2011-12-05 10:14 ` Philipp Schafft 0 siblings, 0 replies; 24+ messages in thread From: Philipp Schafft @ 2011-12-05 10:14 UTC (permalink / raw) To: Ben Hutchings Cc: Steven Whitehouse, mike.gair, Chrissie Caulfield, Christoph Lameter, David Miller, Eric Dumazet, Sasha Levin, Linux-DECnet user, linux-kernel, linux-mm, Matt Mackall, netdev, Pekka Enberg, RoarAudio [-- Attachment #1: Type: text/plain, Size: 1124 bytes --] reflum, On Mon, 2011-12-05 at 01:23 +0000, Ben Hutchings wrote: > On Sun, 2011-12-04 at 20:50 +0100, Philipp Schafft wrote: > > On Wed, 2011-11-30 at 14:52 +0000, Steven Whitehouse wrote: > [...] > > > It is good to know that people are still using the Linux DECnet code > > > too. It has lived far beyond the time when I'd envisioned it still being > > > useful :-) > > > > There are still some people interested in it. Btw. on Debian popcon > > counts 5356 users. > > This is grossly misleading. Here's the historical graph showing <100 > installations of libdnet until early 2011: > http://qa.debian.org/popcon-graph.php?packages=libdnet Maybe my statement was missleading. popcon shows 5356 installs. This includes real users and non-real users. Both groups *may* be affected by droping the kernel module (in diffrent ways). > For some reason (a joke?) roaraudio has DECnet > support and its packages depend on libdnet. Maybe just because it is usefull for the RoarAudio project. Anyway, don't take the number too important. It was just a minor note. -- Philipp. (Rah of PH2) [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 482 bytes --] ^ permalink raw reply [flat|nested] 24+ messages in thread
* RE: [Linux-decnet-user] Proposed removal of DECnet support 2011-11-29 14:47 ` Philipp Schafft 2011-11-30 13:52 ` [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG " mike.gair @ 2011-11-30 14:03 ` Bob Armstrong 1 sibling, 0 replies; 24+ messages in thread From: Bob Armstrong @ 2011-11-30 14:03 UTC (permalink / raw) To: 'Philipp Schafft' Cc: 'Christoph Lameter', 'Eric Dumazet', 'netdev', 'Linux-DECnet user', 'linux-kernel', 'Pekka Enberg', 'linux-mm', 'Chrissie Caulfield', 'Sasha Levin', 'Matt Mackall', 'RoarAudio', 'David Miller', 'Steven Whitehouse' > Philipp Schafft wrote: >I'm very interested in the module. Sorry to butt in - I got this message via Philipp and the linux-decnet-user list - but I can also confirm that the linux DECnet implementation does work against real DEC hardware and software. The guys over in the HECnet group http://www.update.uu.se/~bqt/hecnet.html use it all the time. If you want access to real hardware and/or real software to test it against, contact me and I can set something up. Bob Armstrong -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* [PATCH] net: Fix corruption in /proc/*/net/dev_mcast 2011-11-21 10:15 ` Eric Dumazet 2011-11-21 10:21 ` Eric Dumazet @ 2011-11-28 7:14 ` Anton Blanchard 2011-11-28 9:55 ` Eric Dumazet 1 sibling, 1 reply; 24+ messages in thread From: Anton Blanchard @ 2011-11-28 7:14 UTC (permalink / raw) To: Eric Dumazet Cc: Sasha Levin, David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev Hi, > I got the following output when running some tests (I'm not really sure > what exactly happened when this bug was triggered): > > [13850.947279] ============================================================================= > [13850.948024] BUG kmalloc-8: Redzone overwritten > [13850.948024] ----------------------------------------------------------------------------- > [13850.948024] > [13850.948024] INFO: 0xffff8800104f6d28-0xffff8800104f6d2b. First byte 0x0 instead of 0xcc > [13850.948024] INFO: Allocated in __seq_open_private+0x20/0x5e age=4436 cpu=0 pid=17295 > [13850.948024] __slab_alloc.clone.46+0x3e7/0x456 > [13850.948024] __kmalloc+0x8c/0x110 > [13850.948024] __seq_open_private+0x20/0x5e > [13850.948024] seq_open_net+0x3b/0x5d > [13850.948024] dev_mc_seq_open+0x15/0x17 > [13850.948024] proc_reg_open+0xad/0x127 I just hit this during my testing. Isn't there another bug lurking? Anton -- With slub debugging on I see red zone issues in /proc/*/net/dev_mcast: ============================================================================= BUG kmalloc-8: Redzone overwritten ----------------------------------------------------------------------------- INFO: 0xc0000000de9dec48-0xc0000000de9dec4b. First byte 0x0 instead of 0xcc INFO: Allocated in .__seq_open_private+0x30/0xa0 age=0 cpu=5 pid=3896 .__kmalloc+0x1e0/0x2d0 .__seq_open_private+0x30/0xa0 .seq_open_net+0x60/0xe0 .dev_mc_seq_open+0x4c/0x70 .proc_reg_open+0xd8/0x260 .__dentry_open.clone.11+0x2b8/0x400 .do_last+0xf4/0x950 .path_openat+0xf8/0x480 .do_filp_open+0x48/0xc0 .do_sys_open+0x140/0x250 syscall_exit+0x0/0x40 dev_mc_seq_ops uses dev_seq_start/next/stop but only allocates sizeof(struct seq_net_private) of private data, whereas it expects sizeof(struct dev_iter_state): struct dev_iter_state { struct seq_net_private p; unsigned int pos; /* bucket << BUCKET_SPACE + offset */ }; Create dev_seq_open_ops and use it so we don't have to expose struct dev_iter_state. Signed-off-by: Anton Blanchard <anton@samba.org> --- Index: linux-net/include/linux/netdevice.h =================================================================== --- linux-net.orig/include/linux/netdevice.h 2011-11-28 17:55:51.469508056 +1100 +++ linux-net/include/linux/netdevice.h 2011-11-28 17:55:52.985535812 +1100 @@ -2536,6 +2536,8 @@ extern void net_disable_timestamp(void) extern void *dev_seq_start(struct seq_file *seq, loff_t *pos); extern void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos); extern void dev_seq_stop(struct seq_file *seq, void *v); +extern int dev_seq_open_ops(struct inode *inode, struct file *file, + const struct seq_operations *ops); #endif extern int netdev_class_create_file(struct class_attribute *class_attr); Index: linux-net/net/core/dev.c =================================================================== --- linux-net.orig/net/core/dev.c 2011-11-28 17:55:51.481508276 +1100 +++ linux-net/net/core/dev.c 2011-11-28 17:55:52.989535885 +1100 @@ -4282,6 +4282,12 @@ static int dev_seq_open(struct inode *in sizeof(struct dev_iter_state)); } +int dev_seq_open_ops(struct inode *inode, struct file *file, + const struct seq_operations *ops) +{ + return seq_open_net(inode, file, ops, sizeof(struct dev_iter_state)); +} + static const struct file_operations dev_seq_fops = { .owner = THIS_MODULE, .open = dev_seq_open, Index: linux-net/net/core/dev_addr_lists.c =================================================================== --- linux-net.orig/net/core/dev_addr_lists.c 2011-11-28 17:55:47.845441705 +1100 +++ linux-net/net/core/dev_addr_lists.c 2011-11-28 17:55:52.989535885 +1100 @@ -696,8 +696,7 @@ static const struct seq_operations dev_m static int dev_mc_seq_open(struct inode *inode, struct file *file) { - return seq_open_net(inode, file, &dev_mc_seq_ops, - sizeof(struct seq_net_private)); + return dev_seq_open_ops(inode, file, &dev_mc_seq_ops); } static const struct file_operations dev_mc_seq_fops = { -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] net: Fix corruption in /proc/*/net/dev_mcast 2011-11-28 7:14 ` [PATCH] net: Fix corruption in /proc/*/net/dev_mcast Anton Blanchard @ 2011-11-28 9:55 ` Eric Dumazet 2011-11-28 10:40 ` Daniel Baluta 2011-11-28 23:08 ` David Miller 0 siblings, 2 replies; 24+ messages in thread From: Eric Dumazet @ 2011-11-28 9:55 UTC (permalink / raw) To: Anton Blanchard Cc: Sasha Levin, David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev, Mihai Maruseac Le lundi 28 novembre 2011 A 18:14 +1100, Anton Blanchard a A(C)crit : > Hi, > > > I got the following output when running some tests (I'm not really sure > > what exactly happened when this bug was triggered): > > > > [13850.947279] ============================================================================= > > [13850.948024] BUG kmalloc-8: Redzone overwritten > > [13850.948024] ----------------------------------------------------------------------------- > > [13850.948024] > > [13850.948024] INFO: 0xffff8800104f6d28-0xffff8800104f6d2b. First byte 0x0 instead of 0xcc > > [13850.948024] INFO: Allocated in __seq_open_private+0x20/0x5e age=4436 cpu=0 pid=17295 > > [13850.948024] __slab_alloc.clone.46+0x3e7/0x456 > > [13850.948024] __kmalloc+0x8c/0x110 > > [13850.948024] __seq_open_private+0x20/0x5e > > [13850.948024] seq_open_net+0x3b/0x5d > > [13850.948024] dev_mc_seq_open+0x15/0x17 > > [13850.948024] proc_reg_open+0xad/0x127 > > I just hit this during my testing. Isn't there another bug lurking? > > Anton > -- > > > With slub debugging on I see red zone issues in /proc/*/net/dev_mcast: > > ============================================================================= > BUG kmalloc-8: Redzone overwritten > ----------------------------------------------------------------------------- > > INFO: 0xc0000000de9dec48-0xc0000000de9dec4b. First byte 0x0 instead of 0xcc > INFO: Allocated in .__seq_open_private+0x30/0xa0 age=0 cpu=5 pid=3896 > .__kmalloc+0x1e0/0x2d0 > .__seq_open_private+0x30/0xa0 > .seq_open_net+0x60/0xe0 > .dev_mc_seq_open+0x4c/0x70 > .proc_reg_open+0xd8/0x260 > .__dentry_open.clone.11+0x2b8/0x400 > .do_last+0xf4/0x950 > .path_openat+0xf8/0x480 > .do_filp_open+0x48/0xc0 > .do_sys_open+0x140/0x250 > syscall_exit+0x0/0x40 > > dev_mc_seq_ops uses dev_seq_start/next/stop but only allocates > sizeof(struct seq_net_private) of private data, whereas it expects > sizeof(struct dev_iter_state): > > struct dev_iter_state { > struct seq_net_private p; > unsigned int pos; /* bucket << BUCKET_SPACE + offset */ > }; > > Create dev_seq_open_ops and use it so we don't have to expose > struct dev_iter_state. > > Signed-off-by: Anton Blanchard <anton@samba.org> > --- > > Index: linux-net/include/linux/netdevice.h > =================================================================== > --- linux-net.orig/include/linux/netdevice.h 2011-11-28 17:55:51.469508056 +1100 > +++ linux-net/include/linux/netdevice.h 2011-11-28 17:55:52.985535812 +1100 > @@ -2536,6 +2536,8 @@ extern void net_disable_timestamp(void) > extern void *dev_seq_start(struct seq_file *seq, loff_t *pos); > extern void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos); > extern void dev_seq_stop(struct seq_file *seq, void *v); > +extern int dev_seq_open_ops(struct inode *inode, struct file *file, > + const struct seq_operations *ops); > #endif > > extern int netdev_class_create_file(struct class_attribute *class_attr); > Index: linux-net/net/core/dev.c > =================================================================== > --- linux-net.orig/net/core/dev.c 2011-11-28 17:55:51.481508276 +1100 > +++ linux-net/net/core/dev.c 2011-11-28 17:55:52.989535885 +1100 > @@ -4282,6 +4282,12 @@ static int dev_seq_open(struct inode *in > sizeof(struct dev_iter_state)); > } > > +int dev_seq_open_ops(struct inode *inode, struct file *file, > + const struct seq_operations *ops) > +{ > + return seq_open_net(inode, file, ops, sizeof(struct dev_iter_state)); > +} > + > static const struct file_operations dev_seq_fops = { > .owner = THIS_MODULE, > .open = dev_seq_open, > Index: linux-net/net/core/dev_addr_lists.c > =================================================================== > --- linux-net.orig/net/core/dev_addr_lists.c 2011-11-28 17:55:47.845441705 +1100 > +++ linux-net/net/core/dev_addr_lists.c 2011-11-28 17:55:52.989535885 +1100 > @@ -696,8 +696,7 @@ static const struct seq_operations dev_m > > static int dev_mc_seq_open(struct inode *inode, struct file *file) > { > - return seq_open_net(inode, file, &dev_mc_seq_ops, > - sizeof(struct seq_net_private)); > + return dev_seq_open_ops(inode, file, &dev_mc_seq_ops); > } > > static const struct file_operations dev_mc_seq_fops = { Good catch, thanks ! Problem added by commit f04565ddf52e4 (dev: use name hash for dev_seq_ops) Acked-by: Eric Dumazet <eric.dumazet@gmail.com> CC: Mihai Maruseac <mihai.maruseac@gmail.com> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] net: Fix corruption in /proc/*/net/dev_mcast 2011-11-28 9:55 ` Eric Dumazet @ 2011-11-28 10:40 ` Daniel Baluta 2011-11-28 23:08 ` David Miller 1 sibling, 0 replies; 24+ messages in thread From: Daniel Baluta @ 2011-11-28 10:40 UTC (permalink / raw) To: Eric Dumazet, Anton Blanchard Cc: Sasha Levin, David Miller, Matt Mackall, Christoph Lameter, Pekka Enberg, linux-mm, linux-kernel, netdev, Mihai Maruseac >> dev_mc_seq_ops uses dev_seq_start/next/stop but only allocates >> sizeof(struct seq_net_private) of private data, whereas it expects >> sizeof(struct dev_iter_state): >> >> struct dev_iter_state { >> struct seq_net_private p; >> unsigned int pos; /* bucket << BUCKET_SPACE + offset */ >> }; >> >> Create dev_seq_open_ops and use it so we don't have to expose >> struct dev_iter_state. Good catch, indeed! We've now checked and this is the only place where the problem happens. >> +int dev_seq_open_ops(struct inode *inode, struct file *file, >> + const struct seq_operations *ops) >> +{ >> + return seq_open_net(inode, file, ops, sizeof(struct dev_iter_state)); >> +} Perhaps you could use this function also in dev_seq_open (dev.c:4280). >> static int dev_mc_seq_open(struct inode *inode, struct file *file) >> { >> - return seq_open_net(inode, file, &dev_mc_seq_ops, >> - sizeof(struct seq_net_private)); >> + return dev_seq_open_ops(inode, file, &dev_mc_seq_ops); >> } >> >> static const struct file_operations dev_mc_seq_fops = { thanks, Daniel. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [PATCH] net: Fix corruption in /proc/*/net/dev_mcast 2011-11-28 9:55 ` Eric Dumazet 2011-11-28 10:40 ` Daniel Baluta @ 2011-11-28 23:08 ` David Miller 1 sibling, 0 replies; 24+ messages in thread From: David Miller @ 2011-11-28 23:08 UTC (permalink / raw) To: eric.dumazet Cc: anton, levinsasha928, mpm, cl, penberg, linux-mm, linux-kernel, netdev, mihai.maruseac From: Eric Dumazet <eric.dumazet@gmail.com> Date: Mon, 28 Nov 2011 10:55:16 +0100 >> With slub debugging on I see red zone issues in /proc/*/net/dev_mcast: >> >> ============================================================================= >> BUG kmalloc-8: Redzone overwritten >> ----------------------------------------------------------------------------- ... >> dev_mc_seq_ops uses dev_seq_start/next/stop but only allocates >> sizeof(struct seq_net_private) of private data, whereas it expects >> sizeof(struct dev_iter_state): >> >> struct dev_iter_state { >> struct seq_net_private p; >> unsigned int pos; /* bucket << BUCKET_SPACE + offset */ >> }; >> >> Create dev_seq_open_ops and use it so we don't have to expose >> struct dev_iter_state. >> >> Signed-off-by: Anton Blanchard <anton@samba.org> ... > Problem added by commit f04565ddf52e4 (dev: use name hash for > dev_seq_ops) > > > Acked-by: Eric Dumazet <eric.dumazet@gmail.com> > CC: Mihai Maruseac <mihai.maruseac@gmail.com> Applied, thanks everyone. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2011-12-05 10:15 UTC | newest] Thread overview: 24+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-11-21 9:14 [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten Sasha Levin 2011-11-21 10:15 ` Eric Dumazet 2011-11-21 10:21 ` Eric Dumazet 2011-11-21 10:22 ` Sasha Levin 2011-11-26 10:54 ` Sasha Levin 2011-11-26 10:59 ` Eric Dumazet 2011-11-26 20:49 ` David Miller 2011-11-21 10:58 ` Steven Whitehouse 2011-11-26 20:50 ` David Miller 2011-11-28 9:58 ` Christine Caulfield 2011-11-28 14:22 ` Proposed removal of DECnet support (was: Re: [BUG] 3.2-rc2: BUG kmalloc-8: Redzone overwritten) Steven Whitehouse 2011-11-29 14:47 ` Philipp Schafft 2011-11-30 13:52 ` [Linux-decnet-user] Proposed removal of DECnet support (was:Re: [BUG] 3.2-rc2:BUG " mike.gair 2011-11-30 14:52 ` Steven Whitehouse 2011-12-02 9:14 ` mike.gair 2011-12-04 19:54 ` Philipp Schafft 2011-12-04 19:50 ` Philipp Schafft 2011-12-05 1:23 ` Ben Hutchings 2011-12-05 10:14 ` Philipp Schafft 2011-11-30 14:03 ` [Linux-decnet-user] Proposed removal of DECnet support Bob Armstrong 2011-11-28 7:14 ` [PATCH] net: Fix corruption in /proc/*/net/dev_mcast Anton Blanchard 2011-11-28 9:55 ` Eric Dumazet 2011-11-28 10:40 ` Daniel Baluta 2011-11-28 23:08 ` David Miller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).