Received: by 10.213.65.68 with SMTP id h4csp693398imn; Fri, 23 Mar 2018 13:42:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELu7c0CXazL6OAX046+nQqEKMwXalYm9/NvKu73GBiRIk50ES1UXc1Oery3yFTX0Imbg/Oh+ X-Received: by 10.98.104.71 with SMTP id d68mr15897879pfc.116.1521837762683; Fri, 23 Mar 2018 13:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521837762; cv=none; d=google.com; s=arc-20160816; b=XB5isC/MUTqlNHR0H+KiB5aDNAOAnhqA68Vs6vjX7/qcMStA0rsCMJhoybwiCv1aDC yeANNKkI/YlHf2SO4da/6fKJFbOz1vmfaEz19dHY/C+bvK+un6FUKkM269Vxh5KAVpEg o0gJipZFGVvihw3Ck4+a74Lpls4VegpigObZBHayPcvhBefNm92EspFHtFKh4X6gYcQt +Pajn8u7YmXs0m1tnyYHe+3FteDByvU/iXeW7pg4InhZDP4Y0mYa0hxEe+K8GldK0QvT A/S+SGXK98Opv/1nYTPn1rqsTWEvCfueD5D+7Hlt+JHQwhek8ShqWCDhubSwOE9ExPwT N95w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=uRz995XxOBykFV47+27lRkOH/szhAipmOI3WhP1Quk4=; b=erzibmUtT+YxawzCkVtyTIVzRZC8boOaAhmKXli7ig5ItGHm+MEyoiaqFtrRIIrkcS HZvZxGQA4SJWqJshZzErqeUXr/edwNztb8k9NPcwXlO1VCvS/TPeCaVsxf38rXmUr9zi S/IPpcPXgNNgdpv5AFU4TdeBPSQOPPK27dvOwB1rycUKh6DW5BOgTJM1cIivs78jl5sS aMhuQ7ckQnWOgrT5KhW3IXP1/lcVZO5qUIVmRERvA4KgKGbF4S4LEJW5nNl4+RASKbeM o94hQjVnnmycyVZFZmwRsx29NFKldk6fnAtqtvB0trPluya5Dv7qdb4QMqOR9TpvnZXX qZiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j70si6560205pgc.548.2018.03.23.13.42.27; Fri, 23 Mar 2018 13:42:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751899AbeCWUle (ORCPT + 99 others); Fri, 23 Mar 2018 16:41:34 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:42307 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbeCWUlc (ORCPT ); Fri, 23 Mar 2018 16:41:32 -0400 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ezTVA-0002qc-Sx; Fri, 23 Mar 2018 21:41:29 +0100 Date: Fri, 23 Mar 2018 21:41:28 +0100 (CET) From: Thomas Gleixner To: Joel Fernandes cc: Paul McKenney , LKML , Todd Poynor , netdev@vger.kernel.org Subject: Re: syzbot rcu/debugobjects warning In-Reply-To: Message-ID: References: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Mar 2018, Joel Fernandes wrote: > On Fri, Mar 23, 2018 at 2:11 AM, Thomas Gleixner wrote: > > On Thu, 22 Mar 2018, Joel Fernandes wrote: > Sorry. Here is the raw crash log: https://pastebin.com/raw/puvh0cXE > (The kernel logs are toward the end with the above). And that is interesting: [ 150.629667] [ 150.631700] [] dump_stack+0xc1/0x128 [ 150.637051] [] ? __debug_object_init+0x526/0xc40 [ 150.643431] [] panic+0x1bc/0x3a8 [ 150.648416] [] ? percpu_up_read_preempt_enable.constprop.53+0xd7/0xd7 [ 150.656611] [] ? load_image_and_restore+0xf9/0xf9 [ 150.663070] [] ? vprintk_default+0x1d/0x30 [ 150.668925] [] ? __warn+0x1a9/0x1e0 [ 150.674170] [] ? __debug_object_init+0x526/0xc40 [ 150.680543] [] __warn+0x1c4/0x1e0 [ 150.685614] [] warn_slowpath_null+0x2c/0x40 [ 150.691972] [] __debug_object_init+0x526/0xc40 [ 150.698174] [] ? debug_object_fixup+0x30/0x30 [ 150.704283] [] debug_object_init_on_stack+0x19/0x20 [ 150.710917] [] __wait_rcu_gp+0x93/0x1b0 [ 150.716508] [] synchronize_rcu.part.65+0x101/0x110 [ 150.723054] [] ? rcu_pm_notify+0xc0/0xc0 [ 150.728735] [] ? __call_rcu.constprop.72+0x910/0x910 [ 150.735459] [] ? __lock_is_held+0xa1/0xf0 [ 150.741223] [] synchronize_rcu+0x27/0x90 So this calls synchronize_rcu from a rcu callback. That's a nono. This is on the back of an interrupt in softirq context and __wait_rcu_gp() can sleep, which is obviously a bad idea in softirq context.... Cc'ed netdev .... And that also explains the debug object splat because this is not running on the task stack. It's running on the softirq stack .... [ 150.746908] [] __l2tp_session_unhash+0x3d5/0x550 [ 150.753281] [] ? __l2tp_session_unhash+0x1bf/0x550 [ 150.759828] [] ? __local_bh_enable_ip+0x6a/0xd0 [ 150.766123] [] ? l2tp_udp_encap_recv+0xd90/0xd90 [ 150.772497] [] l2tp_tunnel_closeall+0x1e7/0x3a0 [ 150.778782] [] l2tp_tunnel_destruct+0x30e/0x5a0 [ 150.785067] [] ? l2tp_tunnel_destruct+0x1aa/0x5a0 [ 150.791537] [] ? l2tp_tunnel_del_work+0x460/0x460 [ 150.797997] [] __sk_destruct+0x53/0x570 [ 150.803588] [] rcu_process_callbacks+0x898/0x1300 [ 150.810048] [] ? rcu_process_callbacks+0x977/0x1300 [ 150.816684] [] ? __sk_dst_check+0x240/0x240 [ 150.822625] [] __do_softirq+0x206/0x951 [ 150.828223] [] irq_exit+0x165/0x190 [ 150.833557] [] smp_apic_timer_interrupt+0x7b/0xa0 [ 150.840018] [] apic_timer_interrupt+0xa0/0xb0 [ 150.846132] [ 150.848166] [] ? native_safe_halt+0x6/0x10 [ 150.854036] [] ? trace_hardirqs_on+0xd/0x10 [ 150.859973] [] default_idle+0x55/0x360 [ 150.865478] [] arch_cpu_idle+0xa/0x10 [ 150.870896] [] default_idle_call+0x36/0x60 [ 150.876751] [] cpu_startup_entry+0x2b0/0x380 [ 150.882787] [] ? cpu_in_idle+0x20/0x20 [ 150.888291] [] ? clockevents_register_device+0x123/0x200 [ 150.895358] [] start_secondary+0x303/0x3e0 [ 150.901209] [] ? set_cpu_sibling_map+0x11f0/0x11f0 Thanks, tglx