Bug 212331
Summary: | btrfs NULL pointer dereference compress_file_range+0x6e9/0x7a0 | ||
---|---|---|---|
Product: | File System | Reporter: | Tomas Thiemel (thiemel) |
Component: | btrfs | Assignee: | BTRFS virtual assignee (fs_btrfs) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | dsterba, l, thiemel |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 5.10.23-gentoo | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | output of "strace -f rsync" before the kernel bug |
Description
Tomas Thiemel
2021-03-18 16:26:57 UTC
I recompiled kernel with additional debug options enabled. Now only "rsync" processes got "frozen", I was able to terminate "beesd" process. [ 1849.948199] Writes: Total: 3842202977 Max/Min: 252639718/224667097 Fail: 0 [ 1911.388986] Writes: Total: 3967429104 Max/Min: 261158600/232085522 Fail: 0 [ 1972.827311] Writes: Total: 4097789115 Max/Min: 270021155/239960758 Fail: 0 [ 1996.755392] BUG: kernel NULL pointer dereference, address: 0000000000000018 [ 1996.764336] #PF: supervisor read access in kernel mode [ 1996.771313] #PF: error_code(0x0000) - not-present page [ 1996.778258] PGD 0 P4D 0 [ 1996.782580] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC [ 1996.789268] CPU: 4 PID: 19405 Comm: kworker/u16:27 Tainted: G A 5.10.23-gentoo-xeon #2 [ 1996.800524] Hardware name: MSI MS-7759/Z77MA-G45 (MS-7759), BIOS V1.9 03/01/2013 [ 1996.809913] Workqueue: btrfs-delalloc btrfs_work_helper [ 1996.816968] RIP: 0010:compress_file_range+0x56a/0x7e0 [ 1996.823972] Code: 00 0f 84 cb 00 00 00 31 db 31 c0 48 83 7c 24 48 00 74 6c 48 89 2c 24 eb 0d 83 c3 01 48 63 c3 48 3b 44 24 48 73 55 4d 8b 24 c7 <49> 83 7c 24 18 00 0f 85 3c 01 00 00 49 8b 44 24 08 48 8d 50 ff a8 [ 1996.846085] RSP: 0018:ffffc9000112fd48 EFLAGS: 00010206 [ 1996.853185] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 1996.862260] RDX: ffffffff844b5700 RSI: ffffffff815e10e8 RDI: ffffc9000112fd98 [ 1996.871355] RBP: ffff88862418e190 R08: ffff88828b055260 R09: ffff88828b055260 [ 1996.880435] R10: 0000000000000000 R11: ffffea0007ef6208 R12: 0000000000000000 [ 1996.889512] R13: 0000000000005000 R14: 0000000000007fff R15: ffff888224606ba0 [ 1996.898586] FS: 0000000000000000(0000) GS:ffff8887fa400000(0000) knlGS:0000000000000000 [ 1996.908616] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1996.916304] CR2: 0000000000000018 CR3: 0000000213491006 CR4: 00000000001706e0 [ 1996.925385] Call Trace: [ 1996.929758] ? submit_compressed_extents+0x440/0x440 [ 1996.936647] async_cow_start+0x12/0x40 [ 1996.942331] btrfs_work_helper+0xf4/0x640 [ 1996.948289] process_one_work+0x27c/0x620 [ 1996.954284] worker_thread+0x50/0x3a0 [ 1996.959870] ? process_one_work+0x620/0x620 [ 1996.966003] kthread+0x137/0x160 [ 1996.966006] ? kthread_unuse_mm+0xa0/0xa0 [ 1996.966009] ret_from_fork+0x1f/0x30 [ 1996.966012] Modules linked in: xt_state xt_nat tun xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat ip6table_filter ip6_tables iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter ip_tables x_tables fuse nfsd auth_rpcgss oid_registry lockd grace sunrpc f2fs nls_iso8859_1 vfat fat dm_raid raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx binfmt_misc at24 regmap_i2c iTCO_wdt iTCO_vendor_support x86_pkg_temp_thermal pm80xx kvm_intel dummy kvm f71882fg coretemp xhci_pci ehci_pci crct10dif_pclmul ehci_hcd xhci_hcd crc32_pclmul crc32c_intel r8169 ghash_clmulni_intel aesni_intel crypto_simd cryptd realtek usbcore i2c_i801 glue_helper mei_me mdio_devres i2c_smbus libphy mei i2c_core lpc_ich mfd_core usb_common video fan thermal backlight evdev [ 1997.067424] CR2: 0000000000000018 [ 1997.072905] ---[ end trace dda3e19fd119c566 ]--- [ 1997.079657] RIP: 0010:compress_file_range+0x56a/0x7e0 [ 1997.086873] Code: 00 0f 84 cb 00 00 00 31 db 31 c0 48 83 7c 24 48 00 74 6c 48 89 2c 24 eb 0d 83 c3 01 48 63 c3 48 3b 44 24 48 73 55 4d 8b 24 c7 <49> 83 7c 24 18 00 0f 85 3c 01 00 00 49 8b 44 24 08 48 8d 50 ff a8 [ 1997.109628] RSP: 0018:ffffc9000112fd48 EFLAGS: 00010206 [ 1997.116978] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 1997.126281] RDX: ffffffff844b5700 RSI: ffffffff815e10e8 RDI: ffffc9000112fd98 [ 1997.135601] RBP: ffff88862418e190 R08: ffff88828b055260 R09: ffff88828b055260 [ 1997.144901] R10: 0000000000000000 R11: ffffea0007ef6208 R12: 0000000000000000 [ 1997.154348] R13: 0000000000005000 R14: 0000000000007fff R15: ffff888224606ba0 [ 1997.163612] FS: 0000000000000000(0000) GS:ffff8887fa400000(0000) knlGS:0000000000000000 [ 1997.173825] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1997.182000] CR2: 0000000000000018 CR3: 0000000213491006 CR4: 00000000001706e0 [ 1997.191394] BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49 [ 1997.202439] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 19405, name: kworker/u16:27 [ 1997.213238] INFO: lockdep is turned off. [ 1997.219309] irq event stamp: 0 [ 1997.224492] hardirqs last enabled at (0): [<0000000000000000>] 0x0 [ 1997.233076] hardirqs last disabled at (0): [<ffffffff8108bfb9>] copy_process+0x6b9/0x1bc0 [ 1997.243551] softirqs last enabled at (0): [<ffffffff8108bfb9>] copy_process+0x6b9/0x1bc0 [ 1997.254195] softirqs last disabled at (0): [<0000000000000000>] 0x0 [ 1997.262484] CPU: 4 PID: 19405 Comm: kworker/u16:27 Tainted: G DA 5.10.23-gentoo-xeon #2 [ 1997.273839] Hardware name: MSI MS-7759/Z77MA-G45 (MS-7759), BIOS V1.9 03/01/2013 [ 1997.283418] Workqueue: btrfs-delalloc btrfs_work_helper [ 1997.290953] Call Trace: [ 1997.295647] dump_stack+0x77/0x97 [ 1997.301002] ___might_sleep.cold+0xa6/0xf7 [ 1997.307245] exit_signals+0x31/0x340 [ 1997.312837] do_exit+0xd5/0xd80 [ 1997.318123] ? process_one_work+0x620/0x620 [ 1997.324308] ? kthread+0x137/0x160 [ 1997.329688] rewind_stack_do_exit+0x17/0x30 [ 1997.335999] RIP: 0000:0x0 [ 1997.340591] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. [ 1997.349571] RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 [ 1997.359269] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 1997.368522] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 1997.377317] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 1997.386550] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 1997.395777] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 2034.267977] Writes: Total: 4225174685 Max/Min: 278649288/247500023 Fail: 0 [ 2095.707657] Writes: Total: 4358162757 Max/Min: 288107501/255241090 Fail: 0 [ 2157.146350] Writes: Total: 4488950387 Max/Min: 297439692/263035196 Fail: 0 ftp1 ~ # ps auxw|grep -E "D|bees"|grep -v -- "-D"|grep -v grep|grep -v tee|grep -v CRON|sed 's:-avH.*::' USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1049 0.9 0.0 0 0 ? D 21:35 0:21 [kworker/u16:10+flush-btrfs-4] root 22963 0.3 0.0 104744 9804 pts/3 D+ 22:06 0:01 rsync root 23885 0.0 0.0 55652 8116 pts/12 D+ 22:06 0:00 rsync root 24143 0.0 0.0 16856 2932 pts/7 D+ 22:08 0:00 rsync root 24200 0.0 0.0 74708 3960 pts/11 D+ 22:09 0:00 rsync See attached log with "strace -f rsync" - rsync.strace.log.gz [ 682.608387] Writes: Total: 1414336205 Max/Min: 94414206/82701511 Fail: 0 [ 744.047039] Writes: Total: 1540175798 Max/Min: 102202069/90216536 Fail: 0 [ 768.862978] BUG: kernel NULL pointer dereference, address: 0000000000000018 [ 768.871959] #PF: supervisor read access in kernel mode [ 768.879090] #PF: error_code(0x0000) - not-present page [ 768.886212] PGD 0 P4D 0 [ 768.890722] Oops: 0000 [#1] SMP DEBUG_PAGEALLOC [ 768.896714] CPU: 6 PID: 13068 Comm: kworker/u16:7 Tainted: G A 5.10.23-gentoo-xeon #3 [ 768.907317] Hardware name: MSI MS-7759/Z77MA-G45 (MS-7759), BIOS V1.9 03/01/2013 [ 768.916183] Workqueue: btrfs-delalloc btrfs_work_helper [ 768.922878] RIP: 0010:compress_file_range+0x6fd/0x7c0 [ 768.929452] Code: e1 20 31 db 41 83 c9 0f e8 a0 1a 02 00 31 c0 48 83 7c 24 48 00 75 0f eb 5c 83 c3 01 48 63 c3 48 3b 44 24 48 73 4f 49 8b 2c c7 <48> 83 7d 18 00 75 59 48 8b 45 08 48 8d 50 ff a8 01 48 0f 45 ea 8b [ 768.951568] RSP: 0018:ffffc900021cfd48 EFLAGS: 00010202 [ 768.958771] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000200669 [ 768.967788] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8252265e [ 768.976947] RBP: 0000000000000000 R08: 0000000000000020 R09: ffff88881b607000 [ 768.985947] R10: 0000000000000000 R11: 0000000000000025 R12: 00000000000003e7 [ 768.994936] R13: 0000000000000000 R14: 0000000000000fff R15: ffff888101f89f18 [ 769.004069] FS: 0000000000000000(0000) GS:ffff8887fac00000(0000) knlGS:0000000000000000 [ 769.014143] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 769.021742] CR2: 0000000000000018 CR3: 000000076023c001 CR4: 00000000001706e0 [ 769.030864] Call Trace: [ 769.035143] ? submit_compressed_extents+0x440/0x440 [ 769.042079] async_cow_start+0x12/0x40 [ 769.047677] btrfs_work_helper+0xf4/0x640 [ 769.053675] process_one_work+0x27c/0x620 [ 769.059791] worker_thread+0x50/0x3a0 [ 769.065346] ? process_one_work+0x620/0x620 [ 769.071429] kthread+0x137/0x160 [ 769.076475] ? kthread_unuse_mm+0xa0/0xa0 [ 769.082398] ret_from_fork+0x1f/0x30 [ 769.087750] Modules linked in: xt_state xt_nat tun xt_CHECKSUM ebtable_filter ebtables xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp ip6table_mangle ip6table_nat ip6table_filter ip6_tables iptable_mangle iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 iptable_filter ip_tables x_tables fuse nfsd auth_rpcgss oid_registry lockd grace sunrpc f2fs nls_iso8859_1 vfat fat dm_raid raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx binfmt_misc at24 regmap_i2c iTCO_wdt iTCO_vendor_support x86_pkg_temp_thermal kvm_intel pm80xx dummy kvm xhci_pci f71882fg xhci_hcd crct10dif_pclmul coretemp crc32_pclmul crc32c_intel ehci_pci ghash_clmulni_intel ehci_hcd r8169 aesni_intel mei_me i2c_i801 crypto_simd i2c_smbus cryptd i2c_core realtek usbcore glue_helper lpc_ich mdio_devres mfd_core mei libphy video usb_common backlight evdev thermal fan [ 769.174259] CR2: 0000000000000018 [ 769.179609] ---[ end trace 2f90fe4fe855789c ]--- [ 769.186399] RIP: 0010:compress_file_range+0x6fd/0x7c0 [ 769.193480] Code: e1 20 31 db 41 83 c9 0f e8 a0 1a 02 00 31 c0 48 83 7c 24 48 00 75 0f eb 5c 83 c3 01 48 63 c3 48 3b 44 24 48 73 4f 49 8b 2c c7 <48> 83 7d 18 00 75 59 48 8b 45 08 48 8d 50 ff a8 01 48 0f 45 ea 8b [ 769.216042] RSP: 0018:ffffc900021cfd48 EFLAGS: 00010202 [ 769.223371] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000200669 [ 769.232608] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8252265e [ 769.242022] RBP: 0000000000000000 R08: 0000000000000020 R09: ffff88881b607000 [ 769.251314] R10: 0000000000000000 R11: 0000000000000025 R12: 00000000000003e7 [ 769.260519] R13: 0000000000000000 R14: 0000000000000fff R15: ffff888101f89f18 [ 769.270058] FS: 0000000000000000(0000) GS:ffff8887fac00000(0000) knlGS:0000000000000000 [ 769.280443] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 769.288577] CR2: 0000000000000018 CR3: 000000076023c001 CR4: 00000000001706e0 [ 769.298130] BUG: sleeping function called from invalid context at include/linux/percpu-rwsem.h:49 [ 769.309407] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 13068, name: kworker/u16:7 [ 769.320348] INFO: lockdep is turned off. [ 769.326759] irq event stamp: 0 [ 769.332219] hardirqs last enabled at (0): [<0000000000000000>] 0x0 [ 769.340893] hardirqs last disabled at (0): [<ffffffff8108bfb9>] copy_process+0x6b9/0x1bc0 [ 769.351623] softirqs last enabled at (0): [<ffffffff8108bfb9>] copy_process+0x6b9/0x1bc0 [ 769.362216] softirqs last disabled at (0): [<0000000000000000>] 0x0 [ 769.370851] CPU: 6 PID: 13068 Comm: kworker/u16:7 Tainted: G DA 5.10.23-gentoo-xeon #3 [ 769.382429] Hardware name: MSI MS-7759/Z77MA-G45 (MS-7759), BIOS V1.9 03/01/2013 [ 769.392269] Workqueue: btrfs-delalloc btrfs_work_helper [ 769.399978] Call Trace: [ 769.404909] dump_stack+0x77/0x97 [ 769.410613] ___might_sleep.cold+0xa6/0xf7 [ 769.416760] exit_signals+0x31/0x340 [ 769.422389] do_exit+0xd5/0xd80 [ 769.427710] ? process_one_work+0x620/0x620 [ 769.433863] ? kthread+0x137/0x160 [ 769.439522] rewind_stack_do_exit+0x17/0x30 [ 769.445667] RIP: 0000:0x0 [ 769.450384] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. [ 769.459233] RSP: 0000:0000000000000000 EFLAGS: 00000000 ORIG_RAX: 0000000000000000 [ 769.468801] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 769.478086] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 769.487360] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 [ 769.496477] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 769.505732] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 805.486724] Writes: Total: 1669878746 Max/Min: 110429415/97813827 Fail: 0 [ 866.984707] Writes: Total: 1800906730 Max/Min: 119167108/105612344 Fail: 0 ### Here is output of "beesd" dedup tool after it froze: ### 2021-03-18 23:47:03 9291.9293<6> crawl_2740: scan: 12K 0xc0000 [Ddd] 0xc3000 BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210221-052/windows/ProgramData/Microsoft/Network/Downloader/edb0005B.log 2021-03-18 23:47:04 9291.9293<6> crawl_2747: dedup: src 16K [0xe90a000..0xe90e000] {0x181fe2bb000z1f000} BACKUP/AUTOBACKUP/hosts/ccc/backup/monthly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2747: dst 16K [0x4c3bc000..0x4c3c0000] {0x18b24139000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210228-059/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2747: dedup: src 48K [0x3f21b000..0x3f227000] {0x1201ee0e000z5000} BACKUP/AUTOBACKUP/hosts/ccc/backup/monthly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2747: dst 48K [0x4c3c0000..0x4c3cc000] {0x18b2413d000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210228-059/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2747: scan: 64K 0x4c3bc000 [DdddDddddddddddd] 0x4c3cc000 BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210228-059/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2760: dedup: src 60K [0x398c5000..0x398d4000] {0x1897e3a6000z1000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210221-052/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/[Gmail].sbd/V&AWE-echny zpr&AOE-vy 2021-03-18 23:47:04 9291.9293<6> crawl_2760: dst 60K [0x4af7c000..0x4af8b000] {0x18e07339000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2760: dedup: src 84K [0x53a93000..0x53aa8000] {0x18b2b6e7000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210228-059/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2760: dst 84K [0x4af8b000..0x4afa0000] {0x18e07348000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:04 9291.9293<6> crawl_2760: copy: 240K [0x4af40000..0x4af7c000] fd = 2792 'BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX' 2021-03-18 23:47:04 9291.9293<6> crawl_2760: dedup: src 240K [0x566000..0x5a2000] {HOLE} #272 (deleted) 2021-03-18 23:47:04 9291.9293<6> crawl_2760: dst 240K [0x4af40000..0x4af7c000] {0x18e072fd000} BACKUP/AUTOBACKUP/hosts/ccc/backup/monthly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9294<6> crawl_2760: dedup: src 80K [0x4af87000..0x4af9b000] {0x18b2b6e3000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9294<6> crawl_2760: dst 80K [0x4b26c000..0x4b280000] {0x18e073d9000zc000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9294<6> crawl_2760: copy: 48K [0x4b260000..0x4b26c000] fd = 2792 'BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX' 2021-03-18 23:47:05 9291.9294<6> crawl_2760: dedup: src 48K [0x2b7000..0x2c3000] {HOLE} #269 (deleted) 2021-03-18 23:47:05 9291.9294<6> crawl_2760: dst 48K [0x4b260000..0x4b26c000] {0x18e073d9000z0} BACKUP/AUTOBACKUP/hosts/ccc/backup/monthly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dedup: src 20K [0x4af9b000..0x4afa0000] {0x18b2b6f7000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dst 20K [0x4b280000..0x4b285000] {0x18e073db000z0} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dedup: src 8K [0x53aa8000..0x53aaa000] {0x18b2b6fc000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210228-059/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dst 8K [0x4b285000..0x4b287000] {0x18e073db000z5000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dedup: src 28K [0x4af7c000..0x4af83000] {0x1897e3a6000z1000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dst 28K [0x4b288000..0x4b28f000] {0x18e073db000z8000} BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX 2021-03-18 23:47:05 9291.9292<6> crawl_2760: copy: 4K [0x4b287000..0x4b288000] fd = 2792 'BACKUP/AUTOBACKUP/hosts/ccc/backup/weekly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX' 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dedup: src 4K [0x1000..0x2000] {HOLE} #273 (deleted) 2021-03-18 23:47:05 9291.9292<6> crawl_2760: dst 4K [0x4b287000..0x4b288000] {0x18e073db000z7000} BACKUP/AUTOBACKUP/hosts/ccc/backup/monthly/20210307-066/windows/Users/rrr/AppData/Roaming/Thunderbird/Profiles/bbbggg.default/ImapMail/imap.xyz.com/INBOX ^C^C^C^C Created attachment 295943 [details]
output of "strace -f rsync" before the kernel bug
output of "strace -f rsync" before the kernel bug
Could you try this patch? https://www.spinics.net/lists/linux-btrfs/msg103808.html (In reply to Su Yue from comment #4) > Could you try this patch? > > https://www.spinics.net/lists/linux-btrfs/msg103808.html Thank you 😍! Initial "crash test" (parallel rsync) completed smoothly without any error/problem. PS: Your patch may also fix the bug #209153 (all kernels after 5.8.2 have similar problem). According to records of bug #209153, I personally think the another trace seems not related to the fix. I'm not author of the patch though. The trace of bug #209153 is different and martin@urbackup.org reported it could happened with ext4. > https://www.spinics.net/lists/linux-btrfs/msg103808.html
I'll have a look why this patch is not merged, there's some sort of fallback when ther's no compression although it's in the compression path, but it's missing the reset of out_pages, the return code is not enough.
Patch pushed to devel queue and will appear on 5.10+ stables once it's merged. |