Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753066AbbBRVAx (ORCPT ); Wed, 18 Feb 2015 16:00:53 -0500 Received: from mail-we0-f178.google.com ([74.125.82.178]:36491 "EHLO mail-we0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752136AbbBRVAw (ORCPT ); Wed, 18 Feb 2015 16:00:52 -0500 MIME-Version: 1.0 In-Reply-To: <54E4CE32.4020004@redhat.com> References: <54E4CE32.4020004@redhat.com> Date: Wed, 18 Feb 2015 23:00:50 +0200 Message-ID: Subject: Re: BUG v3.19: reference count warning when removing scsi_debug device From: Tomas Winkler To: David Milburn Cc: linux-scsi@vger.kernel.org, "linux-kernel@vger.kernel.org" , "James E.J. Bottomley" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4437 Lines: 87 On Wed, Feb 18, 2015 at 7:38 PM, David Milburn wrote: > On 02/18/2015 07:22 AM, Tomas Winkler wrote: >> >> reference count warning when removing scsi_debug device >> >> ARNING: CPU: 2 PID: 16732 at kernel/module.c:954 module_put+0xc9/0xd0() >> [150550.918033] Modules linked in: scsi_debug(-) pci_stub vboxpci(O) >> vboxnetadp(O) vboxnetflt(O) vboxdrv(O) nfsv3 rfcomm bnep bluetooth >> rpcsec_gss_krb5 nfsv4 hid_generic usbhid pl2303 hid usbserial >> snd_hda_codec_hdmi i915 x86_pkg_temp_thermal coretemp kvm_intel >> drm_kms_helper kvm drm nfsd snd_hda_codec_realtek >> snd_hda_codec_generic ghash_clmulni_intel snd_hda_intel aesni_intel >> aes_x86_64 ablk_helper cryptd snd_hda_controller snd_hda_codec >> auth_rpcgss snd_hwdep snd_pcm oid_registry nfs_acl nfs snd_seq_midi >> snd_seq_midi_event snd_rawmidi snd_seq lrw gf128mul snd_seq_device >> snd_timer snd glue_helper microcode mei_me psmouse i2c_algo_bit mei >> video tpm_infineon tpm_tis r8169 soundcore serio_raw mii lockd lpc_ich >> mac_hid grace sunrpc fscache binfmt_misc nls_iso8859_1 parport_pc >> ppdev lp parport [last unloaded: scsi_debug] >> [150550.918069] CPU: 2 PID: 16732 Comm: modprobe Tainted: G W >> IO 3.19.0-rc5+ #1 >> [150550.918070] Hardware name: Gigabyte Technology Co., Ltd. >> H87M-D3H/H87M-D3H, BIOS F6 08/03/2013 >> [150550.918071] ffffffff81a85373 ffff880229f9bb88 ffffffff8175a6cb >> 0000000000000000 >> [150550.918072] 0000000000000000 ffff880229f9bbc8 ffffffff8105382a >> ffffffff81ccf320 >> [150550.918074] ffffffffa070fba0 ffffffffa070fba0 ffff88022a136010 >> 0000000000800010 >> [150550.918076] Call Trace: >> [150550.918081] [] dump_stack+0x4c/0x65 >> [150550.918084] [] warn_slowpath_common+0x8a/0xc0 >> [150550.918086] [] warn_slowpath_null+0x1a/0x20 >> [150550.918088] [] module_put+0xc9/0xd0 >> [150550.918090] [] scsi_device_put+0x48/0x50 >> [150550.918092] [] scsi_disk_put+0x32/0x50 >> [150550.918093] [] sd_shutdown+0x8c/0x150 >> [150550.918095] [] sd_remove+0x69/0xc0 >> [150550.918097] [] __device_release_driver+0x7f/0xf0 >> [150550.918099] [] device_release_driver+0x25/0x40 >> [150550.918101] [] bus_remove_device+0x124/0x1b0 >> [150550.918103] [] device_del+0x13e/0x250 >> [150550.918105] [] __scsi_remove_device+0xcd/0xe0 >> [150550.918107] [] scsi_forget_host+0x6f/0x80 >> [150550.918108] [] scsi_remove_host+0x86/0x140 >> [150550.918112] [] sdebug_driver_remove+0x29/0x90 >> [scsi_debug] >> [150550.918113] [] __device_release_driver+0x7f/0xf0 >> [150550.918114] [] device_release_driver+0x25/0x40 >> [150550.918116] [] bus_remove_device+0x124/0x1b0 >> [150550.918117] [] device_del+0x13e/0x250 >> [150550.918119] [] device_unregister+0x22/0x70 >> [150550.918121] [] sdebug_remove_adapter+0x50/0x80 >> [scsi_debug] >> [150550.918123] [] scsi_debug_exit+0x84/0x85f >> [scsi_debug] >> [150550.918125] [] SyS_delete_module+0x18c/0x210 >> [150550.918129] [] ? int_with_check+0x27/0x69 >> [150550.918131] [] system_call_fastpath+0x12/0x17 >> [150550.918132] ---[ end trace 1f300c62b0658728 ]--- >> [150550.935994] sd 7:0:0:1: [sdc] Synchronizing SCSI cache >> [150550.936017] ------------[ cut here ]------------ >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> Please read the FAQ at http://www.tux.org/lkml/ >> > > Hi Tomas, > > I think that was fixed 3.19-rc7 > > commit dc4515ea26d6c7fed3d978cd2bd36adc0d057bc5 > Author: Rusty Russell > Date: Fri Jan 23 13:22:47 2015 +1030 > > scsi: always increment reference count > Thanks, I was running in 3.19-rc5 Tomas -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/