-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux Kernel 6.2 issue #333
Comments
More than likely, I'll test and get back to you. Thanks. |
I have the same behavior, where can I set this "CONFIG_LEGACY_TIOCSTI"? |
In your kernel .config file. You need to compile from sources. |
Should I close the issue since it is a repeat of #212? |
I had hit the same issue, also on arch, with kernel |
- (all) Enable AppArmor by default. - (all) Complete CONFIG_LSM by upstream template. - (all) Run dev-sort-config.sh. - (all) Enable CONFIG_LEGACY_TIOCSTI to fix issue with McFly. [1] FIXME: CONFIG_LEGACY_TIOCSTI has a known security flaw and upstream recommends disabling by default. [2] But this breaks userspace, which should enrage Linus Torvalds, and possibly others. Make most of us happy. Ref [1]: cantino/mcfly#333 Ref [2]: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=tiocsti
- (all) Enable AppArmor by default. - (all) Complete CONFIG_LSM by upstream template. - (all) Run dev-sort-config.sh. - (all) Enable CONFIG_LEGACY_TIOCSTI to fix issue with McFly. [1] - Bump zfs PKGBREAK to <= 2.2.0. FIXME: CONFIG_LEGACY_TIOCSTI has a known security flaw and upstream recommends disabling by default. [2] But this breaks userspace, which should enrage Linus Torvalds, and possibly others. Make most of us happy. Ref [1]: cantino/mcfly#333 Ref [2]: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=tiocsti
- (all) Enable AppArmor by default. - (all) Complete CONFIG_LSM by upstream template. - (all) Run dev-sort-config.sh. - (all) Enable CONFIG_LEGACY_TIOCSTI to fix issue with McFly. [1] - Bump zfs PKGBREAK to <= 2.2.0. FIXME: CONFIG_LEGACY_TIOCSTI has a known security flaw and upstream recommends disabling by default. [2] But this breaks userspace, which should enrage Linus Torvalds, and possibly others. Make most of us happy. Ref [1]: cantino/mcfly#333 Ref [2]: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=tiocsti
- (all) Enable AppArmor by default. - (all) Complete CONFIG_LSM by upstream template. - (all) Run dev-sort-config.sh. - (all) Enable CONFIG_LEGACY_TIOCSTI to fix issue with McFly. [1] - Bump zfs PKGBREAK to <= 2.2.0. FIXME: CONFIG_LEGACY_TIOCSTI has a known security flaw and upstream recommends disabling by default. [2] But this breaks userspace, which should enrage Linus Torvalds, and possibly others. Make most of us happy. Ref [1]: cantino/mcfly#333 Ref [2]: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=tiocsti
Just updated to |
FYI: |
There is a bug in the kernel that prevents me to set |
If this works on zsh as long as zsh is the login, then I'll make the switch. Thanks. I'll close this dup issue. |
It might be worth leaving this open for other people to find. |
I don't even see how this issue will get resolved. Will Meanwhile, I made the switch to |
https://github.com/dvorka/hstr/ is also affected by this, see dvorka/hstr#478. I can confirm using kauruus kernel module does help (#333 (comment)). But so far I did not see McFly having this issue addressed, so in the mean time we need workarounds like the kernel module or alternative tools/shells. |
I suggest this workaround modifying the bind script:
McFly should support a special option to pass and store the search result. my 2EurCents. ciao luigi |
The bug that the parameter CONFIG_LEGACY_TIOCSTI cannot be set has been fixed in recent 6.2 kernel releases dvorka/hstr#478 (comment) |
I ran the "# sysctl -w dev.tty.legacy_tiocsti=1 " and it works, but rookie question, where do we put the command so we don't have to run it manually every start up? Not /etc/environment, and the local .bash_profile doesn't have permisson either. What is a good way to automate the process without getting permission failures? |
Any sysctl parameters generally go in a custom file in |
Works like a charm. Thanks 🙏 |
@comio wrote:
Here's a patch that implements something like this, but only for replacing the edit buffer. What I couldn't get to work was running the command properly. You could insert it into history with There are various hacks in the answers to this Unix & Linux Stackexchange question that might be adapted. Personally I'm fine with pressing Enter another time after choosing the command. |
@dedguy21 @darthShadow Can you please explain the steps to put custom file in |
You should have a directory: In that directory is where you save your file. Example: vim 10_legacy_tiocsti.conf Then write legacy_tiocsti=1 in the file Save to /etc/sysctl.d/10_legacy_tiocsti.conf |
This should read |
@somepaulo for somereason, /etc/sysctl.d seems doesn't work on new kernel 6.3.x, are they dropping it? Manual set using
Still work, but not the boot .conf file. any idea why ? Or it's specific to fedora only? |
Work on arch, with kernel 6.8.1. |
I'm open to PRs that fix this if anyone sees a path forward. |
It'd be great if bash users could test #416 |
building and using #416 works for me on a linux 6.8 kernel that was broken w/ bash on the stable release. |
Should hopefully be fixed by #416 and https://github.com/cantino/mcfly/releases/tag/v0.9.0. |
I believe this is fixed! Please re-open if not. |
OS: Arch Linux
Kernel: 6.2
Shell: Bash, Zsh, & Nushell
Terminal: Kitty & Wezterm
Mcfly ver: 0.7.1
I was updated to kernel 6.2 the other day, I noticed when using mcfly, though I could ctrl-r and make a selection, that selection wasn't carried through back to the terminal, so it wouldn't execute. Also, selection would not be carried over to be modified either. I checked the issue across three shells, and two different terminal to be sure.
Rolling back to kernel 6.1 fixed the issue for me. This is more of an FYI in case more people update to kernel 6.2
I haven't traced root issues beyond rolling back.
The text was updated successfully, but these errors were encountered: