I found an upstream bug report: 
https://bugzilla.kernel.org/show_bug.cgi?id=216522
The conditions are different though.

** Bug watch added: Linux Kernel Bug Tracker #216522
   https://bugzilla.kernel.org/show_bug.cgi?id=216522

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1993721

Title:
  btrfs divide by zero

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  After mounting a btrfs file system, exporting it via nfs, and then using that 
for storing steam games, I get this in the nfs server dmesg (and hanging file 
systems):
  [  195.828931] BTRFS info (device sdf1): use zstd compression, level 3
  [  195.828937] BTRFS info (device sdf1): using free space tree
  [  195.828938] BTRFS info (device sdf1): has skinny extents
  [  195.978057] BTRFS info (device sdf1): regular block device /dev/sdf1, 
11179 emulated zones of 268435456 bytes
  [  195.978117] BTRFS info (device sdf1): regular block device /dev/sdd1, 
14905 emulated zones of 268435456 bytes
  [  196.517424] BTRFS info (device sdf1): zoned mode enabled with zone size 
268435456
  [  911.066516] BTRFS info (device sdf1): use zstd compression, level 3
  [  911.066523] BTRFS info (device sdf1): using free space tree
  [  911.066524] BTRFS info (device sdf1): has skinny extents
  [  911.224659] BTRFS info (device sdf1): regular block device /dev/sdf1, 
11179 emulated zones of 268435456 bytes
  [  911.224718] BTRFS info (device sdf1): regular block device /dev/sdd1, 
14905 emulated zones of 268435456 bytes
  [  911.778374] BTRFS info (device sdf1): zoned mode enabled with zone size 
268435456
  [ 1048.162414] divide error: 0000 [#1] PREEMPT SMP NOPTI
  [ 1048.162433] CPU: 0 PID: 1817 Comm: nfsd Tainted: P           O      
5.19.0-21-generic #21-Ubuntu
  [ 1048.162443] Hardware name: ASUS ESC500 G3/P9D WS, BIOS 2402 06/27/2018
  [ 1048.162447] RIP: 0010:btrfs_delalloc_reserve_metadata+0xba/0x3d0 [btrfs]
  [ 1048.162663] Code: 44 20 ff 45 8b a5 f8 0c 00 00 48 f7 da 48 89 cf 49 8b 8d 
08 0d 00 00 48 21 d7 48 21 c2 48 89 55 c8 48 8d 44 0f ff 31 d2 89 c9 <48> f7 f1 
48 89 7d a8 48 89 45 b8 89 c0 41 83 fc 3f 0f 87 bd 31 02
  [ 1048.162671] RSP: 0018:ffffa355881a7a50 EFLAGS: 00010246
  [ 1048.162681] RAX: 0000000000001fff RBX: ffff973cd41054f0 RCX: 
0000000000000000
  [ 1048.162688] RDX: 0000000000000000 RSI: 0000000000002000 RDI: 
0000000000002000
  [ 1048.162693] RBP: ffffa355881a7ac0 R08: 0000000000000000 R09: 
0000000000000000
  [ 1048.162698] R10: 0000000000000000 R11: 0000000000000000 R12: 
000000000000000c
  [ 1048.162703] R13: ffff973a98bb3000 R14: 0000000000000000 R15: 
0000000000000005
  [ 1048.162709] FS:  0000000000000000(0000) GS:ffff973d2f400000(0000) 
knlGS:0000000000000000
  [ 1048.162716] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [ 1048.162722] CR2: 000000c00014d000 CR3: 00000002c4c10003 CR4: 
00000000001706f0
  [ 1048.162729] Call Trace:
  [ 1048.162734]  <TASK>
  [ 1048.162743]  ? btrfs_qgroup_reserve_data+0x21/0x80 [btrfs]
  [ 1048.162933]  btrfs_buffered_write+0x291/0x960 [btrfs]
  [ 1048.163085]  btrfs_do_write_iter+0x1df/0x230 [btrfs]
  [ 1048.163233]  btrfs_file_write_iter+0x10/0x20 [btrfs]
  [ 1048.163379]  do_iter_readv_writev+0x12a/0x1a0
  [ 1048.163394]  do_iter_write+0x9d/0x170
  [ 1048.163406]  vfs_iter_write+0x19/0x40
  [ 1048.163416]  nfsd_vfs_write+0x1ad/0x5b0 [nfsd]
  [ 1048.163506]  nfsd_write+0x8c/0x180 [nfsd]
  [ 1048.163579]  nfsd3_proc_write+0xe3/0x1a0 [nfsd]
  [ 1048.163660]  nfsd_dispatch+0x15f/0x280 [nfsd]
  [ 1048.163728]  svc_process_common+0x2a3/0x640 [sunrpc]
  [ 1048.163856]  ? svc_handle_xprt+0x166/0x370 [sunrpc]
  [ 1048.163990]  ? nfsd_svc+0x1b0/0x1b0 [nfsd]
  [ 1048.164059]  ? nfsd_shutdown_threads+0xb0/0xb0 [nfsd]
  [ 1048.164126]  svc_process+0xba/0x110 [sunrpc]
  [ 1048.164245]  nfsd+0xdc/0x1b0 [nfsd]
  [ 1048.164314]  kthread+0xe6/0x110
  [ 1048.164328]  ? kthread_complete_and_exit+0x20/0x20
  [ 1048.164340]  ret_from_fork+0x1f/0x30
  [ 1048.164357]  </TASK>
  [ 1048.164361] Modules linked in: rpcsec_gss_krb5 xt_nat veth snd_seq_dummy 
snd_hrtimer nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype br_netfilter 
xt_CHECKSUM xt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp 
nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 
nf_tables nfnetlink bridge stp llc overlay binfmt_misc zfs(PO) zunicode(PO) 
zzstd(O) zlua(O) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) 
snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi 
snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi snd_hda_codec intel_rapl_msr 
intel_rapl_common snd_hda_core snd_hwdep x86_pkg_temp_thermal snd_pcm 
intel_powerclamp coretemp snd_seq_midi snd_seq_midi_event mei_pxp mei_hdcp 
snd_rawmidi kvm_intel input_leds snd_seq kvm snd_seq_device snd_timer rapl 
cmdlinepart eeepc_wmi intel_cstate at24 wmi_bmof spi_nor snd mtd mei_me 
soundcore mei mac_hid ie31200_edac msr nfsd parport_pc auth_rpcgss ppdev 
nfs_acl lockd lp parport grace
  ramoops
  [ 1048.164559]  pstore_blk reed_solomon pstore_zone efi_pstore sunrpc 
ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 
async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq 
libcrc32c raid1 raid0 multipath linear i915 drm_buddy ttm drm_display_helper 
cec rc_core drm_kms_helper crct10dif_pclmul syscopyarea crc32_pclmul 
sysfillrect hid_generic spi_intel_platform sysimgblt ghash_clmulni_intel 
mfd_aaeon usbhid spi_intel fb_sys_fops firewire_ohci igb aesni_intel asus_wmi 
sparse_keymap hid ahci dca i2c_i801 crypto_simd xhci_pci drm firewire_core 
platform_profile mxm_wmi crc_itu_t xhci_pci_renesas i2c_smbus i2c_algo_bit 
libahci cryptd lpc_ich wmi video
  [ 1048.164712] ---[ end trace 0000000000000000 ]---
  [ 1048.164718] RIP: 0010:btrfs_delalloc_reserve_metadata+0xba/0x3d0 [btrfs]
  [ 1048.164908] Code: 44 20 ff 45 8b a5 f8 0c 00 00 48 f7 da 48 89 cf 49 8b 8d 
08 0d 00 00 48 21 d7 48 21 c2 48 89 55 c8 48 8d 44 0f ff 31 d2 89 c9 <48> f7 f1 
48 89 7d a8 48 89 45 b8 89 c0 41 83 fc 3f 0f 87 bd 31 02
  [ 1048.164915] RSP: 0018:ffffa355881a7a50 EFLAGS: 00010246
  [ 1048.164923] RAX: 0000000000001fff RBX: ffff973cd41054f0 RCX: 
0000000000000000
  [ 1048.164929] RDX: 0000000000000000 RSI: 0000000000002000 RDI: 
0000000000002000
  [ 1048.164934] RBP: ffffa355881a7ac0 R08: 0000000000000000 R09: 
0000000000000000
  [ 1048.164939] R10: 0000000000000000 R11: 0000000000000000 R12: 
000000000000000c
  [ 1048.164944] R13: ffff973a98bb3000 R14: 0000000000000000 R15: 
0000000000000005
  [ 1048.164950] FS:  0000000000000000(0000) GS:ffff973d2f400000(0000) 
knlGS:0000000000000000
  [ 1048.164956] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [ 1048.164962] CR2: 000000c00014d000 CR3: 00000002c4c10003 CR4: 
00000000001706f0
  root@srv:/steam/SteamLibrary/steamapps#

  ProblemType: Bug
  DistroRelease: Ubuntu 22.10
  Package: linux-image-5.19.0-21-generic 5.19.0-21.21
  ProcVersionSignature: Ubuntu 5.19.0-21.21-generic 5.19.7
  Uname: Linux 5.19.0-21-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.23.1-0ubuntu3
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  hch        2215 F.... wireplumber
   /dev/snd/controlC0:  hch        2215 F.... wireplumber
   /dev/snd/seq:        hch        2213 F.... pipewire
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Thu Oct 20 19:16:24 2022
  InstallationDate: Installed on 2017-11-30 (1785 days ago)
  InstallationMedia: Kubuntu 17.10 "Artful Aardvark" - Release amd64 
(20171017.1)
  MachineType: ASUS ESC500 G3
  ProcFB: 0 i915drmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.19.0-21-generic 
root=UUID=5db5122e-ce54-4e05-8c3a-45bd3abcb639 ro mitigations=off
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-5.19.0-21-generic N/A
   linux-backports-modules-5.19.0-21-generic  N/A
   linux-firmware                             20220923.gitf09bebf3-0ubuntu1
  RfKill:
   
  SourcePackage: linux
  UpgradeStatus: Upgraded to kinetic on 2022-10-14 (6 days ago)
  dmi.bios.date: 06/27/2018
  dmi.bios.release: 4.6
  dmi.bios.vendor: ASUSTeK COMPUTER INC. (Licensed from AMI)
  dmi.bios.version: 2402
  dmi.board.asset.tag: To be filled by O.E.M.
  dmi.board.name: P9D WS
  dmi.board.vendor: ASUSTeK COMPUTER INC.
  dmi.board.version: Rev 1.xx
  dmi.chassis.asset.tag: Asset-1234567890
  dmi.chassis.type: 3
  dmi.chassis.vendor: Chassis Manufacture
  dmi.chassis.version: Chassis Version
  dmi.modalias: 
dmi:bvnASUSTeKCOMPUTERINC.(LicensedfromAMI):bvr2402:bd06/27/2018:br4.6:svnASUS:pnESC500G3:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnP9DWS:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:skuAll:
  dmi.product.family: ASUS MB
  dmi.product.name: ESC500 G3
  dmi.product.sku: All
  dmi.product.version: System Version
  dmi.sys.vendor: ASUS

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1993721/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to