Hello,
On 6/29/26 10:18, Amon Ott wrote:
Just pushed 6.18.37 and a commit with extra checks in that code.
With the version 6.18.37-1.5.6-2 (commit c52d0ba), I still have the Oops, but the instruction in rsbac_initd in the call trace is not the same :
[ 4.113907] 0000000042|rsbac_do_init(): reading FD attributes from root dev [ 4.266821] 0000000043|rsbac_init_rc(): Initializing RSBAC: RC subsystem [ 4.277732] 0000000044|rsbac_init_auth(): Initializing RSBAC: AUTH subsystem [ 4.292802] 0000000045|rsbac_do_init(): auth_enable_login is set: setting auth_may_setuid for /bin/login [ 4.292847] BUG: kernel NULL pointer dereference, address: 0000000000000000 [ 4.292851] #PF: supervisor instruction fetch in kernel mode [ 4.292855] #PF: error_code(0x0010) - not-present page [ 4.292859] PGD 0 P4D 0 [ 4.292866] Oops: Oops: 0010 [#1] SMP PTI [ 4.292875] CPU: 1 UID: 0 PID: 272 Comm: rsbac_initd Not tainted 6.18.37-rsbac #1 PREEMPT_{RT,(full)} [ 4.292884] Hardware name: HP HP Z240 Tower Workstation/802F, BIOS N51 Ver. 01.92 07/04/2024 [ 4.292888] RIP: 0010:0x0 [ 4.292898] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [ 4.292901] RSP: 0018:ffffd39f4165fdd0 EFLAGS: 00010206 [ 4.292908] RAX: 0000000000000000 RBX: ffff8b6d851fbe10 RCX: 0000000000000061 [ 4.292912] RDX: 0000000000000000 RSI: ffff8b6d851fbe10 RDI: ffff8b6d899fae58 [ 4.292916] RBP: ffff8b6d851fb000 R08: 000000006e69676f R09: 0000000000000000 [ 4.292920] R10: ffff8b6d851fbe10 R11: ffff8b6d899fae58 R12: ffffd39f4165fe70 [ 4.292924] R13: 0000000000000000 R14: ffffd39f4165fde0 R15: ffff8b6d899fae58 [ 4.292928] FS: 0000000000000000(0000) GS:ffff8b71ee8b4000(0000) knlGS:0000000000000000 [ 4.292933] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4.292937] CR2: ffffffffffffffd6 CR3: 00000002b8436002 CR4: 00000000003706f0 [ 4.292942] Call Trace: [ 4.292945] <TASK> [ 4.292948] __lookup_slow+0xa3/0x150 [ 4.292964] rsbac_initd+0x19ff/0x1c20 [ 4.292979] ? __pfx_rsbac_initd+0x10/0x10 [ 4.292988] kthread+0xfc/0x240 [ 4.292998] ? __pfx_kthread+0x10/0x10 [ 4.293008] ret_from_fork+0x238/0x270 [ 4.293018] ? __pfx_kthread+0x10/0x10 [ 4.293026] ret_from_fork_asm+0x1a/0x30 [ 4.293041] </TASK> [ 4.293044] Modules linked in: ext4 crc16 mbcache jbd2 sd_mod hid_generic usbhid hid xhci_pci ahci xhci_hcd iTCO_wdt libahci intel_pmc_bxt iTCO_vendor_support watchdog libata psmouse e1000e usbcore scsi_mod serio_raw i2c_i801 i2c_smbus usb_common scsi_common video wmi [ 4.293091] CR2: 0000000000000000 [ 4.293101] ---[ end trace 0000000000000000 ]--- [ 4.293105] RIP: 0010:0x0 [ 4.293111] Code: Unable to access opcode bytes at 0xffffffffffffffd6. [ 4.293114] RSP: 0018:ffffd39f4165fdd0 EFLAGS: 00010206 [ 4.293119] RAX: 0000000000000000 RBX: ffff8b6d851fbe10 RCX: 0000000000000061 [ 4.293122] RDX: 0000000000000000 RSI: ffff8b6d851fbe10 RDI: ffff8b6d899fae58 [ 4.293125] RBP: ffff8b6d851fb000 R08: 000000006e69676f R09: 0000000000000000 [ 4.293128] R10: ffff8b6d851fbe10 R11: ffff8b6d899fae58 R12: ffffd39f4165fe70 [ 4.293132] R13: 0000000000000000 R14: ffffd39f4165fde0 R15: ffff8b6d899fae58 [ 4.293135] FS: 0000000000000000(0000) GS:ffff8b71ee8b4000(0000) knlGS:0000000000000000 [ 4.293139] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4.293143] CR2: ffffffffffffffd6 CR3: 00000002b8436002 CR4: 00000000003706f0 [ 4.293147] note: rsbac_initd[273] exited with irqs disabled
Also, with this kernel, when the boot goes on (without auth_enable_login), I repeatedly get this warning, which was not there before :
WARNING: CPU: 0 PID: 632 at fs/namespace.c:1396 mntput_no_expire+0x1a2/0x290 Modules linked in: binfmt_misc nls_ascii intel_rapl_msr nls_cp437 vfat fat jc42 intel_rapl_common x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_intel kvm_intel snd_soc_avs kvm snd_soc_hda_codec snd_hda_ext_core hp_bioscfg snd_hda_codec irqbypass snd_hda_core firmware_attributes_class ghash_clmulni_intel snd_intel_dspcfg aesni_intel snd_intel_sdw_acpi rapl snd_hwdep hp_wmi intel_cstate snd_soc_core sparse_keymap intel_uncore platform_profile snd_compress rfkill wmi_bmof ee1004 snd_pcm_dmaengine snd_pcsp snd_pcm snd_timer snd soundcore intel_pmc_core pmt_telemetry pmt_discovery pmt_class tpm_infineon intel_pmc_ssram_telemetry joydev intel_vsec acpi_pad evdev button ie31200_edac intel_pch_thermal sg drm efi_pstore configfs nfnetlink efivarfs autofs4 ext4 crc16 mbcache jbd2 sd_mod hid_generic usbhid hid ahci libahci xhci_pci xhci_hcd libata iTCO_wdt intel_pmc_bxt psmouse iTCO_vendor_support watchdog usbcore e1000e scsi_mod serio_raw i2c_i801 i2c_smbus usb_common scsi_common video wmi CPU: 0 UID: 0 PID: 632 Comm: (touch) Tainted: G W 6.18.37-rsbac #1 PREEMPT_{RT,(full)} Tainted: [W]=WARN Hardware name: HP HP Z240 Tower Workstation/802F, BIOS N51 Ver. 01.92 07/04/2024 RIP: 0010:mntput_no_expire+0x1a2/0x290 Code: 48 8b 35 59 97 08 01 b9 01 00 00 00 bf 00 20 00 00 48 c7 c2 00 bd 1f 90 e8 0b 8c c0 ff e9 af fe ff ff 48 8d 6b 40 eb b6 79 02 <0f> 0b e8 87 61 cb ff 48 c7 c7 90 e7 00 90 83 05 39 c2 80 01 01 e8 RSP: 0018:ffffcb2e00c4fe38 EFLAGS: 00010286 RAX: 00000000ffffffff RBX: ffff8a1620ed3b00 RCX: 0000000000000004 RDX: 0000000000000004 RSI: 0000000000000004 RDI: ffffffff8f88b820 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000001 R10: 0000000000000000 R11: ffff8a1a1b21cdc0 R12: ffff8a16037d3600 R13: ffff8a1620ed3b00 R14: ffff8a1620c8d000 R15: ffff8a1620ed3b20 FS: 00007fdd894445c0(0000) GS:ffff8a1a8a534000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3de5da85d0 CR3: 000000010510c005 CR4: 00000000003726f0 Call Trace: <TASK> path_umount+0x98/0xe0 __x64_sys_umount+0x7d/0x90 do_syscall_64+0x86/0x7e0 ? __x64_sys_readlink+0x1e/0x30 ? do_syscall_64+0xbe/0x7e0 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7fdd89f8d257 Code: 0d 00 f7 d8 64 89 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 89 3b 0d 00 f7 d8 64 89 02 b8 RSP: 002b:00007fff5b490118 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: ffffffffffffffda RBX: 00007fdd8a425277 RCX: 00007fdd89f8d257 RDX: 00007fdd89f7bc47 RSI: 0000000000000002 RDI: 00007fdd8a425277 RBP: 0000000000000003 R08: 0000000000000000 R09: 00007fff5b490260 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdd8a6c0209 R13: 0000000000000000 R14: 0000000000000000 R15: 00007fff5b490450 </TASK>
Terence Gomez