Bug 2189089

Summary: NULL pointer dereference via btrfs_encoded_read_endio
Product: [Fedora] Fedora Reporter: Laurențiu Nicola <lnicola>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: acaringi, adscvr, airlied, alciregi, bskeggs, hdegoede, hpa, jarodwilson, jglisse, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, ptalbert, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-24 07:37:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Laurențiu Nicola 2023-04-24 07:29:40 UTC
Kernel 6.2.11-300.fc38.x86_64

[apr24 10:16] BUG: kernel NULL pointer dereference, address: 0000000000000000
[  +0,000005] #PF: supervisor read access in kernel mode
[  +0,000002] #PF: error_code(0x0000) - not-present page
[  +0,000002] PGD 0 P4D 0 
[  +0,000002] Oops: 0000 [#1] PREEMPT SMP NOPTI
[  +0,000002] CPU: 6 PID: 373527 Comm: kworker/u64:12 Not tainted 6.2.11-300.fc38.x86_64 #1
[  +0,000003] Hardware name: ASUS System Product Name/ROG STRIX B550-F GAMING (WI-FI), BIOS 2806 10/27/2022
[  +0,000001] Workqueue: btrfs-endio btrfs_end_bio_work
[  +0,000006] RIP: 0010:__wake_up_common+0x4c/0x180
[  +0,000004] Code: 24 0c 89 4c 24 08 4d 85 c9 74 0a 41 f6 01 04 0f 85 a3 00 00 00 48 8b 43 08 4c 8d 40 e8 48 83 c3 08 49 8d 40 18 48 39 c3 74 5b <49> 8b 40 18 31 ed 4c 8d 70 e8 45 8b 28 41 f6 c5 04 75 5f 49 8b 40
[  +0,000002] RSP: 0018:ffffb74e56e73d78 EFLAGS: 00010086
[  +0,000002] RAX: 0000000000000000 RBX: ffffb74e5a48f9e8 RCX: 0000000000000000
[  +0,000001] RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffb74e5a48f9e0
[  +0,000001] RBP: 0000000000000246 R08: ffffffffffffffe8 R09: ffffb74e56e73dd0
[  +0,000001] R10: 0000000000000000 R11: ffff9944e50ccff0 R12: ffffb74e56e73dd0
[  +0,000001] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[  +0,000001] FS:  0000000000000000(0000) GS:ffff99462e980000(0000) knlGS:0000000000000000
[  +0,000002] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  +0,000001] CR2: 0000000000000000 CR3: 00000009efac6000 CR4: 0000000000750ee0
[  +0,000001] PKRU: 55555554
[  +0,000001] Call Trace:
[  +0,000002]  <TASK>
[  +0,000004]  __wake_up_common_lock+0x82/0xd0
[  +0,000003]  btrfs_encoded_read_endio+0x1ea/0x200
[  +0,000004]  process_one_work+0x1c4/0x3d0
[  +0,000004]  worker_thread+0x4d/0x380
[  +0,000003]  ? __pfx_worker_thread+0x10/0x10
[  +0,000003]  kthread+0xe6/0x110
[  +0,000002]  ? __pfx_kthread+0x10/0x10
[  +0,000002]  ret_from_fork+0x29/0x50
[  +0,000005]  </TASK>
[  +0,000001] Modules linked in: isofs uas usb_storage uinput tls tun overlay ntfs3 nls_utf8 cifs cifs_arc4 cifs_md4 dns_resolver fscache netfs iwlmvm iwlwifi binfmt_misc hid_logitech_hidpp uhid joydev hid_apple hidp rfcomm snd_seq_dummy snd_hrtimer des_generic libdes bnep md4 vfat fat mac80211 snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec_hdmi libarc4 snd_hda_intel snd_usb_audio intel_rapl_msr snd_intel_dspcfg intel_rapl_common snd_intel_sdw_acpi snd_hda_codec edac_mce_amd snd_usbmidi_lib btusb snd_rawmidi snd_hda_core mc kvm_amd btrtl snd_hwdep snd_seq btbcm btintel snd_seq_device kvm eeepc_wmi asus_wmi btmtk snd_pcm irqbypass ledtrig_audio sparse_keymap cfg80211 bluetooth snd_timer rapl platform_profile wmi_bmof pcspkr snd igc k10temp i2c_piix4 rfkill soundcore gpio_amdpt gpio_generic acpi_cpufreq loop zram amdgpu drm_ttm_helper ttm video iommu_v2 drm_buddy crct10dif_pclmul gpu_sched crc32_pclmul nvme crc32c_intel polyval_clmulni polyval_generic drm_display_helper nvme_core
[  +0,000045]  ucsi_ccg typec_ucsi ccp ghash_clmulni_intel typec sha512_ssse3 cec sp5100_tco nvme_common wmi ip6_tables ip_tables pkcs8_key_parser fuse [last unloaded: iwlwifi]
[  +0,000010] CR2: 0000000000000000
[  +0,000001] ---[ end trace 0000000000000000 ]---
[  +0,000002] RIP: 0010:__wake_up_common+0x4c/0x180
[  +0,000003] Code: 24 0c 89 4c 24 08 4d 85 c9 74 0a 41 f6 01 04 0f 85 a3 00 00 00 48 8b 43 08 4c 8d 40 e8 48 83 c3 08 49 8d 40 18 48 39 c3 74 5b <49> 8b 40 18 31 ed 4c 8d 70 e8 45 8b 28 41 f6 c5 04 75 5f 49 8b 40
[  +0,000001] RSP: 0018:ffffb74e56e73d78 EFLAGS: 00010086
[  +0,000002] RAX: 0000000000000000 RBX: ffffb74e5a48f9e8 RCX: 0000000000000000
[  +0,000001] RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffb74e5a48f9e0
[  +0,000002] RBP: 0000000000000246 R08: ffffffffffffffe8 R09: ffffb74e56e73dd0
[  +0,000001] R10: 0000000000000000 R11: ffff9944e50ccff0 R12: ffffb74e56e73dd0
[  +0,000001] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[  +0,000001] FS:  0000000000000000(0000) GS:ffff99462e980000(0000) knlGS:0000000000000000
[  +0,000001] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  +0,000001] CR2: 0000000000000000 CR3: 00000009efac6000 CR4: 0000000000750ee0
[  +0,000002] PKRU: 55555554
[  +0,000001] note: kworker/u64:12[373527] exited with irqs disabled
[  +0,000001] note: kworker/u64:12[373527] exited with preempt_count 1


Reproducible: Didn't try




Happened while or just after sending two large snapshots from one drive to another.

https://paste.centos.org/view/e86d67da

Comment 1 Laurențiu Nicola 2023-04-24 07:37:10 UTC

*** This bug has been marked as a duplicate of bug 2189091 ***