Skip to contentSkip to conversation

btrfs send crash on kernel 6.11.0

DISCUSSION David Arendt 2 participants 7 messages Sep 18, 2024 – Oct 7, 2024 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

I am experiencing the following crash when doing an incremental btrfs send (started by btrbk) on kernel 6.11.0:

Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Sep 15 23:32:17 sdslinux1 kernel: strcpy: detected buffer overflow: 20 byte write of buffer size 19
Sep 15 23:32:17 sdslinux1 kernel: WARNING: CPU: 3 PID: 3310 at __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x8
6_pkg_temp_thermal intel_powerclamp kvm_intel iTCO_wdt intel_pmc_bxt spi_intel_platform kvm at24 mei_wdt spi_intel mei_pxp iTCO_vendor_support mei_hdcp btusb snd_hda_codec_realtek btbcm btinte
l snd_hda_scodec_component i915 rapl iwlwifi snd_hda_codec_generic btrtl intel_cstate btmtk cec snd_hda_intel intel_uncore cfg80211 snd_intel_dspcfg drm_buddy coretemp snd_intel_sdw_acpi bluet
ooth ttm pcspkr snd_hda_codec rfkill snd_hda_core snd_hwdep intel_vbtn snd_pcm mei_me drm_display_helper snd_timer sparse_keymap i2c_i801 mei snd i2c_smbus lpc_ich soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 igb r8152 serio_raw i2c_algo_bit mii dca e1000e video wmi sunrpc
Sep 15 23:32:17 sdslinux1 kernel: CPU: 3 UID: 0 PID: 3310 Comm: btrfs Not tainted 6.11.0-prnet #1
Sep 15 23:32:17 sdslinux1 kernel: Hardware name: CompuLab Ltd. sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Code: 48 8b 34 c5 e0 a9 97 a8 40 f6 c7 01 48 c7 c0 51 5d 86 a8 48 c7 c1 c0 61 84 a8 48 0f 44 c8 48 c7 c7 60 9d 8a a8 e8 4b f6 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90
Sep 15 23:32:17 sdslinux1 kernel: RSP: 0018:ffff97ebc0d6f650 EFLAGS: 00010246
Sep 15 23:32:17 sdslinux1 kernel: RAX: 7749924ef60fa600 RBX: ffff8bf5446a521a RCX: 0000000000000027
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00000000ffffdfff RSI: ffff97ebc0d6f548 RDI: ffff8bf84e7a1cc8
Sep 15 23:32:17 sdslinux1 kernel: RBP: ffff8bf548574080 R08: ffffffffa8c40e10 R09: 0000000000005ffd
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000004 R11: ffffffffa8c70e10 R12: ffff8bf551eef400
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000000 R14: 0000000000000013 R15: 00000000000003a8
Sep 15 23:32:17 sdslinux1 kernel: FS:  00007fae144de8c0(0000) GS:ffff8bf84e780000(0000) knlGS:0000000000000000
Sep 15 23:32:17 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 15 23:32:17 sdslinux1 kernel: CR2: 00007fae14691690 CR3: 00000001027a2003 CR4: 00000000001706f0
Sep 15 23:32:17 sdslinux1 kernel: Call Trace:
Sep 15 23:32:17 sdslinux1 kernel:  <TASK>
Sep 15 23:32:17 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_bug+0x42/0x70
Sep 15 23:32:17 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 15 23:32:17 sdslinux1 kernel: __get_cur_name_and_parent+0x3bc/0x3c0
Sep 15 23:32:17 sdslinux1 kernel:  get_cur_path+0x207/0x3b0
Sep 15 23:32:17 sdslinux1 kernel:  send_extent_data+0x709/0x10d0
Sep 15 23:32:17 sdslinux1 kernel:  ? find_parent_nodes+0x22df/0x25d0
Sep 15 23:32:17 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 15 23:32:17 sdslinux1 kernel:  ? mtree_insert_range+0xa5/0x110
Sep 15 23:32:17 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 15 23:32:17 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 15 23:32:17 sdslinux1 kernel:  process_extent+0xa96/0x11a0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  changed_cb+0x6fa/0x930
Sep 15 23:32:17 sdslinux1 kernel:  ? tree_advance+0x362/0x390
Sep 15 23:32:17 sdslinux1 kernel:  ? memcmp_extent_buffer+0xd7/0x160
Sep 15 23:32:17 sdslinux1 kernel:  send_subvol+0xf0a/0x1520
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl_send+0x106b/0x11d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx___clone_root_cmp_sort+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl+0x75b/0x850
Sep 15 23:32:17 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 15 23:32:17 sdslinux1 kernel:  do_syscall_64+0x85/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? __count_memcg_events+0x69/0x100
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_mm_fault+0x1327/0x15c0
Sep 15 23:32:17 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 15 23:32:17 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 15 23:32:17 sdslinux1 kernel:  ? do_syscall_64+0x91/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 15 23:32:17 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0033:0x7fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77
18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Sep 15 23:32:17 sdslinux1 kernel: RSP: 002b:00007ffdf1cb09b0 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Sep 15 23:32:17 sdslinux1 kernel: RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00007ffdf1cb0ad0 RSI: 0000000040489426 RDI: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel: RBP: 00000000000078fe R08: 00007fae144006c0 R09: 00007ffdf1cb0927
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffdf1cb1ce8
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000003 R14: 000055c499fab2e0 R15: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel:  </TASK>
Sep 15 23:32:17 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---
Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------

The same btrfs send is working without any problem on kernel 6.10.10.

Thanks in advance,

David Arendt

#1 lore raw
Quoted 114 lines · David Arendt

Hi,

I am experiencing the following crash when doing an incremental btrfs send (started by btrbk) on kernel 6.11.0:

Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Sep 15 23:32:17 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 15 23:32:17 sdslinux1 kernel: WARNING: CPU: 3 PID: 3310 at
__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x8 6_pkg_temp_thermal intel_powerclamp kvm_intel iTCO_wdt intel_pmc_bxt spi_intel_platform kvm at24 mei_wdt spi_intel mei_pxp iTCO_vendor_support mei_hdcp btusb snd_hda_codec_realtek btbcm btinte l snd_hda_scodec_component i915 rapl iwlwifi snd_hda_codec_generic btrtl intel_cstate btmtk cec snd_hda_intel intel_uncore cfg80211 snd_intel_dspcfg drm_buddy coretemp snd_intel_sdw_acpi bluet ooth ttm pcspkr snd_hda_codec rfkill snd_hda_core snd_hwdep intel_vbtn snd_pcm mei_me drm_display_helper snd_timer sparse_keymap i2c_i801 mei snd i2c_smbus lpc_ich soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 igb r8152 serio_raw i2c_algo_bit mii dca e1000e video wmi sunrpc

Sep 15 23:32:17 sdslinux1 kernel: CPU: 3 UID: 0 PID: 3310 Comm: btrfs
Not tainted 6.11.0-prnet #1
Sep 15 23:32:17 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Code: 48 8b 34 c5 e0 a9 97 a8 40 f6 c7
01 48 c7 c0 51 5d 86 a8 48 c7 c1 c0 61 84 a8 48 0f 44 c8 48 c7 c7 60 9d
8a a8 e8 4b f6 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 15 23:32:17 sdslinux1 kernel: RSP: 0018:ffff97ebc0d6f650 EFLAGS:
00010246
Sep 15 23:32:17 sdslinux1 kernel: RAX: 7749924ef60fa600 RBX:
ffff8bf5446a521a RCX: 0000000000000027
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffff97ebc0d6f548 RDI: ffff8bf84e7a1cc8
Sep 15 23:32:17 sdslinux1 kernel: RBP: ffff8bf548574080 R08:
ffffffffa8c40e10 R09: 0000000000005ffd
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffffa8c70e10 R12: ffff8bf551eef400
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 15 23:32:17 sdslinux1 kernel: FS:  00007fae144de8c0(0000)
GS:ffff8bf84e780000(0000) knlGS:0000000000000000
Sep 15 23:32:17 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 15 23:32:17 sdslinux1 kernel: CR2: 00007fae14691690 CR3:
00000001027a2003 CR4: 00000000001706f0
Sep 15 23:32:17 sdslinux1 kernel: Call Trace:
Sep 15 23:32:17 sdslinux1 kernel:  <TASK>
Sep 15 23:32:17 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_bug+0x42/0x70
Sep 15 23:32:17 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 15 23:32:17 sdslinux1 kernel: __get_cur_name_and_parent+0x3bc/0x3c0
Sep 15 23:32:17 sdslinux1 kernel:  get_cur_path+0x207/0x3b0
Sep 15 23:32:17 sdslinux1 kernel:  send_extent_data+0x709/0x10d0
Sep 15 23:32:17 sdslinux1 kernel:  ? find_parent_nodes+0x22df/0x25d0
Sep 15 23:32:17 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 15 23:32:17 sdslinux1 kernel:  ? mtree_insert_range+0xa5/0x110
Sep 15 23:32:17 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 15 23:32:17 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 15 23:32:17 sdslinux1 kernel:  process_extent+0xa96/0x11a0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  changed_cb+0x6fa/0x930
Sep 15 23:32:17 sdslinux1 kernel:  ? tree_advance+0x362/0x390
Sep 15 23:32:17 sdslinux1 kernel:  ? memcmp_extent_buffer+0xd7/0x160
Sep 15 23:32:17 sdslinux1 kernel:  send_subvol+0xf0a/0x1520
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl_send+0x106b/0x11d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx___clone_root_cmp_sort+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl+0x75b/0x850
Sep 15 23:32:17 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 15 23:32:17 sdslinux1 kernel:  do_syscall_64+0x85/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? __count_memcg_events+0x69/0x100
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_mm_fault+0x1327/0x15c0
Sep 15 23:32:17 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 15 23:32:17 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 15 23:32:17 sdslinux1 kernel:  ? do_syscall_64+0x91/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 15 23:32:17 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0033:0x7fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77
18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Sep 15 23:32:17 sdslinux1 kernel: RSP: 002b:00007ffdf1cb09b0 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 15 23:32:17 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00007ffdf1cb0ad0 RSI:
0000000040489426 RDI: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel: RBP: 00000000000078fe R08:
00007fae144006c0 R09: 00007ffdf1cb0927
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffdf1cb1ce8
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000003 R14:
000055c499fab2e0 R15: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel:  </TASK>
Sep 15 23:32:17 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---
Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Quoted 1 line

The same btrfs send is working without any problem on kernel 6.10.10.

Try this:

https://lore.kernel.org/linux-btrfs/fbbc0efa2ad81b3dcc00c6dcb15af8189d343af3.1726692825.git.fdmanana@suse.com/

Thanks.

Quoted 6 lines

Thanks in advance,

David Arendt

#2 lore raw
Quoted 114 lines · Filipe Manana
Quoted 113 lines · David Arendt

Hi,

I am experiencing the following crash when doing an incremental btrfs send (started by btrbk) on kernel 6.11.0:

Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Sep 15 23:32:17 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 15 23:32:17 sdslinux1 kernel: WARNING: CPU: 3 PID: 3310 at
__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x8 6_pkg_temp_thermal intel_powerclamp kvm_intel iTCO_wdt intel_pmc_bxt spi_intel_platform kvm at24 mei_wdt spi_intel mei_pxp iTCO_vendor_support mei_hdcp btusb snd_hda_codec_realtek btbcm btinte l snd_hda_scodec_component i915 rapl iwlwifi snd_hda_codec_generic btrtl intel_cstate btmtk cec snd_hda_intel intel_uncore cfg80211 snd_intel_dspcfg drm_buddy coretemp snd_intel_sdw_acpi bluet ooth ttm pcspkr snd_hda_codec rfkill snd_hda_core snd_hwdep intel_vbtn snd_pcm mei_me drm_display_helper snd_timer sparse_keymap i2c_i801 mei snd i2c_smbus lpc_ich soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 igb r8152 serio_raw i2c_algo_bit mii dca e1000e video wmi sunrpc

Sep 15 23:32:17 sdslinux1 kernel: CPU: 3 UID: 0 PID: 3310 Comm: btrfs
Not tainted 6.11.0-prnet #1
Sep 15 23:32:17 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Code: 48 8b 34 c5 e0 a9 97 a8 40 f6 c7
01 48 c7 c0 51 5d 86 a8 48 c7 c1 c0 61 84 a8 48 0f 44 c8 48 c7 c7 60 9d
8a a8 e8 4b f6 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 15 23:32:17 sdslinux1 kernel: RSP: 0018:ffff97ebc0d6f650 EFLAGS:
00010246
Sep 15 23:32:17 sdslinux1 kernel: RAX: 7749924ef60fa600 RBX:
ffff8bf5446a521a RCX: 0000000000000027
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffff97ebc0d6f548 RDI: ffff8bf84e7a1cc8
Sep 15 23:32:17 sdslinux1 kernel: RBP: ffff8bf548574080 R08:
ffffffffa8c40e10 R09: 0000000000005ffd
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffffa8c70e10 R12: ffff8bf551eef400
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 15 23:32:17 sdslinux1 kernel: FS:  00007fae144de8c0(0000)
GS:ffff8bf84e780000(0000) knlGS:0000000000000000
Sep 15 23:32:17 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 15 23:32:17 sdslinux1 kernel: CR2: 00007fae14691690 CR3:
00000001027a2003 CR4: 00000000001706f0
Sep 15 23:32:17 sdslinux1 kernel: Call Trace:
Sep 15 23:32:17 sdslinux1 kernel:  <TASK>
Sep 15 23:32:17 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_bug+0x42/0x70
Sep 15 23:32:17 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 15 23:32:17 sdslinux1 kernel: __get_cur_name_and_parent+0x3bc/0x3c0
Sep 15 23:32:17 sdslinux1 kernel:  get_cur_path+0x207/0x3b0
Sep 15 23:32:17 sdslinux1 kernel:  send_extent_data+0x709/0x10d0
Sep 15 23:32:17 sdslinux1 kernel:  ? find_parent_nodes+0x22df/0x25d0
Sep 15 23:32:17 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 15 23:32:17 sdslinux1 kernel:  ? mtree_insert_range+0xa5/0x110
Sep 15 23:32:17 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 15 23:32:17 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 15 23:32:17 sdslinux1 kernel:  process_extent+0xa96/0x11a0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  changed_cb+0x6fa/0x930
Sep 15 23:32:17 sdslinux1 kernel:  ? tree_advance+0x362/0x390
Sep 15 23:32:17 sdslinux1 kernel:  ? memcmp_extent_buffer+0xd7/0x160
Sep 15 23:32:17 sdslinux1 kernel:  send_subvol+0xf0a/0x1520
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl_send+0x106b/0x11d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx___clone_root_cmp_sort+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl+0x75b/0x850
Sep 15 23:32:17 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 15 23:32:17 sdslinux1 kernel:  do_syscall_64+0x85/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? __count_memcg_events+0x69/0x100
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_mm_fault+0x1327/0x15c0
Sep 15 23:32:17 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 15 23:32:17 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 15 23:32:17 sdslinux1 kernel:  ? do_syscall_64+0x91/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 15 23:32:17 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0033:0x7fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77
18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Sep 15 23:32:17 sdslinux1 kernel: RSP: 002b:00007ffdf1cb09b0 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 15 23:32:17 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00007ffdf1cb0ad0 RSI:
0000000040489426 RDI: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel: RBP: 00000000000078fe R08:
00007fae144006c0 R09: 00007ffdf1cb0927
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffdf1cb1ce8
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000003 R14:
000055c499fab2e0 R15: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel:  </TASK>
Sep 15 23:32:17 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---
Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Quoted 12 lines
Quoted 1 line

The same btrfs send is working without any problem on kernel 6.10.10.

Try this:

https://lore.kernel.org/linux-btrfs/fbbc0efa2ad81b3dcc00c6dcb15af8189d343af3.1726692825.git.fdmanana@suse.com/

Thanks.

Quoted 5 lines

Thanks in advance,

David Arendt

Hi,

Unfortunately the crash is still happening with the patch applied.

Here is the btrfs send command executed by btrbk:

btrfs send -p '/u02/btrbk_snapshots/psdslinux1.20240919T2200' '/u02/btrbk_snapshots/psdslinux1.20240919T2209'

Sep 19 22:09:41 sdslinux1 kernel: ------------[ cut here ]------------
Sep 19 22:09:41 sdslinux1 kernel: strcpy: detected buffer overflow: 20 byte write of buffer size 19
Sep 19 22:09:41 sdslinux1 kernel: WARNING: CPU: 2 PID: 3316 at __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm snd_hda_codec_realtek iTCO_wdt snd_hda_scodec_component intel_pmc_bxt snd_hda_codec_generic mei_pxp spi_intel_platform btusb rapl at24 spi_intel mei_wdt mei_hdcp iTCO_vendor_support btbcm intel_cstate btintel i915 btrtl intel_uncore snd_hda_intel btmtk coretemp snd_intel_dspcfg iwlwifi snd_intel_sdw_acpi snd_hda_codec i2c_i801 cfg80211 pcspkr i2c_smbus bluetooth snd_hda_core snd_hwdep cec drm_buddy ttm rfkill snd_pcm snd_timer mei_me intel_vbtn snd sparse_keymap drm_display_helper lpc_ich mei soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 serio_raw r8152 igb mii i2c_algo_bit dca e1000e video wmi sunrpc
Sep 19 22:09:41 sdslinux1 kernel: CPU: 2 UID: 0 PID: 3316 Comm: btrfs Not tainted 6.11.0-prnet #2
Sep 19 22:09:41 sdslinux1 kernel: Hardware name: CompuLab Ltd. sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Code: 48 8b 34 c5 10 a3 97 8f 40 f6 c7 01 48 c7 c0 49 57 86 8f 48 c7 c1 b8 5b 84 8f 48 0f 44 c8 48 c7 c7 35 97 8a 8f e8 db 85 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90
Sep 19 22:09:41 sdslinux1 kernel: RSP: 0018:ffffb9e780d6f580 EFLAGS: 00010246
Sep 19 22:09:41 sdslinux1 kernel: RAX: e21c8dd82a268800 RBX: ffff8c3d02f7ad1a RCX: 0000000000000027
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00000000ffffdfff RSI: ffffb9e780d6f478 RDI: ffff8c400e721cc8
Sep 19 22:09:41 sdslinux1 kernel: RBP: ffff8c3d05803080 R08: ffffffff8fc40e10 R09: 0000000000005ffd
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000004 R11: ffffffff8fc70e10 R12: ffff8c3d13898000
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000000 R14: 0000000000000013 R15: 00000000000003a8
Sep 19 22:09:41 sdslinux1 kernel: FS:  00007f8ea78128c0(0000) GS:ffff8c400e700000(0000) knlGS:0000000000000000
Sep 19 22:09:41 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 19 22:09:41 sdslinux1 kernel: CR2: 00007fc355bb5ef0 CR3: 0000000102e5c001 CR4: 00000000001706f0
Sep 19 22:09:41 sdslinux1 kernel: Call Trace:
Sep 19 22:09:41 sdslinux1 kernel:  <TASK>
Sep 19 22:09:41 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 19 22:09:41 sdslinux1 kernel:  ? handle_bug+0x3f/0x70
Sep 19 22:09:41 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 19 22:09:41 sdslinux1 kernel: __get_cur_name_and_parent+0x3c1/0x3d0
Sep 19 22:09:41 sdslinux1 kernel:  get_cur_path+0x223/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  send_extent_data+0x6c9/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? find_parent_nodes+0x231f/0x2610
Sep 19 22:09:41 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 19 22:09:41 sdslinux1 kernel:  ? mtree_insert_range+0xb5/0x120
Sep 19 22:09:41 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 19 22:09:41 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 19 22:09:41 sdslinux1 kernel:  process_extent+0xa8e/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  changed_cb+0x6c1/0x930
Sep 19 22:09:41 sdslinux1 kernel:  ? tree_advance+0x39b/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  ? memcmp_extent_buffer+0xe3/0x170
Sep 19 22:09:41 sdslinux1 kernel:  send_subvol+0x1217/0x1620
Sep 19 22:09:41 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? place_entity+0x147/0x190
Sep 19 22:09:41 sdslinux1 kernel:  ? enqueue_entity+0x269/0x610
Sep 19 22:09:41 sdslinux1 kernel:  btrfs_ioctl+0x759/0x850
Sep 19 22:09:41 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 19 22:09:41 sdslinux1 kernel:  do_syscall_64+0x85/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? kernel_clone+0x1f9/0x500
Sep 19 22:09:41 sdslinux1 kernel:  ? __x64_sys_clone3+0x22b/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? do_syscall_64+0x91/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 19 22:09:41 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0033:0x7f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Sep 19 22:09:41 sdslinux1 kernel: RSP: 002b:00007ffd2a143770 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Sep 19 22:09:41 sdslinux1 kernel: RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00007ffd2a143890 RSI: 0000000040489426 RDI: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel: RBP: 00000000000079c2 R08: 00007f8ea78006c0 R09: 00007ffd2a1436e7
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000008 R11: 0000000000000246 R12: 00007ffd2a144aa8
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000003 R14: 0000559b669962e0 R15: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel:  </TASK>
Sep 19 22:09:41 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---

Thanks in advance,

David Arendt

#3 lore raw
Quoted 123 lines · David Arendt
Quoted 121 lines · Filipe Manana
Quoted 113 lines · David Arendt

Hi,

I am experiencing the following crash when doing an incremental btrfs send (started by btrbk) on kernel 6.11.0:

Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Sep 15 23:32:17 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 15 23:32:17 sdslinux1 kernel: WARNING: CPU: 3 PID: 3310 at
__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x8 6_pkg_temp_thermal intel_powerclamp kvm_intel iTCO_wdt intel_pmc_bxt spi_intel_platform kvm at24 mei_wdt spi_intel mei_pxp iTCO_vendor_support mei_hdcp btusb snd_hda_codec_realtek btbcm btinte l snd_hda_scodec_component i915 rapl iwlwifi snd_hda_codec_generic btrtl intel_cstate btmtk cec snd_hda_intel intel_uncore cfg80211 snd_intel_dspcfg drm_buddy coretemp snd_intel_sdw_acpi bluet ooth ttm pcspkr snd_hda_codec rfkill snd_hda_core snd_hwdep intel_vbtn snd_pcm mei_me drm_display_helper snd_timer sparse_keymap i2c_i801 mei snd i2c_smbus lpc_ich soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 igb r8152 serio_raw i2c_algo_bit mii dca e1000e video wmi sunrpc

Sep 15 23:32:17 sdslinux1 kernel: CPU: 3 UID: 0 PID: 3310 Comm: btrfs
Not tainted 6.11.0-prnet #1
Sep 15 23:32:17 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Code: 48 8b 34 c5 e0 a9 97 a8 40 f6 c7
01 48 c7 c0 51 5d 86 a8 48 c7 c1 c0 61 84 a8 48 0f 44 c8 48 c7 c7 60 9d
8a a8 e8 4b f6 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 15 23:32:17 sdslinux1 kernel: RSP: 0018:ffff97ebc0d6f650 EFLAGS:
00010246
Sep 15 23:32:17 sdslinux1 kernel: RAX: 7749924ef60fa600 RBX:
ffff8bf5446a521a RCX: 0000000000000027
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffff97ebc0d6f548 RDI: ffff8bf84e7a1cc8
Sep 15 23:32:17 sdslinux1 kernel: RBP: ffff8bf548574080 R08:
ffffffffa8c40e10 R09: 0000000000005ffd
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffffa8c70e10 R12: ffff8bf551eef400
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 15 23:32:17 sdslinux1 kernel: FS:  00007fae144de8c0(0000)
GS:ffff8bf84e780000(0000) knlGS:0000000000000000
Sep 15 23:32:17 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 15 23:32:17 sdslinux1 kernel: CR2: 00007fae14691690 CR3:
00000001027a2003 CR4: 00000000001706f0
Sep 15 23:32:17 sdslinux1 kernel: Call Trace:
Sep 15 23:32:17 sdslinux1 kernel:  <TASK>
Sep 15 23:32:17 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_bug+0x42/0x70
Sep 15 23:32:17 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 15 23:32:17 sdslinux1 kernel: __get_cur_name_and_parent+0x3bc/0x3c0
Sep 15 23:32:17 sdslinux1 kernel:  get_cur_path+0x207/0x3b0
Sep 15 23:32:17 sdslinux1 kernel:  send_extent_data+0x709/0x10d0
Sep 15 23:32:17 sdslinux1 kernel:  ? find_parent_nodes+0x22df/0x25d0
Sep 15 23:32:17 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 15 23:32:17 sdslinux1 kernel:  ? mtree_insert_range+0xa5/0x110
Sep 15 23:32:17 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 15 23:32:17 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 15 23:32:17 sdslinux1 kernel:  process_extent+0xa96/0x11a0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  changed_cb+0x6fa/0x930
Sep 15 23:32:17 sdslinux1 kernel:  ? tree_advance+0x362/0x390
Sep 15 23:32:17 sdslinux1 kernel:  ? memcmp_extent_buffer+0xd7/0x160
Sep 15 23:32:17 sdslinux1 kernel:  send_subvol+0xf0a/0x1520
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl_send+0x106b/0x11d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx___clone_root_cmp_sort+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl+0x75b/0x850
Sep 15 23:32:17 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 15 23:32:17 sdslinux1 kernel:  do_syscall_64+0x85/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? __count_memcg_events+0x69/0x100
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_mm_fault+0x1327/0x15c0
Sep 15 23:32:17 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 15 23:32:17 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 15 23:32:17 sdslinux1 kernel:  ? do_syscall_64+0x91/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 15 23:32:17 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0033:0x7fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77
18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Sep 15 23:32:17 sdslinux1 kernel: RSP: 002b:00007ffdf1cb09b0 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 15 23:32:17 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00007ffdf1cb0ad0 RSI:
0000000040489426 RDI: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel: RBP: 00000000000078fe R08:
00007fae144006c0 R09: 00007ffdf1cb0927
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffdf1cb1ce8
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000003 R14:
000055c499fab2e0 R15: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel:  </TASK>
Sep 15 23:32:17 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---
Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Quoted 1 line

The same btrfs send is working without any problem on kernel 6.10.10.

Try this:

https://lore.kernel.org/linux-btrfs/fbbc0efa2ad81b3dcc00c6dcb15af8189d343af3.1726692825.git.fdmanana@suse.com/

Thanks.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

Thanks in advance,

David Arendt

Hi,

Unfortunately the crash is still happening with the patch applied.

Yeah, I realized later that the problem is different from what I thought initially.

Try this:

https://lore.kernel.org/linux-btrfs/ee24884b0255f717071ca932bda1ab398707d9cf.1726782272.git.fdmanana@suse.com/

That should fix it and it's indeed a regression introduced in 6.11.

Thanks.

Quoted 118 lines

Here is the btrfs send command executed by btrbk:

btrfs send -p '/u02/btrbk_snapshots/psdslinux1.20240919T2200' '/u02/btrbk_snapshots/psdslinux1.20240919T2209'

Sep 19 22:09:41 sdslinux1 kernel: ------------[ cut here ]------------
Sep 19 22:09:41 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 19 22:09:41 sdslinux1 kernel: WARNING: CPU: 2 PID: 3316 at
__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm snd_hda_codec_realtek iTCO_wdt snd_hda_scodec_component intel_pmc_bxt snd_hda_codec_generic mei_pxp spi_intel_platform btusb rapl at24 spi_intel mei_wdt mei_hdcp iTCO_vendor_support btbcm intel_cstate btintel i915 btrtl intel_uncore snd_hda_intel btmtk coretemp snd_intel_dspcfg iwlwifi snd_intel_sdw_acpi snd_hda_codec i2c_i801 cfg80211 pcspkr i2c_smbus bluetooth snd_hda_core snd_hwdep cec drm_buddy ttm rfkill snd_pcm snd_timer mei_me intel_vbtn snd sparse_keymap drm_display_helper lpc_ich mei soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 serio_raw r8152 igb mii i2c_algo_bit dca e1000e video wmi sunrpc

Sep 19 22:09:41 sdslinux1 kernel: CPU: 2 UID: 0 PID: 3316 Comm: btrfs
Not tainted 6.11.0-prnet #2
Sep 19 22:09:41 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Code: 48 8b 34 c5 10 a3 97 8f 40 f6 c7
01 48 c7 c0 49 57 86 8f 48 c7 c1 b8 5b 84 8f 48 0f 44 c8 48 c7 c7 35 97
8a 8f e8 db 85 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 19 22:09:41 sdslinux1 kernel: RSP: 0018:ffffb9e780d6f580 EFLAGS:
00010246
Sep 19 22:09:41 sdslinux1 kernel: RAX: e21c8dd82a268800 RBX:
ffff8c3d02f7ad1a RCX: 0000000000000027
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffffb9e780d6f478 RDI: ffff8c400e721cc8
Sep 19 22:09:41 sdslinux1 kernel: RBP: ffff8c3d05803080 R08:
ffffffff8fc40e10 R09: 0000000000005ffd
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffff8fc70e10 R12: ffff8c3d13898000
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 19 22:09:41 sdslinux1 kernel: FS:  00007f8ea78128c0(0000)
GS:ffff8c400e700000(0000) knlGS:0000000000000000
Sep 19 22:09:41 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 19 22:09:41 sdslinux1 kernel: CR2: 00007fc355bb5ef0 CR3:
0000000102e5c001 CR4: 00000000001706f0
Sep 19 22:09:41 sdslinux1 kernel: Call Trace:
Sep 19 22:09:41 sdslinux1 kernel:  <TASK>
Sep 19 22:09:41 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 19 22:09:41 sdslinux1 kernel:  ? handle_bug+0x3f/0x70
Sep 19 22:09:41 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 19 22:09:41 sdslinux1 kernel: __get_cur_name_and_parent+0x3c1/0x3d0
Sep 19 22:09:41 sdslinux1 kernel:  get_cur_path+0x223/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  send_extent_data+0x6c9/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? find_parent_nodes+0x231f/0x2610
Sep 19 22:09:41 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 19 22:09:41 sdslinux1 kernel:  ? mtree_insert_range+0xb5/0x120
Sep 19 22:09:41 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 19 22:09:41 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 19 22:09:41 sdslinux1 kernel:  process_extent+0xa8e/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  changed_cb+0x6c1/0x930
Sep 19 22:09:41 sdslinux1 kernel:  ? tree_advance+0x39b/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  ? memcmp_extent_buffer+0xe3/0x170
Sep 19 22:09:41 sdslinux1 kernel:  send_subvol+0x1217/0x1620
Sep 19 22:09:41 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? place_entity+0x147/0x190
Sep 19 22:09:41 sdslinux1 kernel:  ? enqueue_entity+0x269/0x610
Sep 19 22:09:41 sdslinux1 kernel:  btrfs_ioctl+0x759/0x850
Sep 19 22:09:41 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 19 22:09:41 sdslinux1 kernel:  do_syscall_64+0x85/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? kernel_clone+0x1f9/0x500
Sep 19 22:09:41 sdslinux1 kernel:  ? __x64_sys_clone3+0x22b/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? do_syscall_64+0x91/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 19 22:09:41 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0033:0x7f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48
2b 04 25 28 00 00
Sep 19 22:09:41 sdslinux1 kernel: RSP: 002b:00007ffd2a143770 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 19 22:09:41 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00007ffd2a143890 RSI:
0000000040489426 RDI: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel: RBP: 00000000000079c2 R08:
00007f8ea78006c0 R09: 00007ffd2a1436e7
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffd2a144aa8
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000003 R14:
0000559b669962e0 R15: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel:  </TASK>
Sep 19 22:09:41 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---

Thanks in advance,

David Arendt

#4 lore raw
Quoted 134 lines · Filipe Manana
Quoted 122 lines · David Arendt
Quoted 121 lines · Filipe Manana
Quoted 113 lines · David Arendt

Hi,

I am experiencing the following crash when doing an incremental btrfs send (started by btrbk) on kernel 6.11.0:

Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Sep 15 23:32:17 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 15 23:32:17 sdslinux1 kernel: WARNING: CPU: 3 PID: 3310 at
__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x8 6_pkg_temp_thermal intel_powerclamp kvm_intel iTCO_wdt intel_pmc_bxt spi_intel_platform kvm at24 mei_wdt spi_intel mei_pxp iTCO_vendor_support mei_hdcp btusb snd_hda_codec_realtek btbcm btinte l snd_hda_scodec_component i915 rapl iwlwifi snd_hda_codec_generic btrtl intel_cstate btmtk cec snd_hda_intel intel_uncore cfg80211 snd_intel_dspcfg drm_buddy coretemp snd_intel_sdw_acpi bluet ooth ttm pcspkr snd_hda_codec rfkill snd_hda_core snd_hwdep intel_vbtn snd_pcm mei_me drm_display_helper snd_timer sparse_keymap i2c_i801 mei snd i2c_smbus lpc_ich soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 igb r8152 serio_raw i2c_algo_bit mii dca e1000e video wmi sunrpc

Sep 15 23:32:17 sdslinux1 kernel: CPU: 3 UID: 0 PID: 3310 Comm: btrfs
Not tainted 6.11.0-prnet #1
Sep 15 23:32:17 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Code: 48 8b 34 c5 e0 a9 97 a8 40 f6 c7
01 48 c7 c0 51 5d 86 a8 48 c7 c1 c0 61 84 a8 48 0f 44 c8 48 c7 c7 60 9d
8a a8 e8 4b f6 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 15 23:32:17 sdslinux1 kernel: RSP: 0018:ffff97ebc0d6f650 EFLAGS:
00010246
Sep 15 23:32:17 sdslinux1 kernel: RAX: 7749924ef60fa600 RBX:
ffff8bf5446a521a RCX: 0000000000000027
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffff97ebc0d6f548 RDI: ffff8bf84e7a1cc8
Sep 15 23:32:17 sdslinux1 kernel: RBP: ffff8bf548574080 R08:
ffffffffa8c40e10 R09: 0000000000005ffd
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffffa8c70e10 R12: ffff8bf551eef400
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 15 23:32:17 sdslinux1 kernel: FS:  00007fae144de8c0(0000)
GS:ffff8bf84e780000(0000) knlGS:0000000000000000
Sep 15 23:32:17 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 15 23:32:17 sdslinux1 kernel: CR2: 00007fae14691690 CR3:
00000001027a2003 CR4: 00000000001706f0
Sep 15 23:32:17 sdslinux1 kernel: Call Trace:
Sep 15 23:32:17 sdslinux1 kernel:  <TASK>
Sep 15 23:32:17 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_bug+0x42/0x70
Sep 15 23:32:17 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 15 23:32:17 sdslinux1 kernel: __get_cur_name_and_parent+0x3bc/0x3c0
Sep 15 23:32:17 sdslinux1 kernel:  get_cur_path+0x207/0x3b0
Sep 15 23:32:17 sdslinux1 kernel:  send_extent_data+0x709/0x10d0
Sep 15 23:32:17 sdslinux1 kernel:  ? find_parent_nodes+0x22df/0x25d0
Sep 15 23:32:17 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 15 23:32:17 sdslinux1 kernel:  ? mtree_insert_range+0xa5/0x110
Sep 15 23:32:17 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 15 23:32:17 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 15 23:32:17 sdslinux1 kernel:  process_extent+0xa96/0x11a0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  changed_cb+0x6fa/0x930
Sep 15 23:32:17 sdslinux1 kernel:  ? tree_advance+0x362/0x390
Sep 15 23:32:17 sdslinux1 kernel:  ? memcmp_extent_buffer+0xd7/0x160
Sep 15 23:32:17 sdslinux1 kernel:  send_subvol+0xf0a/0x1520
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl_send+0x106b/0x11d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx___clone_root_cmp_sort+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl+0x75b/0x850
Sep 15 23:32:17 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 15 23:32:17 sdslinux1 kernel:  do_syscall_64+0x85/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? __count_memcg_events+0x69/0x100
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_mm_fault+0x1327/0x15c0
Sep 15 23:32:17 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 15 23:32:17 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 15 23:32:17 sdslinux1 kernel:  ? do_syscall_64+0x91/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 15 23:32:17 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0033:0x7fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77
18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Sep 15 23:32:17 sdslinux1 kernel: RSP: 002b:00007ffdf1cb09b0 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 15 23:32:17 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00007ffdf1cb0ad0 RSI:
0000000040489426 RDI: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel: RBP: 00000000000078fe R08:
00007fae144006c0 R09: 00007ffdf1cb0927
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffdf1cb1ce8
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000003 R14:
000055c499fab2e0 R15: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel:  </TASK>
Sep 15 23:32:17 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---
Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Quoted 1 line

The same btrfs send is working without any problem on kernel 6.10.10.

Try this:

https://lore.kernel.org/linux-btrfs/fbbc0efa2ad81b3dcc00c6dcb15af8189d343af3.1726692825.git.fdmanana@suse.com/

Thanks.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

Thanks in advance,

David Arendt

Hi,

Unfortunately the crash is still happening with the patch applied.

Yeah, I realized later that the problem is different from what I thought initially.

Quoted 7 lines

Try this:

https://lore.kernel.org/linux-btrfs/ee24884b0255f717071ca932bda1ab398707d9cf.1726782272.git.fdmanana@suse.com/

That should fix it and it's indeed a regression introduced in 6.11.

Thanks.

Hi,

Many thanks. I can confirm that the problem is fixed by applying this patch.

Bye,

David Arendt

Quoted 117 lines
Quoted 117 lines

Here is the btrfs send command executed by btrbk:

btrfs send -p '/u02/btrbk_snapshots/psdslinux1.20240919T2200' '/u02/btrbk_snapshots/psdslinux1.20240919T2209'

Sep 19 22:09:41 sdslinux1 kernel: ------------[ cut here ]------------
Sep 19 22:09:41 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 19 22:09:41 sdslinux1 kernel: WARNING: CPU: 2 PID: 3316 at
__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm snd_hda_codec_realtek iTCO_wdt snd_hda_scodec_component intel_pmc_bxt snd_hda_codec_generic mei_pxp spi_intel_platform btusb rapl at24 spi_intel mei_wdt mei_hdcp iTCO_vendor_support btbcm intel_cstate btintel i915 btrtl intel_uncore snd_hda_intel btmtk coretemp snd_intel_dspcfg iwlwifi snd_intel_sdw_acpi snd_hda_codec i2c_i801 cfg80211 pcspkr i2c_smbus bluetooth snd_hda_core snd_hwdep cec drm_buddy ttm rfkill snd_pcm snd_timer mei_me intel_vbtn snd sparse_keymap drm_display_helper lpc_ich mei soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 serio_raw r8152 igb mii i2c_algo_bit dca e1000e video wmi sunrpc

Sep 19 22:09:41 sdslinux1 kernel: CPU: 2 UID: 0 PID: 3316 Comm: btrfs
Not tainted 6.11.0-prnet #2
Sep 19 22:09:41 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Code: 48 8b 34 c5 10 a3 97 8f 40 f6 c7
01 48 c7 c0 49 57 86 8f 48 c7 c1 b8 5b 84 8f 48 0f 44 c8 48 c7 c7 35 97
8a 8f e8 db 85 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 19 22:09:41 sdslinux1 kernel: RSP: 0018:ffffb9e780d6f580 EFLAGS:
00010246
Sep 19 22:09:41 sdslinux1 kernel: RAX: e21c8dd82a268800 RBX:
ffff8c3d02f7ad1a RCX: 0000000000000027
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffffb9e780d6f478 RDI: ffff8c400e721cc8
Sep 19 22:09:41 sdslinux1 kernel: RBP: ffff8c3d05803080 R08:
ffffffff8fc40e10 R09: 0000000000005ffd
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffff8fc70e10 R12: ffff8c3d13898000
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 19 22:09:41 sdslinux1 kernel: FS:  00007f8ea78128c0(0000)
GS:ffff8c400e700000(0000) knlGS:0000000000000000
Sep 19 22:09:41 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 19 22:09:41 sdslinux1 kernel: CR2: 00007fc355bb5ef0 CR3:
0000000102e5c001 CR4: 00000000001706f0
Sep 19 22:09:41 sdslinux1 kernel: Call Trace:
Sep 19 22:09:41 sdslinux1 kernel:  <TASK>
Sep 19 22:09:41 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 19 22:09:41 sdslinux1 kernel:  ? handle_bug+0x3f/0x70
Sep 19 22:09:41 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 19 22:09:41 sdslinux1 kernel: __get_cur_name_and_parent+0x3c1/0x3d0
Sep 19 22:09:41 sdslinux1 kernel:  get_cur_path+0x223/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  send_extent_data+0x6c9/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? find_parent_nodes+0x231f/0x2610
Sep 19 22:09:41 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 19 22:09:41 sdslinux1 kernel:  ? mtree_insert_range+0xb5/0x120
Sep 19 22:09:41 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 19 22:09:41 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 19 22:09:41 sdslinux1 kernel:  process_extent+0xa8e/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  changed_cb+0x6c1/0x930
Sep 19 22:09:41 sdslinux1 kernel:  ? tree_advance+0x39b/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  ? memcmp_extent_buffer+0xe3/0x170
Sep 19 22:09:41 sdslinux1 kernel:  send_subvol+0x1217/0x1620
Sep 19 22:09:41 sdslinux1 kernel:  _btrfs_ioctl_send+0x1ac/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? place_entity+0x147/0x190
Sep 19 22:09:41 sdslinux1 kernel:  ? enqueue_entity+0x269/0x610
Sep 19 22:09:41 sdslinux1 kernel:  btrfs_ioctl+0x759/0x850
Sep 19 22:09:41 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 19 22:09:41 sdslinux1 kernel:  do_syscall_64+0x85/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? kernel_clone+0x1f9/0x500
Sep 19 22:09:41 sdslinux1 kernel:  ? __x64_sys_clone3+0x22b/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? do_syscall_64+0x91/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 19 22:09:41 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0033:0x7f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48
2b 04 25 28 00 00
Sep 19 22:09:41 sdslinux1 kernel: RSP: 002b:00007ffd2a143770 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 19 22:09:41 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00007ffd2a143890 RSI:
0000000040489426 RDI: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel: RBP: 00000000000079c2 R08:
00007f8ea78006c0 R09: 00007ffd2a1436e7
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffd2a144aa8
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000003 R14:
0000559b669962e0 R15: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel:  </TASK>
Sep 19 22:09:41 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---

Thanks in advance,

David Arendt

#5 lore raw
Quoted 145 lines · David Arendt
Quoted 135 lines · Filipe Manana
Quoted 123 lines · David Arendt
Quoted 122 lines · Filipe Manana
Quoted 113 lines · David Arendt

Hi,

I am experiencing the following crash when doing an incremental btrfs send (started by btrbk) on kernel 6.11.0:

Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Sep 15 23:32:17 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 15 23:32:17 sdslinux1 kernel: WARNING: CPU: 3 PID: 3310 at
__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x8 6_pkg_temp_thermal intel_powerclamp kvm_intel iTCO_wdt intel_pmc_bxt spi_intel_platform kvm at24 mei_wdt spi_intel mei_pxp iTCO_vendor_support mei_hdcp btusb snd_hda_codec_realtek btbcm btinte l snd_hda_scodec_component i915 rapl iwlwifi snd_hda_codec_generic btrtl intel_cstate btmtk cec snd_hda_intel intel_uncore cfg80211 snd_intel_dspcfg drm_buddy coretemp snd_intel_sdw_acpi bluet ooth ttm pcspkr snd_hda_codec rfkill snd_hda_core snd_hwdep intel_vbtn snd_pcm mei_me drm_display_helper snd_timer sparse_keymap i2c_i801 mei snd i2c_smbus lpc_ich soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 igb r8152 serio_raw i2c_algo_bit mii dca e1000e video wmi sunrpc

Sep 15 23:32:17 sdslinux1 kernel: CPU: 3 UID: 0 PID: 3310 Comm: btrfs
Not tainted 6.11.0-prnet #1
Sep 15 23:32:17 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Code: 48 8b 34 c5 e0 a9 97 a8 40 f6 c7
01 48 c7 c0 51 5d 86 a8 48 c7 c1 c0 61 84 a8 48 0f 44 c8 48 c7 c7 60 9d
8a a8 e8 4b f6 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 15 23:32:17 sdslinux1 kernel: RSP: 0018:ffff97ebc0d6f650 EFLAGS:
00010246
Sep 15 23:32:17 sdslinux1 kernel: RAX: 7749924ef60fa600 RBX:
ffff8bf5446a521a RCX: 0000000000000027
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffff97ebc0d6f548 RDI: ffff8bf84e7a1cc8
Sep 15 23:32:17 sdslinux1 kernel: RBP: ffff8bf548574080 R08:
ffffffffa8c40e10 R09: 0000000000005ffd
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffffa8c70e10 R12: ffff8bf551eef400
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 15 23:32:17 sdslinux1 kernel: FS: 00007fae144de8c0(0000)
GS:ffff8bf84e780000(0000) knlGS:0000000000000000
Sep 15 23:32:17 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 15 23:32:17 sdslinux1 kernel: CR2: 00007fae14691690 CR3:
00000001027a2003 CR4: 00000000001706f0
Sep 15 23:32:17 sdslinux1 kernel: Call Trace:
Sep 15 23:32:17 sdslinux1 kernel:  <TASK>
Sep 15 23:32:17 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_bug+0x42/0x70
Sep 15 23:32:17 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: __fortify_panic+0x9/0x10
Sep 15 23:32:17 sdslinux1 kernel: __get_cur_name_and_parent+0x3bc/0x3c0
Sep 15 23:32:17 sdslinux1 kernel: get_cur_path+0x207/0x3b0
Sep 15 23:32:17 sdslinux1 kernel: send_extent_data+0x709/0x10d0
Sep 15 23:32:17 sdslinux1 kernel:  ? find_parent_nodes+0x22df/0x25d0
Sep 15 23:32:17 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 15 23:32:17 sdslinux1 kernel:  ? mtree_insert_range+0xa5/0x110
Sep 15 23:32:17 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 15 23:32:17 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 15 23:32:17 sdslinux1 kernel: process_extent+0xa96/0x11a0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  changed_cb+0x6fa/0x930
Sep 15 23:32:17 sdslinux1 kernel:  ? tree_advance+0x362/0x390
Sep 15 23:32:17 sdslinux1 kernel:  ? memcmp_extent_buffer+0xd7/0x160
Sep 15 23:32:17 sdslinux1 kernel: send_subvol+0xf0a/0x1520
Sep 15 23:32:17 sdslinux1 kernel: btrfs_ioctl_send+0x106b/0x11d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx___clone_root_cmp_sort+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel: _btrfs_ioctl_send+0x1ac/0x240
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl+0x75b/0x850
Sep 15 23:32:17 sdslinux1 kernel: __se_sys_ioctl+0xca/0x150
Sep 15 23:32:17 sdslinux1 kernel: do_syscall_64+0x85/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? __count_memcg_events+0x69/0x100
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_mm_fault+0x1327/0x15c0
Sep 15 23:32:17 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 15 23:32:17 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 15 23:32:17 sdslinux1 kernel:  ? do_syscall_64+0x91/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 15 23:32:17 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0033:0x7fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77
18 48 8b 44 24 18 64 48 2b 04 25 28 00 00
Sep 15 23:32:17 sdslinux1 kernel: RSP: 002b:00007ffdf1cb09b0 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 15 23:32:17 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00007ffdf1cb0ad0 RSI:
0000000040489426 RDI: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel: RBP: 00000000000078fe R08:
00007fae144006c0 R09: 00007ffdf1cb0927
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffdf1cb1ce8
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000003 R14:
000055c499fab2e0 R15: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel:  </TASK>
Sep 15 23:32:17 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---
Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here ]------------
Quoted 1 line

The same btrfs send is working without any problem on kernel 6.10.10.

Try this:

https://lore.kernel.org/linux-btrfs/fbbc0efa2ad81b3dcc00c6dcb15af8189d343af3.1726692825.git.fdmanana@suse.com/

Thanks.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

Thanks in advance,

David Arendt

Hi,

Unfortunately the crash is still happening with the patch applied.

Yeah, I realized later that the problem is different from what I thought initially.

Quoted 8 lines

Try this:

https://lore.kernel.org/linux-btrfs/ee24884b0255f717071ca932bda1ab398707d9cf.1726782272.git.fdmanana@suse.com/

That should fix it and it's indeed a regression introduced in 6.11.

Thanks.

Quoted 128 lines

Hi,

Many thanks. I can confirm that the problem is fixed by applying this patch.

Bye,

David Arendt

Quoted 117 lines
Quoted 117 lines

Here is the btrfs send command executed by btrbk:

btrfs send -p '/u02/btrbk_snapshots/psdslinux1.20240919T2200' '/u02/btrbk_snapshots/psdslinux1.20240919T2209'

Sep 19 22:09:41 sdslinux1 kernel: ------------[ cut here ]------------
Sep 19 22:09:41 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 19 22:09:41 sdslinux1 kernel: WARNING: CPU: 2 PID: 3316 at
__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm snd_hda_codec_realtek iTCO_wdt snd_hda_scodec_component intel_pmc_bxt snd_hda_codec_generic mei_pxp spi_intel_platform btusb rapl at24 spi_intel mei_wdt mei_hdcp iTCO_vendor_support btbcm intel_cstate btintel i915 btrtl intel_uncore snd_hda_intel btmtk coretemp snd_intel_dspcfg iwlwifi snd_intel_sdw_acpi snd_hda_codec i2c_i801 cfg80211 pcspkr i2c_smbus bluetooth snd_hda_core snd_hwdep cec drm_buddy ttm rfkill snd_pcm snd_timer mei_me intel_vbtn snd sparse_keymap drm_display_helper lpc_ich mei soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 serio_raw r8152 igb mii i2c_algo_bit dca e1000e video wmi sunrpc

Sep 19 22:09:41 sdslinux1 kernel: CPU: 2 UID: 0 PID: 3316 Comm: btrfs
Not tainted 6.11.0-prnet #2
Sep 19 22:09:41 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Code: 48 8b 34 c5 10 a3 97 8f 40 f6 c7
01 48 c7 c0 49 57 86 8f 48 c7 c1 b8 5b 84 8f 48 0f 44 c8 48 c7 c7 35 97
8a 8f e8 db 85 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90
Sep 19 22:09:41 sdslinux1 kernel: RSP: 0018:ffffb9e780d6f580 EFLAGS:
00010246
Sep 19 22:09:41 sdslinux1 kernel: RAX: e21c8dd82a268800 RBX:
ffff8c3d02f7ad1a RCX: 0000000000000027
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffffb9e780d6f478 RDI: ffff8c400e721cc8
Sep 19 22:09:41 sdslinux1 kernel: RBP: ffff8c3d05803080 R08:
ffffffff8fc40e10 R09: 0000000000005ffd
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffff8fc70e10 R12: ffff8c3d13898000
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 19 22:09:41 sdslinux1 kernel: FS:  00007f8ea78128c0(0000)
GS:ffff8c400e700000(0000) knlGS:0000000000000000
Sep 19 22:09:41 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 19 22:09:41 sdslinux1 kernel: CR2: 00007fc355bb5ef0 CR3:
0000000102e5c001 CR4: 00000000001706f0
Sep 19 22:09:41 sdslinux1 kernel: Call Trace:
Sep 19 22:09:41 sdslinux1 kernel:  <TASK>
Sep 19 22:09:41 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 19 22:09:41 sdslinux1 kernel:  ? handle_bug+0x3f/0x70
Sep 19 22:09:41 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 19 22:09:41 sdslinux1 kernel: __get_cur_name_and_parent+0x3c1/0x3d0
Sep 19 22:09:41 sdslinux1 kernel:  get_cur_path+0x223/0x3c0
Sep 19 22:09:41 sdslinux1 kernel: send_extent_data+0x6c9/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? find_parent_nodes+0x231f/0x2610
Sep 19 22:09:41 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 19 22:09:41 sdslinux1 kernel:  ? mtree_insert_range+0xb5/0x120
Sep 19 22:09:41 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 19 22:09:41 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 19 22:09:41 sdslinux1 kernel:  process_extent+0xa8e/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_lookup_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_store_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  changed_cb+0x6c1/0x930
Sep 19 22:09:41 sdslinux1 kernel:  ? tree_advance+0x39b/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  ? memcmp_extent_buffer+0xe3/0x170
Sep 19 22:09:41 sdslinux1 kernel:  send_subvol+0x1217/0x1620
Sep 19 22:09:41 sdslinux1 kernel: _btrfs_ioctl_send+0x1ac/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? place_entity+0x147/0x190
Sep 19 22:09:41 sdslinux1 kernel:  ? enqueue_entity+0x269/0x610
Sep 19 22:09:41 sdslinux1 kernel:  btrfs_ioctl+0x759/0x850
Sep 19 22:09:41 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 19 22:09:41 sdslinux1 kernel:  do_syscall_64+0x85/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? kernel_clone+0x1f9/0x500
Sep 19 22:09:41 sdslinux1 kernel:  ? __x64_sys_clone3+0x22b/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 19 22:09:41 sdslinux1 kernel:  ? syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? do_syscall_64+0x91/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 19 22:09:41 sdslinux1 kernel: entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0033:0x7f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48 8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48
2b 04 25 28 00 00
Sep 19 22:09:41 sdslinux1 kernel: RSP: 002b:00007ffd2a143770 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 19 22:09:41 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00007ffd2a143890 RSI:
0000000040489426 RDI: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel: RBP: 00000000000079c2 R08:
00007f8ea78006c0 R09: 00007ffd2a1436e7
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffd2a144aa8
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000003 R14:
0000559b669962e0 R15: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel:  </TASK>
Sep 19 22:09:41 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---

Thanks in advance,

David Arendt

Hi,

I have seen that your patch has not been included in 6.11.1 and 6.11.2.

I don't know if it has been forgotten somewhere or if there is another reason for it ?

Thanks in advance,

David Arendt

#6 lore raw
Quoted 308 lines · David Arendt
Quoted 168 lines · David Arendt
Quoted 158 lines · Filipe Manana
Quoted 146 lines · David Arendt
Quoted 145 lines · Filipe Manana
Quoted 134 lines · David Arendt

Hi,

I am experiencing the following crash when doing an incremental btrfs send (started by btrbk) on kernel 6.11.0:

Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here
]------------
Sep 15 23:32:17 sdslinux1 kernel: strcpy: detected buffer
overflow: 20
byte write of buffer size 19
Sep 15 23:32:17 sdslinux1 kernel: WARNING: CPU: 3 PID: 3310 at
__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x8 6_pkg_temp_thermal intel_powerclamp kvm_intel iTCO_wdt intel_pmc_bxt spi_intel_platform kvm at24 mei_wdt spi_intel mei_pxp iTCO_vendor_support mei_hdcp btusb snd_hda_codec_realtek btbcm btinte l snd_hda_scodec_component i915 rapl iwlwifi snd_hda_codec_generic btrtl
intel_cstate btmtk cec snd_hda_intel intel_uncore cfg80211 snd_intel_dspcfg drm_buddy coretemp snd_intel_sdw_acpi bluet ooth ttm pcspkr snd_hda_codec rfkill snd_hda_core snd_hwdep intel_vbtn
snd_pcm mei_me drm_display_helper snd_timer sparse_keymap i2c_i801 mei
snd i2c_smbus lpc_ich soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3
igb r8152 serio_raw i2c_algo_bit mii dca e1000e video wmi sunrpc

Sep 15 23:32:17 sdslinux1 kernel: CPU: 3 UID: 0 PID: 3310 Comm: btrfs
Not tainted 6.11.0-prnet #1
Sep 15 23:32:17 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 15 23:32:17 sdslinux1 kernel: RIP:
0010:__fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: Code: 48 8b 34 c5 e0 a9 97 a8 40

f6 c7
01 48 c7 c0 51 5d 86 a8 48 c7 c1 c0 61 84 a8 48 0f 44 c8 48 c7 c7 60 9d
8a a8 e8 4b f6 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90
90 90 90 90 90 90

Sep 15 23:32:17 sdslinux1 kernel: RSP: 0018:ffff97ebc0d6f650 EFLAGS:
00010246
Sep 15 23:32:17 sdslinux1 kernel: RAX: 7749924ef60fa600 RBX:
ffff8bf5446a521a RCX: 0000000000000027
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffff97ebc0d6f548 RDI: ffff8bf84e7a1cc8
Sep 15 23:32:17 sdslinux1 kernel: RBP: ffff8bf548574080 R08:
ffffffffa8c40e10 R09: 0000000000005ffd
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffffa8c70e10 R12: ffff8bf551eef400
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 15 23:32:17 sdslinux1 kernel: FS: 00007fae144de8c0(0000)
GS:ffff8bf84e780000(0000) knlGS:0000000000000000
Sep 15 23:32:17 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 15 23:32:17 sdslinux1 kernel: CR2: 00007fae14691690 CR3:
00000001027a2003 CR4: 00000000001706f0
Sep 15 23:32:17 sdslinux1 kernel: Call Trace:
Sep 15 23:32:17 sdslinux1 kernel:  <TASK>
Sep 15 23:32:17 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_bug+0x42/0x70
Sep 15 23:32:17 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 15 23:32:17 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 15 23:32:17 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 15 23:32:17 sdslinux1 kernel: __fortify_panic+0x9/0x10
Sep 15 23:32:17 sdslinux1 kernel:
__get_cur_name_and_parent+0x3bc/0x3c0
Sep 15 23:32:17 sdslinux1 kernel: get_cur_path+0x207/0x3b0
Sep 15 23:32:17 sdslinux1 kernel: send_extent_data+0x709/0x10d0
Sep 15 23:32:17 sdslinux1 kernel:  ? find_parent_nodes+0x22df/0x25d0
Sep 15 23:32:17 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 15 23:32:17 sdslinux1 kernel:  ? mtree_insert_range+0xa5/0x110
Sep 15 23:32:17 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 15 23:32:17 sdslinux1 kernel:  ?
iterate_extent_inodes+0x52d/0x5a0
Sep 15 23:32:17 sdslinux1 kernel: process_extent+0xa96/0x11a0
Sep 15 23:32:17 sdslinux1 kernel:  ?
__pfx_lookup_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ?
__pfx_store_backref_cache+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  ?
__pfx_check_extent_item+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel:  changed_cb+0x6fa/0x930
Sep 15 23:32:17 sdslinux1 kernel:  ? tree_advance+0x362/0x390
Sep 15 23:32:17 sdslinux1 kernel:  ? memcmp_extent_buffer+0xd7/0x160
Sep 15 23:32:17 sdslinux1 kernel: send_subvol+0xf0a/0x1520
Sep 15 23:32:17 sdslinux1 kernel: btrfs_ioctl_send+0x106b/0x11d0
Sep 15 23:32:17 sdslinux1 kernel:  ?
__pfx___clone_root_cmp_sort+0x10/0x10
Sep 15 23:32:17 sdslinux1 kernel: _btrfs_ioctl_send+0x1ac/0x240
Sep 15 23:32:17 sdslinux1 kernel:  btrfs_ioctl+0x75b/0x850
Sep 15 23:32:17 sdslinux1 kernel: __se_sys_ioctl+0xca/0x150
Sep 15 23:32:17 sdslinux1 kernel: do_syscall_64+0x85/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? __count_memcg_events+0x69/0x100
Sep 15 23:32:17 sdslinux1 kernel:  ? handle_mm_fault+0x1327/0x15c0
Sep 15 23:32:17 sdslinux1 kernel:  ?
__se_sys_rt_sigprocmask+0xf1/0x180
Sep 15 23:32:17 sdslinux1 kernel:  ?
syscall_exit_to_user_mode+0x75/0xa0
Sep 15 23:32:17 sdslinux1 kernel:  ? do_syscall_64+0x91/0x160
Sep 15 23:32:17 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 15 23:32:17 sdslinux1 kernel:
entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 15 23:32:17 sdslinux1 kernel: RIP: 0033:0x7fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48

8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10
b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77
18 48 8b 44 24 18 64 48 2b 04 25 28 00 00

Sep 15 23:32:17 sdslinux1 kernel: RSP: 002b:00007ffdf1cb09b0 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 15 23:32:17 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007fae145eeb4f
Sep 15 23:32:17 sdslinux1 kernel: RDX: 00007ffdf1cb0ad0 RSI:
0000000040489426 RDI: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel: RBP: 00000000000078fe R08:
00007fae144006c0 R09: 00007ffdf1cb0927
Sep 15 23:32:17 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffdf1cb1ce8
Sep 15 23:32:17 sdslinux1 kernel: R13: 0000000000000003 R14:
000055c499fab2e0 R15: 0000000000000004
Sep 15 23:32:17 sdslinux1 kernel:  </TASK>
Sep 15 23:32:17 sdslinux1 kernel: ---[ end trace 0000000000000000
]---
Sep 15 23:32:17 sdslinux1 kernel: ------------[ cut here
Quoted 3 lines

]------------

The same btrfs send is working without any problem on kernel 6.10.10.

Try this:

https://lore.kernel.org/linux-btrfs/fbbc0efa2ad81b3dcc00c6dcb15af8189d343af3.1726692825.git.fdmanana@suse.com/

Thanks.

Quoted 8 lines
Quoted 5 lines
Quoted 5 lines

Thanks in advance,

David Arendt

Hi,

Unfortunately the crash is still happening with the patch applied.

Yeah, I realized later that the problem is different from what I thought initially.

Quoted 8 lines

Try this:

https://lore.kernel.org/linux-btrfs/ee24884b0255f717071ca932bda1ab398707d9cf.1726782272.git.fdmanana@suse.com/

That should fix it and it's indeed a regression introduced in 6.11.

Thanks.

Quoted 138 lines

Hi,

Many thanks. I can confirm that the problem is fixed by applying this patch.

Bye,

David Arendt

Quoted 126 lines
Quoted 126 lines

Here is the btrfs send command executed by btrbk:

btrfs send -p '/u02/btrbk_snapshots/psdslinux1.20240919T2200' '/u02/btrbk_snapshots/psdslinux1.20240919T2209'

Sep 19 22:09:41 sdslinux1 kernel: ------------[ cut here ]------------
Sep 19 22:09:41 sdslinux1 kernel: strcpy: detected buffer overflow: 20
byte write of buffer size 19
Sep 19 22:09:41 sdslinux1 kernel: WARNING: CPU: 2 PID: 3316 at
__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Modules linked in: nfsd auth_rpcgss

lockd grace nfs_acl bridge stp llc bonding tls vfat fat binfmt_misc snd_hda_codec_hdmi intel_rapl_msr intel_rapl_common x86_pkg_temp_thermal
intel_powerclamp kvm_intel kvm snd_hda_codec_realtek iTCO_wdt snd_hda_scodec_component intel_pmc_bxt snd_hda_codec_generic mei_pxp spi_intel_platform btusb rapl at24 spi_intel mei_wdt mei_hdcp iTCO_vendor_support btbcm intel_cstate btintel i915 btrtl intel_uncore snd_hda_intel btmtk coretemp snd_intel_dspcfg iwlwifi snd_intel_sdw_acpi
snd_hda_codec i2c_i801 cfg80211 pcspkr i2c_smbus bluetooth snd_hda_core snd_hwdep cec drm_buddy ttm rfkill snd_pcm snd_timer mei_me intel_vbtn snd sparse_keymap drm_display_helper lpc_ich mei soundcore cdc_mbim cdc_wdm cdc_ncm cdc_ether usbnet crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 sha256_ssse3 sha1_ssse3 serio_raw r8152 igb mii i2c_algo_bit dca e1000e video wmi sunrpc

Sep 19 22:09:41 sdslinux1 kernel: CPU: 2 UID: 0 PID: 3316 Comm: btrfs
Not tainted 6.11.0-prnet #2
Sep 19 22:09:41 sdslinux1 kernel: Hardware name: CompuLab Ltd.
sbc-ihsw/Intense-PC2 (IPC2), BIOS IPC2_3.330.7 X64 03/15/2018
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0010:__fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel: Code: 48 8b 34 c5 10 a3 97 8f 40

f6 c7
01 48 c7 c0 49 57 86 8f 48 c7 c1 b8 5b 84 8f 48 0f 44 c8 48 c7 c7 35 97 8a 8f e8 db 85 88 ff <0f> 0b c3 cc cc cc cc cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90

Sep 19 22:09:41 sdslinux1 kernel: RSP: 0018:ffffb9e780d6f580 EFLAGS:
00010246
Sep 19 22:09:41 sdslinux1 kernel: RAX: e21c8dd82a268800 RBX:
ffff8c3d02f7ad1a RCX: 0000000000000027
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00000000ffffdfff RSI:
ffffb9e780d6f478 RDI: ffff8c400e721cc8
Sep 19 22:09:41 sdslinux1 kernel: RBP: ffff8c3d05803080 R08:
ffffffff8fc40e10 R09: 0000000000005ffd
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000004 R11:
ffffffff8fc70e10 R12: ffff8c3d13898000
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000000 R14:
0000000000000013 R15: 00000000000003a8
Sep 19 22:09:41 sdslinux1 kernel: FS:  00007f8ea78128c0(0000)
GS:ffff8c400e700000(0000) knlGS:0000000000000000
Sep 19 22:09:41 sdslinux1 kernel: CS:  0010 DS: 0000 ES: 0000 CR0:
0000000080050033
Sep 19 22:09:41 sdslinux1 kernel: CR2: 00007fc355bb5ef0 CR3:
0000000102e5c001 CR4: 00000000001706f0
Sep 19 22:09:41 sdslinux1 kernel: Call Trace:
Sep 19 22:09:41 sdslinux1 kernel:  <TASK>
Sep 19 22:09:41 sdslinux1 kernel:  ? __warn+0x12a/0x1d0
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? report_bug+0x154/0x1c0
Sep 19 22:09:41 sdslinux1 kernel:  ? handle_bug+0x3f/0x70
Sep 19 22:09:41 sdslinux1 kernel:  ? exc_invalid_op+0x1a/0x50
Sep 19 22:09:41 sdslinux1 kernel:  ? asm_exc_invalid_op+0x1a/0x20
Sep 19 22:09:41 sdslinux1 kernel:  ? __fortify_report+0x45/0x50
Sep 19 22:09:41 sdslinux1 kernel:  __fortify_panic+0x9/0x10
Sep 19 22:09:41 sdslinux1 kernel: __get_cur_name_and_parent+0x3c1/0x3d0
Sep 19 22:09:41 sdslinux1 kernel:  get_cur_path+0x223/0x3c0
Sep 19 22:09:41 sdslinux1 kernel: send_extent_data+0x6c9/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ? find_parent_nodes+0x231f/0x2610
Sep 19 22:09:41 sdslinux1 kernel:  ? mas_nomem+0x13/0x90
Sep 19 22:09:41 sdslinux1 kernel:  ? mtree_insert_range+0xb5/0x120
Sep 19 22:09:41 sdslinux1 kernel:  ? btrfs_lru_cache_store+0x5f/0x1e0
Sep 19 22:09:41 sdslinux1 kernel:  ? iterate_extent_inodes+0x52d/0x5a0
Sep 19 22:09:41 sdslinux1 kernel:  process_extent+0xa8e/0x11b0
Sep 19 22:09:41 sdslinux1 kernel:  ?
__pfx_lookup_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ?
__pfx_store_backref_cache+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_iterate_backrefs+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  ? __pfx_check_extent_item+0x10/0x10
Sep 19 22:09:41 sdslinux1 kernel:  changed_cb+0x6c1/0x930
Sep 19 22:09:41 sdslinux1 kernel:  ? tree_advance+0x39b/0x3c0
Sep 19 22:09:41 sdslinux1 kernel:  ? memcmp_extent_buffer+0xe3/0x170
Sep 19 22:09:41 sdslinux1 kernel:  send_subvol+0x1217/0x1620
Sep 19 22:09:41 sdslinux1 kernel: _btrfs_ioctl_send+0x1ac/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ? place_entity+0x147/0x190
Sep 19 22:09:41 sdslinux1 kernel:  ? enqueue_entity+0x269/0x610
Sep 19 22:09:41 sdslinux1 kernel:  btrfs_ioctl+0x759/0x850
Sep 19 22:09:41 sdslinux1 kernel:  __se_sys_ioctl+0xca/0x150
Sep 19 22:09:41 sdslinux1 kernel:  do_syscall_64+0x85/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? kernel_clone+0x1f9/0x500
Sep 19 22:09:41 sdslinux1 kernel:  ? __x64_sys_clone3+0x22b/0x240
Sep 19 22:09:41 sdslinux1 kernel:  ?
syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? __se_sys_rt_sigprocmask+0xf1/0x180
Sep 19 22:09:41 sdslinux1 kernel:  ?
syscall_exit_to_user_mode+0x75/0xa0
Sep 19 22:09:41 sdslinux1 kernel:  ? do_syscall_64+0x91/0x170
Sep 19 22:09:41 sdslinux1 kernel:  ? do_user_addr_fault+0x21d/0x630
Sep 19 22:09:41 sdslinux1 kernel:
entry_SYSCALL_64_after_hwframe+0x76/0x7e
Sep 19 22:09:41 sdslinux1 kernel: RIP: 0033:0x7f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: Code: 00 48 89 44 24 18 31 c0 48

8d 44
24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 18 48 8b 44 24 18 64 48 2b 04 25 28 00 00

Sep 19 22:09:41 sdslinux1 kernel: RSP: 002b:00007ffd2a143770 EFLAGS:
00000246 ORIG_RAX: 0000000000000010
Sep 19 22:09:41 sdslinux1 kernel: RAX: ffffffffffffffda RBX:
0000000000000004 RCX: 00007f8ea7922b4f
Sep 19 22:09:41 sdslinux1 kernel: RDX: 00007ffd2a143890 RSI:
0000000040489426 RDI: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel: RBP: 00000000000079c2 R08:
00007f8ea78006c0 R09: 00007ffd2a1436e7
Sep 19 22:09:41 sdslinux1 kernel: R10: 0000000000000008 R11:
0000000000000246 R12: 00007ffd2a144aa8
Sep 19 22:09:41 sdslinux1 kernel: R13: 0000000000000003 R14:
0000559b669962e0 R15: 0000000000000004
Sep 19 22:09:41 sdslinux1 kernel:  </TASK>
Sep 19 22:09:41 sdslinux1 kernel: ---[ end trace 0000000000000000 ]---

Thanks in advance,

David Arendt

Quoted 6 lines

Hi,

I have seen that your patch has not been included in 6.11.1 and 6.11.2.

I don't know if it has been forgotten somewhere or if there is another reason for it ?

The patch was sent to Linus on friday:

https://lore.kernel.org/linux-btrfs/[email protected]/

In order for a patch to reach a stable release, first a maintainer has to pick it, send a pull request to Linus, Linus has to merge it, than after a rc is released with that fix (in this case 6.12-rc2), the stable maintainers will pick the patch for the next stable releases. So yes, it takes some time. Maybe by the end of this week there will be a 6.11.3 with the fix included.
Sorry can't do anything about that to speedup the process.

Quoted 5 lines

Thanks in advance,

David Arendt