From: Ivan Shapovalov Subject: Re: reiser4: BUG during a backup (sequentially reading the whole fs) on 4.9 Date: Mon, 27 Feb 2017 19:20:21 +0300 Message-ID: <1488212421.5395.3.camel@intelfx.name> References: <1488211296.5395.2.camel@intelfx.name> Reply-To: intelfx@intelfx.name Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-kIyRGE74t+ZkmMeRUwHk" Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intelfx.name; s=google; h=message-id:subject:from:reply-to:to:date:in-reply-to:references :mime-version; bh=lbf4zXDpwuMvXhzdaWmklmhrhM5DNwtwnGZ2A/YNAb8=; b=AFZstshML6rZ1QUhSwg05LgmfrYpBXlMA18BOYt3FTNBydcQEOANBkGt0W+Z8V/BPa 8fAi/LOIB2kdm7WvHJ4x+Oq1BXKowBgk6LOPJ4ojBfd3Fn3sQ9jwltpWOuOp6qUqnsD3 Z/MbMGAt0JsSEQsDkw1TfV6TpUCFZPNQdVgD8= In-Reply-To: Sender: reiserfs-devel-owner@vger.kernel.org List-ID: To: Edward Shishkin , Reiserfs development mailing list --=-kIyRGE74t+ZkmMeRUwHk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm on this one: commit 40d2771c607aab3817f21c394ae39e3fba11aa2f Author: Edward Shishkin Date: Thu Jan 26 13:16:39 2017 +0100 Reiser4: use vmalloc instead of kmalloc to alloacte zhash table Signed-off-by: Edward Shishkin --=20 Ivan Shapovalov / intelfx / On 2017-02-27 at 17:17 +0100, Edward Shishkin wrote: > There are 4 patches for 4.9. Which one do you use? > Or please provide commit id, if you use git. >=20 > Thanks, > Edward. >=20 > On 02/27/2017 05:01 PM, Ivan Shapovalov wrote: > > Hi, > >=20 > > I've just encountered this crash when I was doing a full-fs backup > > (linux 4.9): > >=20 > > [ 3125.760693] BUG: unable to handle kernel NULL pointer > > dereference at 0000000000000010 > > [ 3125.760722] IP: [] internal_at+0x1/0x30 > > [reiser4] > > [ 3125.760749] PGD 1dc4d8067 > > [ 3125.760756] PUD 119275067 > > [ 3125.760764] PMD 0 > >=20 > > [ 3125.760772] Oops: 0000 [#1] PREEMPT SMP > > [ 3125.760782] Modules linked in: ext4 jbd2 mbcache ctr ccm fuse > > cmac arc4 acpi_call(O) bnep ipheth btusb uvcvideo btintel bluetooth > > videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core > > videodev uas crc16 bbswitch(O) coretemp i > > ntel_rapl x86_pkg_temp_thermal intel_powerclamp > > snd_hda_codec_realtek kvm_intel snd_hda_codec_generic mei_wdt > > snd_hda_codec_hdmi kvm irqbypass crc32_pclmul ghash_clmulni_intel > > iTCO_wdt aesni_intel iTCO_vendor_support aes_x86_64 lrw gf128mul > > ath10k_pci snd_hda_intel glue_helper ath10k_core snd_hda_codec > > ablk_helper cryptd ath mac80211 cfg80211 psmouse snd_hwdep > > snd_hda_core thinkpad_acpi input_leds pcspkr e1000e i2c_i801 > > snd_pcm i2c_smbus nvram mei_me snd_timer mei rtsx_pci_ms lpc_ich > > snd memstick ptp led_class pps_core tpm_tis hwmon tpm_tis_core > > rfkill wmi soundcore > > [ 3125.761006]=C2=A0=C2=A0thermal ac tpm evdev battery sch_fq_codel > > vboxnetflt(O) vboxnetadp(O) vboxpci(O) vboxdrv(O) usbserial > > usbip_host usbip_core sg efivarfs ip_tables x_tables autofs4 > > reiser4 sd_mod hid_logitech_hidpp hid_logitech_dj usbhid hid > > usb_storage rtsx_pci_sdmmc mmc_core crc32c_intel ahci libahci > > libata xhci_pci serio_raw ehci_pci scsi_mod xhci_hcd ehci_hcd > > rtsx_pci mfd_core usbcore usb_common i915 video backlight button > > intel_gtt i2c_algo_bit drm_kms_helper syscopyarea sysfillrect > > sysimgblt fb_sys_fops drm agpgart > > [ 3125.761152] CPU: 2 PID: 8033 Comm: borg Tainted: > > G=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0O=C2= =A0=C2=A0=C2=A0=C2=A04.9.0-pf5-intelfx-00118-g3ef102e15022 #1 > > [ 3125.761173] Hardware name: LENOVO 20BEA008RT/20BEA008RT, BIOS > > GMET75WW (2.23 ) 03/16/2016 > > [ 3125.761191] task: ffff9a35d33aa4c0 task.stack: ffffaf93c3fac000 > > [ 3125.761205] RIP: 0010:[]=C2=A0=C2=A0[] > > internal_at+0x1/0x30 [reiser4] > > [ 3125.761231] RSP: 0018:ffffaf93c3faf978=C2=A0=C2=A0EFLAGS: 00010202 > > [ 3125.761243] RAX: 00000000000003a8 RBX: ffffaf93c3faf9d8 RCX: > > ffffffffc0774980 > > [ 3125.761259] RDX: ffff9a3601130000 RSI: ffffaf93c3faf9d8 RDI: > > 0000000000000000 > > [ 3125.761275] RBP: ffff9a35886035a0 R08: 0000000000000000 R09: > > 0000000000000000 > > [ 3125.761291] R10: ffffffffc0750300 R11: 0000000000000000 R12: > > ffffaf93c3fafb40 > > [ 3125.761308] R13: 0000000000000001 R14: ffffaf93c3faf9d8 R15: > > 0000000000000000 > > [ 3125.761324] FS:=C2=A0=C2=A000007f71f7e82400(0000) > > GS:ffff9a373e280000(0000) knlGS:0000000000000000 > > [ 3125.761342] CS:=C2=A0=C2=A00010 DS: 0000 ES: 0000 CR0: 0000000080050= 033 > > [ 3125.761355] CR2: 0000000000000010 CR3: 0000000215878000 CR4: > > 00000000001406e0 > > [ 3125.761371] Stack: > > [ 3125.761377]=C2=A0=C2=A0ffffaf93c3faf9d8 ffffffffc075d149 ffff9a36011= 30000 > > ffffffffc07519b0 > > [ 3125.761397]=C2=A0=C2=A0ffffaf93c3faf9d8 000000000000000f ffff9a36011= 30010 > > ffffd79000000001 > > [ 3125.761417]=C2=A0=C2=A000000000006f7534 0043616e6f6e2057 00000000000= 6f75f > > ffffffffffffffff > > [ 3125.761437] Call Trace: > > [ 3125.761449]=C2=A0=C2=A0[] ? > > has_pointer_to_internal+0x9/0x20 [reiser4] > > [ 3125.761471]=C2=A0=C2=A0[] ? > > find_disk_cluster+0x190/0x3a0 [reiser4] > > [ 3125.761492]=C2=A0=C2=A0[] ? > > do_readpage_ctail+0x235/0x490 [reiser4] > > [ 3125.761511]=C2=A0=C2=A0[] ? > > prepare_page_cluster+0x178/0x270 [reiser4] > > [ 3125.761531]=C2=A0=C2=A0[] ? > > ctail_readpages_filler+0xe5/0x250 [reiser4] > > [ 3125.761549]=C2=A0=C2=A0[] ? read_cache_pages+0xb3/= 0x180 > > [ 3125.761567]=C2=A0=C2=A0[] ? > > do_readpage_ctail+0x490/0x490 [reiser4] > > [ 3125.761584]=C2=A0=C2=A0[] ? __kmalloc+0x167/0x1d0 > > [ 3125.761602]=C2=A0=C2=A0[] ? readpages_ctail+0x133/= 0x340 > > [reiser4] > > [ 3125.761621]=C2=A0=C2=A0[] ? > > readpages_cryptcompress+0x34/0x60 [reiser4] > > [ 3125.761638]=C2=A0=C2=A0[] ? > > __do_page_cache_readahead+0x1b7/0x2a0 > > [ 3125.761655]=C2=A0=C2=A0[] ? > > ondemand_readahead+0xc8/0x240 > > [ 3125.761670]=C2=A0=C2=A0[] ? > > pagecache_get_page+0x2b/0x2a0 > > [ 3125.761685]=C2=A0=C2=A0[] ? > > generic_file_read_iter+0x619/0x880 > > [ 3125.761701]=C2=A0=C2=A0[] ? new_sync_read+0xd2/0x1= 20 > > [ 3125.761718]=C2=A0=C2=A0[] ? read_cryptcompress+0x5= c/0xa0 > > [reiser4] > > [ 3125.761738]=C2=A0=C2=A0[] ? > > reiser4_read_dispatch+0x54/0x130 [reiser4] > > [ 3125.761755]=C2=A0=C2=A0[] ? vfs_read+0x85/0x150 > > [ 3125.761768]=C2=A0=C2=A0[] ? SyS_read+0x4d/0xc0 > > [ 3125.761782]=C2=A0=C2=A0[] ? SyS_ioctl+0x36/0x70 > > [ 3125.761795]=C2=A0=C2=A0[] ? > > entry_SYSCALL_64_fastpath+0x13/0x94 > > [ 3125.761810] Code: 76 c0 48 c7 04 24 65 fb 76 c0 bb fb ff ff ff > > e8 7d 55 9b e0 eb 96 0f 1f 40 00 41 b8 01 00 00 00 31 c9 48 89 f2 > > e9 b0 e7 fc ff 53 <83> 7f 10 ff 48 89 fb 74 09 48 89 df 5b e9 fd 7d > > 00 00 e8 d8 7d > > [ 3125.761910] RIP=C2=A0=C2=A0[] internal_at+0x1/0x30 > > [reiser4] > > [ 3125.761930]=C2=A0=C2=A0RSP > > [ 3125.761939] CR2: 0000000000000010 > > [ 3125.774256] ---[ end trace b060c22fa881072e ]--- > >=20 > >=20 > > Is this something known to you? I'll try to reproduce, but not yet. > >=20 >=20 >=20 --=-kIyRGE74t+ZkmMeRUwHk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE5N8nvImcx2nJlFGce94XyOTjDp0FAli0UcUACgkQe94XyOTj Dp1y0g/+L0JJR5V82KJZL6Bo/gSo4U8IyRCv8GcVcsbJr3RsIoygLyRpgbCk8kei i2ML7dzctVzJlNL0fTwvqs8U3/ZXdlqYYkLMigPelOlgdzFTNcDF8Ghzbc//oQi1 9QIBQyLU/xybbo2mLeGbrLngujjahHZhdBaiD2R4niKmXaKh0e5cCKdrHaCyyPCE +y3L2BxrN1LIeFyei8fMvosyfdsBBMyuxuSEQB5/hVBXfMY/SIkzTa2ErT+m7vjy cKIzVdwII0+yP4i0zVX4OsfYmFL58QnSitKznmTfPisM0OreJkc4bqg+D/S9n9cX neSydgEgdKCpC8NqZAE+635MNEZbQgPimYo96+vjCIXjRGj5rUbBlavAPiVVMen5 VeXUgWo2LewQlXlWxsoO0SwWdo/FDbF5pUYE1tLxj5UDCygYBkyeTCbYxLWGeco7 VaLtQVteH5Eo9AWfcX72cAlrc7R74vGh1SlOgcnErbAgMZGQBsCsFUHTxPQ3xwht j8/ku6E9YIxG99fpOMShw/YZG06vlBMaRznrNmefEnLBPWchuvlu557gOtv95sbo lpyeM+gdzNil1A9GaN9RbBG+PlojpYI6osjZaoZOUMLcPqkaJzXIXWnaKeML1Ax8 21Skkqp2PnWzFaPzEGhTEjqrdruNMB18gfZ4uCki/h6ou2BQdD8= =nBre -----END PGP SIGNATURE----- --=-kIyRGE74t+ZkmMeRUwHk--