From mboxrd@z Thu Jan 1 00:00:00 1970 From: NeilBrown Subject: Re: Potential Bug in "echo 0 > /dev/md0" Date: Thu, 19 Feb 2015 08:32:37 +1100 Message-ID: <20150219083237.46e917c1@notabene.brown> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/M7RKdhkc_BXtYLOVzrgyXdN"; protocol="application/pgp-signature" Return-path: In-Reply-To: Sender: linux-raid-owner@vger.kernel.org To: Alireza Haghdoost Cc: Linux RAID List-Id: linux-raid.ids --Sig_/M7RKdhkc_BXtYLOVzrgyXdN Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Wed, 18 Feb 2015 10:11:20 -0600 Alireza Haghdoost wrote: > I understand this is not the right way to talk with md device but my > understanding is that if some one run this command by mistake (or > vandalism) , it should not results a kernel crash: >=20 > [root] [ /home/arh ] > # echo 0 > /dev/md0 >=20 > [root] [ /home/arh ] > # dmesg > [1463111.320277] BUG: soft lockup - CPU#4 stuck for 22s! [whoopsie:1829] > [1463111.320284] Modules linked in: ib_iser rdma_cm ib_addr iw_cm > ib_cm ib_sa ib_mad ib_core iscsi_tcp libiscsi_tcp libiscsi bnep rfcomm > bluetooth intel_rapl x86_pkg_temp_thermal intel_powerclamp nfsd > coretemp kvm_intel kvm joydev auth_rpcgss crct10dif_pclmul > crc32_pclmul gpio_ich mei_me ghash_clmulni_intel nfs_acl > acpi_power_meter aesni_intel aes_x86_64 nfs glue_helper mei lrw > gf128mul lpc_ich ablk_helper cryptd sb_edac dcdbas edac_core shpchp > wmi mac_hid lockd sunrpc parport_pc ppdev ipmi_si ipmi_devintf fscache > lp parport hid_generic ixgbe tg3 usbhid dca ahci mdio hid libahci ptp > pps_core > [1463111.320326] CPU: 4 PID: 1829 Comm: whoopsie Tainted: G D W ^^^^^^^^ What is "whoopsie" ??? > 3.13.0Write-Hole-Monitor #47 ^^^^^^^^^^^^^^^^^^^ What is "Write-Hole-Monitor". There is no evidence that this is related to RAID, except that it presumably happens at about the same time that you write to /dev/md0. It certainly isn't running and md/raid code when it reports a soft-lockup. NeilBrown > [1463111.320328] Hardware name: Dell Inc. PowerEdge R420/0JD6X3, BIOS > 2.1.3 05/21/2014 > [1463111.320329] task: ffff8801a425c7d0 ti: ffff8801a3e04000 task.ti: > ffff8801a3e04000 > [1463111.320331] RIP: 0010:[] [] > smp_call_function_single+0xc6/0x190 > [1463111.320335] RSP: 0000:ffff8801a3e05a60 EFLAGS: 00000202 > [1463111.320336] RAX: 0000000000000001 RBX: ffffffff813624f4 RCX: > 0000000000000000 > [1463111.320338] RDX: ffff8801a3e05ad8 RSI: ffff8801a9a54e80 RDI: > 0000000000000001 > [1463111.320339] RBP: ffff8801a3e05ac8 R08: ffff8801a3e05b70 R09: > 0000000000000000 > [1463111.320341] R10: 0000000000000000 R11: 0000000000000000 R12: > ffff88031e6bec80 > [1463111.320342] R13: ffff880035d70700 R14: ffff8801a9a54400 R15: > ffff88031e6bec80 > [1463111.320344] FS: 00007f9ae4924840(0000) GS:ffff8801a9a40000(0000) > knlGS:0000000000000000 > [1463111.320346] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [1463111.320347] CR2: 00007f9ae43bc280 CR3: 00000001a3adc000 CR4: > 00000000000407e0 > [1463111.320349] Stack: > [1463111.320350] ffff8801a3e05af8 ffffffff8178f5ae 0000000000000000 > 0000000000000000 > [1463111.320353] 0000000000000000 0000000000000000 0000000000000000 > ffff8801a9a54480 > [1463111.320357] 0000000000000002 0000000000000001 ffff8801a3e05b70 > 0000000000000004 > [1463111.320360] Call Trace: > [1463111.320364] [] ? > schedule_hrtimeout_range_clock+0xce/0x170 > [1463111.320367] [] stop_two_cpus+0x14c/0x1a0 > [1463111.320369] [] ? cpu_stop_should_run+0x50/0x50 > [1463111.320372] [] ? cpu_stop_should_run+0x50/0x50 > [1463111.320375] [] ? __migrate_swap_task.part.68+0x80= /0x80 > [1463111.320378] [] migrate_swap+0x8a/0xa0 > [1463111.320381] [] task_numa_migrate+0x1d3/0x480 > [1463111.320384] [] numa_migrate_preferred+0x53/0x60 > [1463111.320386] [] task_numa_fault+0x26f/0x890 > [1463111.320390] [] do_numa_page+0x13e/0x1a0 > [1463111.320394] [] handle_mm_fault+0x5e3/0xe30 > [1463111.320396] [] ? change_protection+0x690/0x720 > [1463111.320399] [] __do_page_fault+0x154/0x570 > [1463111.320403] [] ? change_prot_numa+0x1b/0x40 > [1463111.320405] [] ? task_numa_work+0x266/0x300 > [1463111.320408] [] do_page_fault+0x1a/0x70 > [1463111.320412] [] ? do_notify_resume+0x97/0xb0 > [1463111.320414] [] page_fault+0x28/0x30 > [1463111.320415] Code: 00 00 00 85 c9 48 8d 74 24 10 75 1b 48 c7 c6 80 > 4e 01 00 65 48 03 34 25 c8 dc 00 00 0f b7 46 20 a8 01 74 0b 90 f3 90 > 0f b7 46 20 01 75 f6 83 c8 01 66 89 46 20 0f ae f0 48 89 56 18 4c > 89 76 > [1463111.344253] BUG: soft lockup - CPU#6 stuck for 22s! [Xorg:1842] > [1463111.344254] Modules linked in: ib_iser rdma_cm ib_addr iw_cm > ib_cm ib_sa ib_mad ib_core iscsi_tcp libiscsi_tcp libiscsi bnep rfcomm > bluetooth intel_rapl x86_pkg_temp_thermal intel_powerclamp nfsd > coretemp kvm_intel kvm joydev auth_rpcgss crct10dif_pclmul > crc32_pclmul gpio_ich mei_me ghash_clmulni_intel nfs_acl > acpi_power_meter aesni_intel aes_x86_64 nfs glue_helper mei lrw > gf128mul lpc_ich ablk_helper cryptd sb_edac dcdbas edac_core shpchp > wmi mac_hid lockd sunrpc parport_pc ppdev ipmi_si ipmi_devintf fscache > lp parport hid_generic ixgbe tg3 usbhid dca ahci mdio hid libahci ptp > pps_core > [1463111.344298] CPU: 6 PID: 1842 Comm: Xorg Tainted: G D W > 3.13.0Write-Hole-Monitor #47 > [1463111.344299] Hardware name: Dell Inc. PowerEdge R420/0JD6X3, BIOS > 2.1.3 05/21/2014 > [1463111.344302] task: ffff8800367b8000 ti: ffff880035f9e000 task.ti: > ffff880035f9e000 > [1463111.344303] RIP: 0010:[] [] > smp_call_function_single+0xc6/0x190 > [1463111.344306] RSP: 0000:ffff880035f9fa60 EFLAGS: 00003202 > [1463111.344308] RAX: 0000000000000001 RBX: 0000000000400000 RCX: > 0000000000000000 > [1463111.344309] RDX: ffff880035f9fad8 RSI: ffff8801a9a74e80 RDI: > 0000000000000003 > [1463111.344311] RBP: ffff880035f9fac8 R08: ffff880035f9fb70 R09: > 0000000000000000 > [1463111.344312] R10: 0000000000000000 R11: 0000000000000000 R12: > 00000000003fc02a > [1463111.344313] R13: ffffffff811ca5fc R14: ffff880035f9f9f0 R15: > ffffffff81150fa3 > [1463111.344315] FS: 00007f2f338019c0(0000) GS:ffff8801a9a60000(0000) > knlGS:0000000000000000 > [1463111.344317] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [1463111.344318] CR2: 00007f2f344fdedc CR3: 000000031dd2b000 CR4: > 00000000000407e0 > [1463111.344320] Stack: > [1463111.344321] ffff880035f9fdf8 ffff880035f9fdf0 0000000000000000 > 0000000000000000 > [1463111.344324] 0000000000000000 0000000000000000 0000000000000000 > ffff8801a9a74480 > [1463111.344327] 0000000000000002 0000000000000003 ffff880035f9fb70 > 0000000000000006 > [1463111.344330] Call Trace: > [1463111.344334] [] stop_two_cpus+0x14c/0x1a0 > [1463111.344336] [] ? cpu_stop_should_run+0x50/0x50 > [1463111.344339] [] ? cpu_stop_should_run+0x50/0x50 > [1463111.344342] [] ? __migrate_swap_task.part.68+0x80= /0x80 > [1463111.344345] [] migrate_swap+0x8a/0xa0 > [1463111.344347] [] task_numa_migrate+0x1d3/0x480 > [1463111.344351] [] ? poll_select_copy_remaining+0x130= /0x130 > [1463111.344354] [] numa_migrate_preferred+0x53/0x60 > [1463111.344356] [] task_numa_fault+0x680/0x890 > [1463111.344360] [] do_numa_page+0x13e/0x1a0 > [1463111.344363] [] handle_mm_fault+0x5e3/0xe30 > [1463111.344366] [] __do_page_fault+0x154/0x570 > [1463111.344368] [] ? do_readv_writev+0x169/0x220 > [1463111.344371] [] ? timerqueue_del+0x24/0x70 > [1463111.344374] [] ? __remove_hrtimer+0x46/0xa0 > [1463111.344377] [] ? hrtimer_try_to_cancel+0x48/0xe0 > [1463111.344380] [] ? do_setitimer+0xe3/0x2a0 > [1463111.344382] [] do_page_fault+0x1a/0x70 > [1463111.344385] [] page_fault+0x28/0x30 > [1463111.344386] Code: 00 00 00 85 c9 48 8d 74 24 10 75 1b 48 c7 c6 80 > 4e 01 00 65 48 03 34 25 c8 dc 00 00 0f b7 46 20 a8 01 74 0b 90 f3 90 > 0f b7 46 20 01 75 f6 83 c8 01 66 89 46 20 0f ae f0 48 89 56 18 4c > 89 76 > [root] [ /home/arh ] > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html --Sig_/M7RKdhkc_BXtYLOVzrgyXdN Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIVAwUBVOUE9Tnsnt1WYoG5AQKQoQ//ab5njifHVsvQHDa0nVM8By6rJ5scFJqT cv1LsAiAUzdoswl0mSdNIyNWPQ9zlrEdBgRCqRme0akNEuFJOnjGxdYTu4Gm8Cba owxRS4+qHDyNglohxcO4fQkw48EVuolq5g2nQ6gfdoCPiz96lqNGzYCE/VD+8vgt 00TuhxmDQAgCYL/pouZk5/9joskYhQN5x/uD5Mrw+c2J8cWKvOgsTUUszWl1Jbd/ /wqYAuY6oK76HXIBMvFNO4pLG6wDirqysLUnezAXXOdvAlnMDWHGKyLv23ln/xjM 93FHKliEKx0XZN3dbN02cJZSyzMM027KYTXmILtIU5V54SXjjGxFpIKT4PAEFZxU VGq0y22qX25QLKR9tCoJpIyy9PJ+qlyoKumveV90ZgjioIn3vbos5tzblzsAd+hs 2MmJof+tqh17LAZvej0FkI/tcdpexkr9zmuGqZWBE4dWXmDAXd5di+vT0Og1r8g1 jEuOWxfdBMrtgurLRYOHLG34Ck0W2tjPp+vOtHlFlpndwGv5Ax+CfFLu7TCScdwj iPfDY2UR4WfoGe34va2bRmeN+64rC16PCQJbpAT4ZLBhc6AYZ3RIjWzrFPffT1I6 YHOXjwlYmypCDezPe9lxIfBIJD8o4La+DMnZt8xn9zPEIAp2YsYTPxvhbY8YYU1f 2ny1jH0OKKc= =M7uW -----END PGP SIGNATURE----- --Sig_/M7RKdhkc_BXtYLOVzrgyXdN--