Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909390 - sys-kernel/gentoo-sources-6.4.0 reiserfs kernel page fault git
Summary: sys-kernel/gentoo-sources-6.4.0 reiserfs kernel page fault git
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: https://marc.info/?l=reiserfs-devel&m...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-30 04:21 UTC by Михаил
Modified: 2023-07-23 22:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Михаил 2023-06-30 04:21:13 UTC
portage can't sync using git after update kernel.

Reproducible: Always

Steps to Reproduce:
1. sys-kernel/gentoo-sources-6.4.0
2. use reiserfs for /var/db/repos/gentoo
3. Use git for sync
4. run emerge --sync
Actual Results:  
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
/usr/bin/git fetch origin
remote: Enumerating objects: 660, done.
remote: Counting objects: 100% (566/566), done.
remote: Compressing objects: 100% (191/191), done.
remote: Total 441 (delta 292), reused 386 (delta 238), pack-reused 0
Receiving objects: 100% (441/441), 112.10 KiB | 597.00 KiB/s, done.
Resolving deltas: 100% (292/292), completed with 97 local objects.
From github.com:gentoo-mirror/gentoo
   536486bbd3ef..3ba60ba5b5bc  stable     -> origin/stable
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...                                                                                                                                                                                                       [ ok ]
 * Trusted signature found on top commit
/usr/bin/git merge refs/remotes/origin/stable
Updating 536486bbd3ef..3ba60ba5b5bc
!!! git merge error in /var/db/repos/gentoo

Action: sync for repo: gentoo, returned code = 2304

Expected Results:  
git sync portage

[Fri Jun 30 06:47:18 2023] BUG: unable to handle page fault for address: ffffffffe7a8ded2
[Fri Jun 30 06:47:18 2023] #PF: supervisor read access in kernel mode
[Fri Jun 30 06:47:18 2023] #PF: error_code(0x0000) - not-present page
[Fri Jun 30 06:47:18 2023] PGD 308a2c067 P4D 308a2c067 PUD 308a2e067 PMD 0 
[Fri Jun 30 06:47:18 2023] Oops: 0000 [#2] PREEMPT SMP PTI
[Fri Jun 30 06:47:18 2023] CPU: 0 PID: 1254 Comm: git Tainted: P     UD    O       6.4.0-gentoo #1
[Fri Jun 30 06:47:18 2023] Hardware name: LENOVO 20H9CTO1WW/20H9CTO1WW, BIOS N1VET63W (1.53 ) 12/20/2022
[Fri Jun 30 06:47:18 2023] RIP: 0010:path_openat+0x18c/0x10b0
[Fri Jun 30 06:47:18 2023] Code: 07 00 00 49 8b 07 48 8b 68 18 f6 c1 40 0f 84 3f 07 00 00 f6 c1 80 74 0e 48 8b 04 24 f6 40 46 10 0f 84 73 0e 00 00 49 8b 57 08 <8b> 02 25 00 00 70 00 3d 00 00 20 00 0f 84 25 08 00 00 3d 00 00 30
[Fri Jun 30 06:47:18 2023] RSP: 0018:ffffa27403407ce0 EFLAGS: 00010202
[Fri Jun 30 06:47:18 2023] RAX: ffff9e7a7e4c0100 RBX: 0000000000000040 RCX: 00000000000080c2
[Fri Jun 30 06:47:18 2023] RDX: ffffffffe7a8ded2 RSI: 0000000000000000 RDI: 0000000000000000
[Fri Jun 30 06:47:18 2023] RBP: ffffffffb69558f0 R08: 0000000000000000 R09: 0000000000000000
[Fri Jun 30 06:47:18 2023] R10: 0000000000000040 R11: 0000000000000000 R12: ffffa27403407ea4
[Fri Jun 30 06:47:18 2023] R13: 0000000000000000 R14: ffffffffe7a8ded2 R15: ffffa27403407d80
[Fri Jun 30 06:47:18 2023] FS:  00007f8c9ceac740(0000) GS:ffff9e7dd0600000(0000) knlGS:0000000000000000
[Fri Jun 30 06:47:18 2023] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Fri Jun 30 06:47:18 2023] CR2: ffffffffe7a8ded2 CR3: 00000001536f2006 CR4: 00000000003706f0
[Fri Jun 30 06:47:18 2023] Call Trace:
[Fri Jun 30 06:47:18 2023]  <TASK>
[Fri Jun 30 06:47:18 2023]  ? __die+0x1f/0x70
[Fri Jun 30 06:47:18 2023]  ? page_fault_oops+0x15d/0x460
[Fri Jun 30 06:47:18 2023]  ? fixup_exception+0x22/0x330
[Fri Jun 30 06:47:18 2023]  ? exc_page_fault+0x378/0x6e0
[Fri Jun 30 06:47:18 2023]  ? asm_exc_page_fault+0x22/0x30
[Fri Jun 30 06:47:18 2023]  ? path_openat+0x18c/0x10b0
[Fri Jun 30 06:47:18 2023]  do_filp_open+0xb4/0x160
[Fri Jun 30 06:47:18 2023]  ? prepend_path+0x24f/0x310
[Fri Jun 30 06:47:18 2023]  ? __check_object_size+0x18a/0x2e0
[Fri Jun 30 06:47:18 2023]  do_sys_openat2+0xa3/0x160
[Fri Jun 30 06:47:18 2023]  __x64_sys_openat+0x6a/0xa0
[Fri Jun 30 06:47:18 2023]  do_syscall_64+0x58/0x90
[Fri Jun 30 06:47:18 2023]  ? fpregs_assert_state_consistent+0x28/0x60
[Fri Jun 30 06:47:18 2023]  ? exit_to_user_mode_prepare+0x44/0x170
[Fri Jun 30 06:47:18 2023]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[Fri Jun 30 06:47:18 2023] RIP: 0033:0x7f8c9cfa29c1
[Fri Jun 30 06:47:18 2023] Code: 75 57 89 f0 25 00 00 41 00 3d 00 00 41 00 74 49 80 3d 2a ec 0d 00 00 74 6d 89 da 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 93 00 00 00 48 8b 54 24 28 64 48 2b 14 25
[Fri Jun 30 06:47:18 2023] RSP: 002b:00007ffe6e1b5470 EFLAGS: 00000202 ORIG_RAX: 0000000000000101
[Fri Jun 30 06:47:18 2023] RAX: ffffffffffffffda RBX: 00000000000800c2 RCX: 00007f8c9cfa29c1
[Fri Jun 30 06:47:18 2023] RDX: 00000000000800c2 RSI: 0000556fe06b2820 RDI: 00000000ffffff9c
[Fri Jun 30 06:47:18 2023] RBP: 0000556fe06b2820 R08: 0000000000000007 R09: 00007f8c9d079c80
[Fri Jun 30 06:47:18 2023] R10: 00000000000001b6 R11: 0000000000000202 R12: 0000556fe06b27d0
[Fri Jun 30 06:47:18 2023] R13: 0000556fe06b1258 R14: 00000000000001b6 R15: 0000000000000002
[Fri Jun 30 06:47:18 2023]  </TASK>
[Fri Jun 30 06:47:18 2023] Modules linked in: reiserfs snd_seq_dummy snd_hrtimer snd_seq snd_seq_device dm_crypt encrypted_keys algif_skcipher snd_hda_codec_hdmi sch_fq_codel snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic btusb btintel uvcvideo uvc videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc usbhid uas usb_storage nvidia_drm(PO) nvidia_modeset(PO) intel_tcc_cooling iwlmvm snd_hda_intel x86_pkg_temp_thermal kvm_intel snd_intel_dspcfg intel_xhci_usb_role_switch mac80211 snd_hda_codec xhci_pci kvm libarc4 snd_hwdep irqbypass crc32_pclmul crc32c_intel polyval_clmulni tpm_crb snd_hda_core polyval_generic mei_pxp mei_hdcp xhci_hcd ghash_clmulni_intel sha512_ssse3 iwlwifi thinkpad_acpi aesni_intel snd_pcm ledtrig_audio platform_profile snd_timer tpm_tis ucsi_acpi crypto_simd tpm_tis_core nvidia(PO) typec_ucsi usbcore mei_me i2c_hid_acpi typec snd think_lmi cryptd cfg80211 e1000e usb_common mei intel_pch_thermal roles soundcore i2c_hid tpm wmi_bmof intel_wmi_thunderbolt firmware_attributes_class
[Fri Jun 30 06:47:18 2023]  i915 i2c_algo_bit cec drm_buddy drm_display_helper ttm zram zsmalloc drm_kms_helper syscopyarea sysfillrect sysimgblt video wmi msr fuse dm_mod configfs efivarfs dmi_sysfs
[Fri Jun 30 06:47:18 2023] CR2: ffffffffe7a8ded2
[Fri Jun 30 06:47:18 2023] ---[ end trace 0000000000000000 ]---
[Fri Jun 30 06:47:18 2023] RIP: 0010:path_openat+0x18c/0x10b0
[Fri Jun 30 06:47:18 2023] Code: 07 00 00 49 8b 07 48 8b 68 18 f6 c1 40 0f 84 3f 07 00 00 f6 c1 80 74 0e 48 8b 04 24 f6 40 46 10 0f 84 73 0e 00 00 49 8b 57 08 <8b> 02 25 00 00 70 00 3d 00 00 20 00 0f 84 25 08 00 00 3d 00 00 30
[Fri Jun 30 06:47:18 2023] RSP: 0018:ffffa27402e7fcd0 EFLAGS: 00010202
[Fri Jun 30 06:47:18 2023] RAX: ffff9e7a8062dd00 RBX: 0000000000000040 RCX: 00000000000080c1
[Fri Jun 30 06:47:18 2023] RDX: ffffffffe7a7cc3c RSI: 0000000000000000 RDI: 0000000000000000
[Fri Jun 30 06:47:18 2023] RBP: ffffffffb69558f0 R08: 0000000000000000 R09: 0000000000000000
[Fri Jun 30 06:47:18 2023] R10: 0000000000000040 R11: 0000000000000000 R12: ffffa27402e7fe8c
[Fri Jun 30 06:47:18 2023] R13: 0000000000000000 R14: ffffffffe7a7cc3c R15: ffffa27402e7fd70
[Fri Jun 30 06:47:18 2023] FS:  00007f8c9ceac740(0000) GS:ffff9e7dd0600000(0000) knlGS:0000000000000000
[Fri Jun 30 06:47:18 2023] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Fri Jun 30 06:47:18 2023] CR2: ffffffffe7a8ded2 CR3: 00000001536f2006 CR4: 00000000003706f0
[Fri Jun 30 06:47:18 2023] note: git[1254] exited with irqs disabled
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-30 04:22:27 UTC
Thanks. Could you bisect using e.g. https://wiki.gentoo.org/wiki/Kernel_git-bisect (https://wiki.gentoo.org/wiki/Bisecting_with_live_ebuilds may be useful too) and report it upstream?
Comment 2 Mike Pagano gentoo-dev 2023-06-30 11:30:50 UTC
Also, can you enable the config setting:

CONFIG_DEBUG_INFO
Comment 3 Михаил 2023-07-02 05:47:23 UTC
(In reply to Mike Pagano from comment #2)
> Also, can you enable the config setting:
> 
> CONFIG_DEBUG_INFO

Bisecting in progress.

With CONFIG_DEBUG_INFO option more verbose message

[Sun Jul  2 08:42:33 2023] ------------[ cut here ]------------
[Sun Jul  2 08:42:33 2023] kernel BUG at fs/reiserfs/journal.c:3038!
[Sun Jul  2 08:42:33 2023] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[Sun Jul  2 08:42:33 2023] CPU: 0 PID: 1126 Comm: git Tainted: G     U             6.4.0-rc1+ #4
[Sun Jul  2 08:42:33 2023] Hardware name: LENOVO 20H9CTO1WW/20H9CTO1WW, BIOS N1VET63W (1.53 ) 12/20/2022
[Sun Jul  2 08:42:33 2023] RIP: 0010:do_journal_begin_r+0x36e/0x390 [reiserfs]
[Sun Jul  2 08:42:33 2023] Code: 00 e8 76 bc 02 c4 8b 93 00 02 02 00 e9 55 fe ff ff 83 78 08 01 0f 8e 0e fe ff ff 0f 0b 48 89 ef e8 57 a1 ff ff e9 0d fd ff ff <0f> 0b e8 8b 5d 51 c3 48 89 83 80 00 00 00 e9 b4 fe ff ff e8 ea 46
[Sun Jul  2 08:42:33 2023] RSP: 0018:ffff97db02e4baf8 EFLAGS: 00010287
[Sun Jul  2 08:42:33 2023] RAX: 0000000000000400 RBX: ffff97db01c35000 RCX: 0000000000000000
[Sun Jul  2 08:42:33 2023] RDX: 000000006da2eba0 RSI: ffffffffc1237cb3 RDI: 0000000000000000
[Sun Jul  2 08:42:33 2023] RBP: ffff96da34231000 R08: 0000000000000000 R09: 0000000000000000
[Sun Jul  2 08:42:33 2023] R10: 0000000000000000 R11: 0000000000000000 R12: 000000006da2eba0
[Sun Jul  2 08:42:33 2023] R13: 0000000000000000 R14: ffff96da9fcc9c00 R15: 000000006da2eba0
[Sun Jul  2 08:42:33 2023] FS:  00007fbab2b9f740(0000) GS:ffff96dd90600000(0000) knlGS:0000000000000000
[Sun Jul  2 08:42:33 2023] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Sun Jul  2 08:42:33 2023] CR2: 00007f156d7bc000 CR3: 0000000135c12006 CR4: 00000000003706f0
[Sun Jul  2 08:42:33 2023] Call Trace:
[Sun Jul  2 08:42:33 2023]  <TASK>
[Sun Jul  2 08:42:33 2023]  ? kmem_cache_alloc_lru+0x2ad/0x560
[Sun Jul  2 08:42:33 2023]  ? reiserfs_alloc_inode+0x1e/0x80 [reiserfs]
[Sun Jul  2 08:42:33 2023]  journal_begin+0x79/0x140 [reiserfs]
[Sun Jul  2 08:42:33 2023]  reiserfs_create+0x134/0x280 [reiserfs]
[Sun Jul  2 08:42:33 2023]  ? generic_permission+0x35/0x240
[Sun Jul  2 08:42:33 2023]  ? _raw_spin_lock+0x13/0x40
[Sun Jul  2 08:42:33 2023]  path_openat+0xe18/0x10b0
[Sun Jul  2 08:42:33 2023]  do_filp_open+0xb4/0x160
[Sun Jul  2 08:42:33 2023]  ? fsnotify_destroy_marks+0x26/0x180
[Sun Jul  2 08:42:33 2023]  ? __check_object_size+0x18a/0x2e0
[Sun Jul  2 08:42:33 2023]  do_sys_openat2+0xa3/0x160
[Sun Jul  2 08:42:33 2023]  __x64_sys_openat+0x6a/0xa0
[Sun Jul  2 08:42:33 2023]  do_syscall_64+0x58/0x90
[Sun Jul  2 08:42:33 2023]  ? fpregs_assert_state_consistent+0x28/0x60
[Sun Jul  2 08:42:33 2023]  ? exit_to_user_mode_prepare+0x44/0x170
[Sun Jul  2 08:42:33 2023]  ? syscall_exit_to_user_mode+0x1d/0x50
[Sun Jul  2 08:42:33 2023]  ? do_syscall_64+0x67/0x90
[Sun Jul  2 08:42:33 2023]  ? syscall_exit_to_user_mode+0x1d/0x50
[Sun Jul  2 08:42:33 2023]  ? __x64_sys_close+0xd/0x50
[Sun Jul  2 08:42:33 2023]  ? do_syscall_64+0x67/0x90
[Sun Jul  2 08:42:33 2023]  ? fpregs_restore_userregs+0x9/0xf0
[Sun Jul  2 08:42:33 2023]  ? exit_to_user_mode_prepare+0x13d/0x170
[Sun Jul  2 08:42:33 2023]  entry_SYSCALL_64_after_hwframe+0x72/0xdc
[Sun Jul  2 08:42:33 2023] RIP: 0033:0x7fbab2c95a40
[Sun Jul  2 08:42:33 2023] Code: 44 8b 54 24 40 75 93 44 89 54 24 0c e8 89 d4 f8 ff 41 89 c0 44 8b 54 24 0c 89 da 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 38 44 89 c7 89 44 24 0c e8 dc d4 f8 ff 8b 44
[Sun Jul  2 08:42:33 2023] RSP: 002b:00007ffcbcc9dc20 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
[Sun Jul  2 08:42:33 2023] RAX: ffffffffffffffda RBX: 00000000000000c1 RCX: 00007fbab2c95a40
[Sun Jul  2 08:42:33 2023] RDX: 00000000000000c1 RSI: 0000560d9a3b6e60 RDI: 00000000ffffff9c
[Sun Jul  2 08:42:33 2023] RBP: 0000560d9a3b6e60 R08: 0000000000000000 R09: 0000000000000000
[Sun Jul  2 08:42:33 2023] R10: 00000000000001b6 R11: 0000000000000293 R12: 0000000000000000
[Sun Jul  2 08:42:33 2023] R13: 0000000000008000 R14: 00007fba68370c08 R15: 0000000000000000
[Sun Jul  2 08:42:33 2023]  </TASK>
[Sun Jul  2 08:42:33 2023] Modules linked in: reiserfs snd_seq_dummy snd_hrtimer snd_seq snd_seq_device dm_crypt encrypted_keys algif_skcipher snd_hda_codec_hdmi sch_fq_codel snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic btusb btintel uvcvideo uvc videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc uas usb_storage iwlmvm intel_tcc_cooling x86_pkg_temp_thermal kvm_intel mac80211 kvm libarc4 snd_hda_intel snd_intel_dspcfg intel_xhci_usb_role_switch iwlwifi snd_hda_codec irqbypass crc32_pclmul crc32c_intel polyval_clmulni polyval_generic snd_hwdep ghash_clmulni_intel sha512_ssse3 xhci_pci mei_pxp snd_hda_core aesni_intel mei_hdcp xhci_hcd crypto_simd usbcore e1000e cfg80211 snd_pcm mei_me thinkpad_acpi ucsi_acpi cryptd tpm_crb mei typec_ucsi snd_timer ledtrig_audio usb_common intel_pch_thermal platform_profile typec tpm_tis tpm_tis_core roles snd i915 soundcore tpm i2c_hid_acpi i2c_hid wmi_bmof think_lmi firmware_attributes_class intel_wmi_thunderbolt i2c_algo_bit cec drm_buddy drm_display_helper
[Sun Jul  2 08:42:33 2023]  ttm zram zsmalloc drm_kms_helper syscopyarea sysfillrect sysimgblt video wmi msr fuse dm_mod configfs efivarfs dmi_sysfs
[Sun Jul  2 08:42:33 2023] ---[ end trace 0000000000000000 ]---
[Sun Jul  2 08:42:33 2023] RIP: 0010:do_journal_begin_r+0x36e/0x390 [reiserfs]
[Sun Jul  2 08:42:33 2023] Code: 00 e8 76 bc 02 c4 8b 93 00 02 02 00 e9 55 fe ff ff 83 78 08 01 0f 8e 0e fe ff ff 0f 0b 48 89 ef e8 57 a1 ff ff e9 0d fd ff ff <0f> 0b e8 8b 5d 51 c3 48 89 83 80 00 00 00 e9 b4 fe ff ff e8 ea 46
[Sun Jul  2 08:42:33 2023] RSP: 0018:ffff97db02e4baf8 EFLAGS: 00010287
[Sun Jul  2 08:42:33 2023] RAX: 0000000000000400 RBX: ffff97db01c35000 RCX: 0000000000000000
[Sun Jul  2 08:42:33 2023] RDX: 000000006da2eba0 RSI: ffffffffc1237cb3 RDI: 0000000000000000
[Sun Jul  2 08:42:33 2023] RBP: ffff96da34231000 R08: 0000000000000000 R09: 0000000000000000
[Sun Jul  2 08:42:33 2023] R10: 0000000000000000 R11: 0000000000000000 R12: 000000006da2eba0
[Sun Jul  2 08:42:33 2023] R13: 0000000000000000 R14: ffff96da9fcc9c00 R15: 000000006da2eba0
[Sun Jul  2 08:42:33 2023] FS:  00007fbab2b9f740(0000) GS:ffff96dd90600000(0000) knlGS:0000000000000000
[Sun Jul  2 08:42:33 2023] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Sun Jul  2 08:42:33 2023] CR2: 00007f156d7bc000 CR3: 0000000135c12006 CR4: 00000000003706f0
Comment 4 Mike Pagano gentoo-dev 2023-07-02 15:02:56 UTC
Thanks, that extra info was helpful. 

I see old references to this but no concrete fixes.

Can you try 6.4.1, and then open up a bug upstream at:

https://bugzilla.kernel.org

I'm not sure if you'll see a fiz, though.


https://lore.kernel.org/lkml/00000000000022a65705ec7f923c@google.com/
Comment 5 Михаил 2023-07-04 06:13:24 UTC
Bisecting done.
Started from good v6.3 and bad v6.4-rc1


status: waiting for both good and bad commits
status: waiting for bad commit, 1 good commit known
Bisecting: 5951 revisions left to test after this (roughly 13 steps)
[6e98b09da931a00bf4e0477d0fa52748bf28fcce] Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
BAD
Bisecting: 3926 revisions left to test after this (roughly 12 steps)
[088e0c188513b58a0056a488cf5b7df094a8a48a] Merge tag 'platform-drivers-x86-v6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
BAD
Bisecting: 2178 revisions left to test after this (roughly 11 steps)
[736b378b29d89c8c3567fa4b2e948be5568aebb8] Merge tag 'slab-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab
BAD
Bisecting: 932 revisions left to test after this (roughly 10 steps)
[b8a4346d25024e00714fb6ceb0709075827f335d] Merge tag 'mvebu-dt64-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into soc/dt
GOOD
Bisecting: 464 revisions left to test after this (roughly 9 steps)
[e94ee641f9cef2502adfe5e0c264b271420c7ab5] Merge tag 'edac_updates_for_v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras
BAD
Bisecting: 207 revisions left to test after this (roughly 8 steps)
[5dfb75e842e0ef59fc7bf307e5c52eab215bdb4c] Merge tag 'rcu.6.4.april5.2023.3' of git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux
BAD
Bisecting: 134 revisions left to test after this (roughly 7 steps)
[406037351e08dea03735178bf11046da85f00125] Merge tag 'lkmm.2023.04.07a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
GOOD
Bisecting: 62 revisions left to test after this (roughly 6 steps)
[8ae99857748bece993962dd8d04e096f9e76731f] Merge branches 'rcu/staging-core', 'rcu/staging-docs' and 'rcu/staging-kfree', remote-tracking branches 'paul/srcu-cf.2023.04.04a', 'fbq/rcu/lockdep.2023.03.27a' and 'fbq/rcu/rcutorture.2023.03.20a' into rcu/staging
GOOD
Bisecting: 31 revisions left to test after this (roughly 5 steps)
[05dc8470b3bfcad6b84bcf5953172ce26cfb2bd9] tools/memory-model: Document LKMM test procedure
GOOD
Bisecting: 15 revisions left to test after this (roughly 4 steps)
[8c934d4822c77818d53f5f4c948c3ace6fda1505] tools/nolibc: add helpers for wait() signal exits
GOOD
Bisecting: 7 revisions left to test after this (roughly 3 steps)
[4a4075ada6a5f51087d6c046b024046bf3864beb] Merge tag 'locktorture.2023.04.04a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
BAD
Bisecting: 3 revisions left to test after this (roughly 2 steps)
[45bcf0bd8cbe163c5aec18570b6befd2193f1a57] locktorture: With nested locks, occasionally skip main lock
GOOD
Bisecting: 1 revision left to test after this (roughly 1 step)
[60eb45074234b90333b6241b4fd8d196aa2dfd98] Merge tag 'lkmm-scripting.2023.04.07a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
GOOD
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[5d65cf6ae6aea1a8d533d4499201a13d0068a0dc] locktorture: Add raw_spinlock* torture tests for PREEMPT_RT kernels
GOOD
4a4075ada6a5f51087d6c046b024046bf3864beb is the first bad commit
commit 4a4075ada6a5f51087d6c046b024046bf3864beb
Merge: 60eb45074234 5d65cf6ae6ae
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Mon Apr 24 12:05:08 2023 -0700

    Merge tag 'locktorture.2023.04.04a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
    
    Pull locktorture updates from Paul McKenney:
     "This adds tests for nested locking and also adds support for testing
      raw spinlocks in PREEMPT_RT kernels"
    
    * tag 'locktorture.2023.04.04a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
      locktorture: Add raw_spinlock* torture tests for PREEMPT_RT kernels
      locktorture: With nested locks, occasionally skip main lock
      locktorture: Add nested locking to rtmutex torture tests
      locktorture: Add nested locking to mutex torture tests
      locktorture: Add nested_[un]lock() hooks and nlocks parameter

 kernel/locking/locktorture.c                       | 188 +++++++++++++++++++--
 .../selftests/rcutorture/configs/lock/CFLIST       |   2 +
 .../selftests/rcutorture/configs/lock/LOCK08       |   6 +
 .../selftests/rcutorture/configs/lock/LOCK08.boot  |   1 +
 .../selftests/rcutorture/configs/lock/LOCK09       |   6 +
 .../selftests/rcutorture/configs/lock/LOCK09.boot  |   1 +
 6 files changed, 188 insertions(+), 16 deletions(-)
 create mode 100644 tools/testing/selftests/rcutorture/configs/lock/LOCK08
 create mode 100644 tools/testing/selftests/rcutorture/configs/lock/LOCK08.boot
 create mode 100644 tools/testing/selftests/rcutorture/configs/lock/LOCK09
 create mode 100644 tools/testing/selftests/rcutorture/configs/lock/LOCK09.boot
Comment 6 Михаил 2023-07-04 15:59:58 UTC
I've gone into wrong way because missed failure.


This bisect looks better.

git bisect start
# status: waiting for both good and bad commits
# good: [a5624566431de76b17862383d9ae254d9606cba9] Merge branch 'x86-rep-insns': x86 user copy clarifications
git bisect good a5624566431de76b17862383d9ae254d9606cba9
# status: waiting for bad commit, 1 good commit known
# bad: [4a4075ada6a5f51087d6c046b024046bf3864beb] Merge tag 'locktorture.2023.04.04a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
git bisect bad 4a4075ada6a5f51087d6c046b024046bf3864beb
# bad: [1a0beef98b582b69a2ba44e468f7dfecbcfab48e] Merge tag 'tpmdd-v6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
git bisect bad 1a0beef98b582b69a2ba44e468f7dfecbcfab48e
# bad: [08e30833f86ba25945e416b9f372791aacfef153] Merge tag 'lsm-pr-20230420' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm
git bisect bad 08e30833f86ba25945e416b9f372791aacfef153
# good: [e261301c851aee401cfc63179ca4d3facd2f098b] lsm: move the remaining LSM hook comments to security/security.c
git bisect good e261301c851aee401cfc63179ca4d3facd2f098b
# bad: [d82dcd9e21b77d338dc4875f3d4111f0db314a7c] reiserfs: Add security prefix to xattr name in reiserfs_security_write()
git bisect bad d82dcd9e21b77d338dc4875f3d4111f0db314a7c
# good: [42994ee3cd7298b27698daa6848ed7168e72d056] security: Introduce LSM_ORDER_LAST and set it for the integrity LSM
git bisect good 42994ee3cd7298b27698daa6848ed7168e72d056
# bad: [52ca4b6435a493e47aaa98e7345e19e1e8710b13] reiserfs: Switch to security_inode_init_security()
git bisect bad 52ca4b6435a493e47aaa98e7345e19e1e8710b13
# good: [b9b8701b43146f5ebd7fe13d89103cfc545cda34] security: Remove integrity from the LSM list in Kconfig
git bisect good b9b8701b43146f5ebd7fe13d89103cfc545cda34
# first bad commit: [52ca4b6435a493e47aaa98e7345e19e1e8710b13] reiserfs: Switch to security_inode_init_security()


commit 52ca4b6435a493e47aaa98e7345e19e1e8710b13
Author: Roberto Sassu <roberto.sassu@huawei.com>
Date:   Tue Mar 14 09:17:15 2023 +0100

    reiserfs: Switch to security_inode_init_security()
    
    In preparation for removing security_old_inode_init_security(), switch to
    security_inode_init_security(). Commit 572302af1258 ("reiserfs: Add missing
    calls to reiserfs_security_free()") fixed possible memory leaks and another
    issue related to adding an xattr at inode creation time.
    
    Define the initxattrs callback reiserfs_initxattrs(), to populate the
    name/value/len triple in the reiserfs_security_handle() with the first
    xattr provided by LSMs. Make a copy of the xattr value, as
    security_inode_init_security() frees it.
    
    After the call to security_inode_init_security(), remove the check for
    returning -EOPNOTSUPP, as security_inode_init_security() changes it to
    zero.
    
    Multiple xattrs are currently not supported, as the
    reiserfs_security_handle structure is exported to user space. As a
    consequence, even if EVM is invoked, it will not provide an xattr (if it
    is not the first to set it, its xattr will be discarded; if it is the
    first, it does not have xattrs to calculate the HMAC on).
    
    Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
    Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
    Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
    Signed-off-by: Paul Moore <paul@paul-moore.com>

 fs/reiserfs/xattr_security.c | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)
Comment 7 Mike Pagano gentoo-dev 2023-07-04 17:38:37 UTC
(In reply to Михаил from comment #6)
> I've gone into wrong way because missed failure.
> 
> 
> This bisect looks better.
> 
> git bisect start
> # status: waiting for both good and bad commits
> # good: [a5624566431de76b17862383d9ae254d9606cba9] Merge branch
> 'x86-rep-insns': x86 user copy clarifications
> git bisect good a5624566431de76b17862383d9ae254d9606cba9
> # status: waiting for bad commit, 1 good commit known
> # bad: [4a4075ada6a5f51087d6c046b024046bf3864beb] Merge tag
> 'locktorture.2023.04.04a' of
> git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
> git bisect bad 4a4075ada6a5f51087d6c046b024046bf3864beb
> # bad: [1a0beef98b582b69a2ba44e468f7dfecbcfab48e] Merge tag 'tpmdd-v6.4-rc1'
> of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
> git bisect bad 1a0beef98b582b69a2ba44e468f7dfecbcfab48e
> # bad: [08e30833f86ba25945e416b9f372791aacfef153] Merge tag
> 'lsm-pr-20230420' of
> git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm
> git bisect bad 08e30833f86ba25945e416b9f372791aacfef153
> # good: [e261301c851aee401cfc63179ca4d3facd2f098b] lsm: move the remaining
> LSM hook comments to security/security.c
> git bisect good e261301c851aee401cfc63179ca4d3facd2f098b
> # bad: [d82dcd9e21b77d338dc4875f3d4111f0db314a7c] reiserfs: Add security
> prefix to xattr name in reiserfs_security_write()
> git bisect bad d82dcd9e21b77d338dc4875f3d4111f0db314a7c
> # good: [42994ee3cd7298b27698daa6848ed7168e72d056] security: Introduce
> LSM_ORDER_LAST and set it for the integrity LSM
> git bisect good 42994ee3cd7298b27698daa6848ed7168e72d056
> # bad: [52ca4b6435a493e47aaa98e7345e19e1e8710b13] reiserfs: Switch to
> security_inode_init_security()
> git bisect bad 52ca4b6435a493e47aaa98e7345e19e1e8710b13
> # good: [b9b8701b43146f5ebd7fe13d89103cfc545cda34] security: Remove
> integrity from the LSM list in Kconfig
> git bisect good b9b8701b43146f5ebd7fe13d89103cfc545cda34
> # first bad commit: [52ca4b6435a493e47aaa98e7345e19e1e8710b13] reiserfs:
> Switch to security_inode_init_security()
> 
> 
> commit 52ca4b6435a493e47aaa98e7345e19e1e8710b13
> Author: Roberto Sassu <roberto.sassu@huawei.com>
> Date:   Tue Mar 14 09:17:15 2023 +0100
> 
>     reiserfs: Switch to security_inode_init_security()
>     
>     In preparation for removing security_old_inode_init_security(), switch to
>     security_inode_init_security(). Commit 572302af1258 ("reiserfs: Add
> missing
>     calls to reiserfs_security_free()") fixed possible memory leaks and
> another
>     issue related to adding an xattr at inode creation time.
>     
>     Define the initxattrs callback reiserfs_initxattrs(), to populate the
>     name/value/len triple in the reiserfs_security_handle() with the first
>     xattr provided by LSMs. Make a copy of the xattr value, as
>     security_inode_init_security() frees it.
>     
>     After the call to security_inode_init_security(), remove the check for
>     returning -EOPNOTSUPP, as security_inode_init_security() changes it to
>     zero.
>     
>     Multiple xattrs are currently not supported, as the
>     reiserfs_security_handle structure is exported to user space. As a
>     consequence, even if EVM is invoked, it will not provide an xattr (if it
>     is not the first to set it, its xattr will be discarded; if it is the
>     first, it does not have xattrs to calculate the HMAC on).
>     
>     Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
>     Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
>     Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
>     Signed-off-by: Paul Moore <paul@paul-moore.com>
> 
>  fs/reiserfs/xattr_security.c | 23 ++++++++++++++++++-----
>  1 file changed, 18 insertions(+), 5 deletions(-)


Ok, good.  Can you report this upstream at the reiserfs mailing list?

https://reiser4.wiki.kernel.org/index.php/Mailinglists
Comment 8 Михаил 2023-07-06 06:37:28 UTC
(In reply to Mike Pagano from comment #7)
>  Can you report this upstream at the reiserfs mailing list?

Reported.
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-06 06:38:28 UTC
Thank you! https://marc.info/?l=reiserfs-devel&m=168861700102083&w=2
Comment 10 Mike Pagano gentoo-dev 2023-07-23 22:02:53 UTC
Thanks, we'll follow the upstream thread and backport any relevant patches we can.