Bug 1618780 - generic_make_request: Trying to write to read-only block-device dm-6 (partno 0)
Summary: generic_make_request: Trying to write to read-only block-device dm-6 (partno 0)
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: snapper
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: LVM and device-mapper development team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-08-17 14:56 UTC by Jakub Krysl
Modified: 2020-11-24 17:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-24 17:45:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Jakub Krysl 2018-08-17 14:56:40 UTC
Description of problem:
Creating snapshots on XFS using snapper results in this Call Trace.

[  286.200060] ------------[ cut here ]------------
[  286.200772] generic_make_request: Trying to write to read-only block-device dm-6 (partno 0)
[  286.202044] WARNING: CPU: 10 PID: 23563 at block/blk-core.c:2161 generic_make_request_checks+0x6ef/0xab0
[  286.203364] Modules linked in: xfs dm_thin_pool dm_persistent_data dm_bio_prison libcrc32c loop nls_utf8 isofs ppdev cirrus ttm sb_edac parport_pc drm_kms_helper virtio_net drm net_failover parport failover joydev i2c_piix4 crct10dif_pclmul crc32_pclmul crc32c_intel ata_generic ghash_clmulni_intel serio_raw pata_acpi
[  286.207099] CPU: 10 PID: 23563 Comm: snapperd Not tainted 4.18.0-0.rc8.git2.1.fc29.x86_64 #1
[  286.208238] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 0.5.1 01/01/2011
[  286.209353] RIP: 0010:generic_make_request_checks+0x6ef/0xab0
[  286.210126] Code: b0 6c 05 00 00 48 8d 75 b0 4c 89 ff c6 05 4d 2b 49 01 01 e8 13 b2 01 00 48 c7 c7 b8 60 34 94 44 89 f2 48 89 c6 e8 85 f3 be ff <0f> 0b 49 8b 47 08 e9 b3 f9 ff ff 41 8b 77 30 48 c7 c7 40 80 86 94 
[  286.212650] RSP: 0018:ffffa8b60112fc68 EFLAGS: 00010286
[  286.213280] RAX: 0000000000000000 RBX: ffff8f1dd53b8000 RCX: 0000000000000000
[  286.214257] RDX: ffff8f1dfd3dd880 RSI: ffff8f1dfd3d6cc8 RDI: ffff8f1dfd3d6cc8
[  286.215247] RBP: ffffa8b60112fcd0 R08: 0000004ac7f538ec R09: 0000000000000000
[  286.216114] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[  286.217018] R13: ffff8f1dd53b8000 R14: 0000000000000000 R15: ffff8f1dc5ec8200
[  286.217979] FS:  00007f4ef3d98700(0000) GS:ffff8f1dfd200000(0000) knlGS:0000000000000000
[  286.219059] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  286.219823] CR2: 00005592a6621ab0 CR3: 0000000018cbe003 CR4: 00000000003606e0
[  286.220758] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  286.221737] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  286.222692] Call Trace:
[  286.222984]  generic_make_request+0xd1/0x6c0
[  286.223586]  ? rcu_read_lock_sched_held+0x6b/0x80
[  286.224114]  ? kmem_cache_alloc+0x28f/0x2f0
[  286.224713]  ? submit_bio+0x45/0x140
[  286.225196]  submit_bio+0x45/0x140
[  286.225704]  ? __init_waitqueue_head+0x36/0x50
[  286.226311]  submit_bio_wait+0x57/0x90
[  286.226835]  blkdev_issue_flush+0x7f/0xb0
[  286.228761]  xfs_free_buftarg+0x43/0x70 [xfs]
[  286.230679]  xfs_close_devices+0x7c/0x90 [xfs]
[  286.232620]  xfs_fs_put_super+0x81/0xb0 [xfs]
[  286.234427]  generic_shutdown_super+0x6c/0x100
[  286.236247]  kill_block_super+0x21/0x50
[  286.237999]  deactivate_locked_super+0x34/0x70
[  286.239895]  cleanup_mnt+0x3b/0x70
[  286.241749]  task_work_run+0xa1/0xd0
[  286.243551]  exit_to_usermode_loop+0xd8/0xe0
[  286.245322]  do_syscall_64+0x1df/0x1f0
[  286.247052]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[  286.248974] RIP: 0033:0x7f4ef457754b
[  286.250666] Code: 29 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 90 f3 0f 1e fa 31 f6 e9 05 00 00 00 0f 1f 44 00 00 f3 0f 1e fa b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 0d 29 0c 00 f7 d8 64 89 01 48 
[  286.255639] RSP: 002b:00007f4ef3d97638 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
[  286.257910] RAX: 0000000000000000 RBX: 00007f4ef497b3e0 RCX: 00007f4ef457754b
[  286.260201] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 00007f4ef3d976d0
[  286.262351] RBP: 0000000000000000 R08: 00007f4ef497b3e0 R09: 0000000000000002
[  286.264491] R10: 0000000000000000 R11: 0000000000000246 R12: 00007f4ef3d976e0
[  286.266740] R13: 00007f4ef3d976c0 R14: 00007f4ef3d976c0 R15: 00007f4eec06b5a0
[  286.268902] irq event stamp: 3776
[  286.270629] hardirqs last  enabled at (3775): [<ffffffff93136ce3>] console_unlock+0x463/0x610
[  286.272826] hardirqs last disabled at (3776): [<ffffffff93c01389>] error_entry+0x89/0x110
[  286.275042] softirqs last  enabled at (3772): [<ffffffff93e0038c>] __do_softirq+0x38c/0x4f7
[  286.277272] softirqs last disabled at (3399): [<ffffffff930c19be>] irq_exit+0x10e/0x120
[  286.279538] ---[ end trace b8edc131858edbbe ]---

The trace is most probably because of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=721c7fc701c71f693307d274d2b346a1ecd4a534

It appears only once because of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a32e236eb93e62a0f692e79b7c3c9636689559b9

Version-Release number of selected component (if applicable):
kernel-4.18.0-0.rc8.git2.1.fc29.x86_64
snapper-0.5.6-1.fc30.pr.8ff61b4518c9410ba8be326063d5ba6b.x86_64

How reproducible:
100%

Steps to Reproduce:
1. create few snapshots on mounted XFS
2. umount the XFS

Actual results:
Call Trace

Expected results:
no Call Trace

Additional info:

Comment 1 Joachim Frieben 2018-09-08 09:57:25 UTC
A very similar backtrace also appears when installing Fedora 29 from live image Fedora-Workstation-Live-x86_64-29-20180905.n.0 with an LVM/ext4 setup:

[   80.129370] ------------[ cut here ]------------
[   80.129372] generic_make_request: Trying to write to read-only block-device dm-1 (partno 0)
[   80.129400] WARNING: CPU: 0 PID: 1061 at block/blk-core.c:2161 generic_make_request_checks+0x4b3/0x600
[   80.129401] Modules linked in: coretemp radeon kvm_intel kvm gpio_ich iTCO_wdt iTCO_vendor_support mei_wdt wmi_bmof irqbypass i2c_algo_bit ttm snd_hda_codec_conexant snd_hda_codec_generic drm_kms_helper i2c_i801 snd_hda_intel r592 joydev snd_hda_codec memstick lpc_ich snd_hda_core drm snd_hwdep snd_seq snd_seq_device thinkpad_acpi wmi snd_pcm rfkill mei_me video snd_timer mei snd soundcore pcc_cpufreq acpi_cpufreq nls_utf8 isofs squashfs zstd_decompress xxhash scsi_transport_iscsi dm_multipath 8021q garp mrp stp llc sdhci_pci serio_raw cqhci sdhci mmc_core uas usb_storage yenta_socket e1000e sunrpc loop
[   80.129445] CPU: 0 PID: 1061 Comm: dumpe2fs Not tainted 4.18.5-300.fc29.x86_64 #1
[   80.129446] Hardware name: LENOVO 2768W9J/2768W9J, BIOS 7UET94WW (3.24 ) 10/17/2012
[   80.129448] RIP: 0010:generic_make_request_checks+0x4b3/0x600
[   80.129448] Code: 54 03 00 00 48 89 df 48 8d 74 24 08 c6 05 4e 01 f1 00 01 e8 3f 5e 01 00 48 c7 c7 68 8e 10 b8 44 89 e2 48 89 c6 e8 37 2f c8 ff <0f> 0b 4c 8b 63 08 e9 dd fb ff ff 49 8b 76 08 48 85 f6 74 3e 89 c0 
[   80.129477] RSP: 0018:ffffa72081663d98 EFLAGS: 00010282
[   80.129479] RAX: 0000000000000000 RBX: ffff8e8aeef3d400 RCX: 0000000000000006
[   80.129480] RDX: 0000000000000007 RSI: 0000000000000092 RDI: ffff8e8afbc16930
[   80.129481] RBP: ffff8e8ae86c0000 R08: 0000000000000060 R09: 0000000000000003
[   80.129481] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[   80.129482] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000
[   80.129484] FS:  00007f28c06f1780(0000) GS:ffff8e8afbc00000(0000) knlGS:0000000000000000
[   80.129485] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   80.129486] CR2: 000056337dd4bb18 CR3: 000000022be12000 CR4: 00000000000406f0
[   80.129487] Call Trace:
[   80.129493]  ? __switch_to_asm+0x40/0x70
[   80.129495]  ? __switch_to_asm+0x40/0x70
[   80.129497]  ? __switch_to_asm+0x34/0x70
[   80.129498]  ? __switch_to_asm+0x40/0x70
[   80.129500]  generic_make_request+0x5b/0x410
[   80.129504]  ? mempool_alloc+0x70/0x1a0
[   80.129505]  ? __switch_to_asm+0x34/0x70
[   80.129507]  ? __switch_to_asm+0x40/0x70
[   80.129508]  ? __switch_to_asm+0x34/0x70
[   80.129509]  submit_bio+0x45/0x140
[   80.129512]  ? bio_alloc_bioset+0xdc/0x210
[   80.129513]  submit_bio_wait+0x53/0x80
[   80.129516]  blkdev_issue_flush+0x7c/0xb0
[   80.129519]  blkdev_fsync+0x2f/0x40
[   80.129522]  do_fsync+0x38/0x70
[   80.129524]  __x64_sys_fsync+0x10/0x20
[   80.129527]  do_syscall_64+0x5b/0x160
[   80.129530]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[   80.129532] RIP: 0033:0x7f28c0809d68
[   80.129533] Code: 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 8d 05 b5 09 0d 00 8b 00 85 c0 75 17 b8 4a 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 40 c3 0f 1f 80 00 00 00 00 53 89 fb 48 83 ec 
[   80.129561] RSP: 002b:00007ffcb5c178c8 EFLAGS: 00000246 ORIG_RAX: 000000000000004a
[   80.129563] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f28c0809d68
[   80.129564] RDX: 0000000000000008 RSI: 0000000000000000 RDI: 0000000000000003
[   80.129564] RBP: 0000000000000003 R08: 0000000000000200 R09: 00007f28c0855e30
[   80.129565] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[   80.129566] R13: 00005641cd813440 R14: 00007f28c09a5660 R15: 00005641cd8132d0
[   80.129568] ---[ end trace dd27dbaf4f757c5d ]---

Comment 3 Ben Cotton 2019-08-13 16:57:11 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 4 Ben Cotton 2019-08-13 19:44:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 5 Ben Cotton 2020-11-03 15:01:52 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Ben Cotton 2020-11-24 17:45:31 UTC
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.