Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754358AbbBRRjq (ORCPT ); Wed, 18 Feb 2015 12:39:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51941 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754237AbbBRRjm (ORCPT ); Wed, 18 Feb 2015 12:39:42 -0500 Message-ID: <54E4CE32.4020004@redhat.com> Date: Wed, 18 Feb 2015 11:38:58 -0600 From: David Milburn User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Tomas Winkler , linux-scsi@vger.kernel.org, "linux-kernel@vger.kernel.org" , "James E.J. Bottomley" Subject: Re: BUG v3.19: reference count warning when removing scsi_debug device References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4248 Lines: 86 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, David -- 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/