Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1652231
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Tim Savannah <kata198@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/1] - Fix reiserfs WARNING in dquot_writeback_dquots |
| Date | Mon, 29 May 2017 07:00:01 +0200 |
| Message-ID | <tMkWB-3pg-1@gated-at.bofh.it> (permalink) |
| X-Original-To | reiserfs-devel@vger.kernel.org |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=Z6kOCemokvXdfrMaIJqESBWefhtJPkPKqwINzfDqJXU=; b=ewwidSPyRqiV396TPpGAQzl0Cr3jANPvP8yZoVxA3IbCIkfgdTI5u6OS4xDbOJPvJF BAXGvcr4eYCtZ6ewcDezYC8Vjp+jlwqmHH50pCZS+m2vfsgMT/mTnuR8R7Ba55ZR24nY OUM5WJK1Ndv/Ap/3tOYSIRsnuoc8NQpCYqebphUu25A29iGEzxOoRe0962o1rfxVU1Wv tdp/SpSFH1fazw5AsKi1Xvwq65fwlHiNMMcM4WUMDJcEgVgohHJxnj2f0/CC1Hdj5Ifc g5oBHvxFGeown8Cn9jKxZUxh+mEuEAKcAg0EWA8Zfz0fNq5l3rip5GbHqAMLaViUyp7e F5Wg== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Z6kOCemokvXdfrMaIJqESBWefhtJPkPKqwINzfDqJXU=; b=npWvRAvyfP+icOgNBwVGC+2u4D86+fPgtBr2txC3eNhsQ4VAATOowmSeNgyrO4qgMJ WiYbtYqzuTS2Zwg1MBBcTh1jIASCCEXlWaC/bx2bm6mFq/Jl3DJvKUhHATTmyv+FEZ12 APfrHUDoAPyx2aG8YuEp6PeHAfcxFek+KrMYxuNan4VIjVc204KFUoFJY3XFohJnXyYo Dg0mlkt/+quJHotr8kzKC6ptHAi0fT5mCFc+/wiVtyilnVquuEvRiZoESmqOjFjduB0X xM7i+kPp38kNT66voxH4a8iHWXni/QYsuroxMBw6Sz9SsWhmp1wTLvw4TtHztfT9QmEe RE9A== |
| X-Gm-Message-State | AODbwcDa5eosqRCaUjiLREv1VlskYjT4zpPTGAgncGJX98DolqWHXbya HMpX8MtQljzD0E1Nj+OebIhHinktouZJ |
| X-Received | by 10.13.221.85 with SMTP id g82mr11224375ywe.326.1496033744469; Sun, 28 May 2017 21:55:44 -0700 (PDT) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 64 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | linux-kernel@vger.kernel.org |
| X-Original-Date | Mon, 29 May 2017 00:55:44 -0400 |
| X-Original-Message-ID | <CALxoUzt5C08r0VwS6JjBbP7UvvbqhTTFjGOZJDQeQMbyPiyotw@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1652231 |
Show key headers only | View raw
This has been happening for me since 4.10
dquot_writeback_dquots expects a lock to be held on super_block->s_umount ,
and reiserfs_sync_fs, which calls dquot_writeback_dquots, does not
obtain such a lock.
Thus, the following warning is generated:
[Sun May 28 04:58:06 2017] ------------[ cut here ]------------
[Sun May 28 04:58:06 2017] WARNING: CPU: 0 PID: 31 at
fs/quota/dquot.c:620 dquot_writeback_dquots+0x248/0x250
[Sun May 28 04:58:06 2017] Modules linked in: bbswitch(O)
nls_iso8859_1 nls_cp437 iTCO_wdt iTCO_vendor_support acer_wmi
sparse_keymap coretemp efi_pstore hwmon intel_rapl
x86_pkg_temp_thermal intel_powerclamp pcspkr ath9k ath9k_common
ath9k_hw ath efivars mac80211 joydev psmouse i2c_i801 cfg80211
input_leds led_class nvidiafb vgastate fb_ddc atl1c i915
drm_kms_helper drm intel_gtt syscopyarea sysfillrect sysimgblt mei_me
fb_sys_fops i2c_algo_bit mei lpc_ich shpchp acpi_cpufreq thermal wmi
video tpm_tis tpm_tis_core button tpm sch_fq_codel evdev mac_hid
uvcvideo vboxnetflt(O) videobuf2_vmalloc videobuf2_memops
vboxnetadp(O) videobuf2_v4l2 videobuf2_core pci_stub videodev
vboxpci(O) media ath3k btusb btrtl btbcm btintel vboxdrv(O) bluetooth
rfkill loop usbip_host usbip_core sg ip_tables x_tables hid_generic
usbhid
[Sun May 28 04:58:06 2017] hid sr_mod cdrom sd_mod serio_raw atkbd
libps2 ehci_pci xhci_pci ahci xhci_hcd ehci_hcd libahci libata
scsi_mod usbcore usb_common i8042 serio raid1 raid0 dm_mod md_mod
[Sun May 28 04:58:06 2017] CPU: 0 PID: 31 Comm: kworker/0:1 Tainted: G
O 4.11.3-1-ck2-ck #1
[Sun May 28 04:58:06 2017] Hardware name: Acer Aspire V3-771/VA70_HC,
BIOS V2.16 01/14/2013
[Sun May 28 04:58:06 2017] Workqueue: events_long flush_old_commits
[Sun May 28 04:58:06 2017] Call Trace:
[Sun May 28 04:58:06 2017] ? dump_stack+0x5c/0x7a
[Sun May 28 04:58:06 2017] ? __warn+0xb4/0xd0
[Sun May 27 04:58:06 2017] ? dquot_writeback_dquots+0x248/0x250
[Sun May 27 04:58:06 2017] ? reiserfs_sync_fs+0x12/0x70
[Sun May 27 04:58:06 2017] ? dbs_work_handler+0x3d/0x50
[Sun May 27 04:58:06 2017] ? flush_old_commits+0x30/0x50
[Sun May 27 04:58:06 2017] ? process_one_work+0x1b1/0x3a0
[Sun May 27 04:58:06 2017] ? worker_thread+0x42/0x4c0
[Sun May 27 04:58:06 2017] ? kthread+0xf2/0x130
[Sun May 27 04:58:06 2017] ? process_one_work+0x3a0/0x3a0
[Sun May 27 04:58:06 2017] ? kthread_create_on_node+0x40/0x40
[Sun May 27 04:58:06 2017] ? ret_from_fork+0x26/0x40
[Sun May 27 04:58:06 2017] ---[ end trace 7e040d020ba99607 ]---
This occurs during system boot on a fully-updated Archlinux system,
and has so since 4.10 100% of the time. It may occur after as well,
but it's a WARN_ONCE.
The attached patch corrects this issue by first trying to obtain a
readlock on said structure member, and if it got it, releases it
before returning.
After applying the patch, my system is completely stable and the
warning no longer occurs. Mounting and unmounting works as expected
without issue.
Thanks,
- Tim Savannah
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 1/1] - Fix reiserfs WARNING in dquot_writeback_dquots Tim Savannah <kata198@gmail.com> - 2017-05-29 07:00 +0200
csiph-web