Skip to content
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

modprobe: ERROR: could not insert 'tty0tty': Device or resource busy #32

Open
waageesh opened this issue Apr 3, 2021 · 9 comments
Open

Comments

@waageesh
Copy link

waageesh commented Apr 3, 2021

I am also getting same issues, below is the traceback, could you please check and tell where is the issue ?

===================================================================
waageesh@waageesh-Aspire-A715-75G:~/Downloads/Softwares/tty0tty$ hostnamectl
Static hostname: waageesh-Aspire-A715-75G
Icon name: computer-laptop
Chassis: laptop
Machine ID: 7a93dcb479364111a24c53faca24ad60
Boot ID: f50dc5d4059f49ca9bcabbf3e677ea32
Operating System: Ubuntu 20.04.2 LTS
Kernel: Linux 5.8.0-48-generic
Architecture: x86-64

===================================================================

image

image

@stappersg
Copy link
Collaborator

Please report what happens upon

sudo insmod /path/to/tty0tty.ko

@waageesh
Copy link
Author

waageesh commented Apr 3, 2021

image

@stappersg
Copy link
Collaborator

stappersg commented Apr 3, 2021 via email

@waageesh
Copy link
Author

waageesh commented Apr 3, 2021

This is what i got on sudo insmod /path/to/tty0tty.ko

waageesh@waageesh-Aspire-A715-75G:~/Downloads/Softwares/tty0tty/module$ sudo insmode tty0tty.ko 
sudo: insmode: command not found

@stappersg
Copy link
Collaborator

stappersg commented Apr 3, 2021 via email

@waageesh
Copy link
Author

waageesh commented Apr 3, 2021

new error as "operation not permitted error"

waageesh@waageesh-Aspire-A715-75G:~/Downloads/Softwares/tty0tty/module$ sudo insmod tty0tty.ko
insmod: ERROR: could not insert module tty0tty.ko: Operation not permitted

@stappersg
Copy link
Collaborator

stappersg commented Apr 3, 2021 via email

@stappersg
Copy link
Collaborator

For what it is worth: it works for me

  • compiles cleanly
  • allowed to insmod

With sudo dmesg | tail -n 3 do I get

[ 1200.089467] tty0tty: loading out-of-tree module taints kernel.
[ 1200.089561] tty0tty: module verification failed: signature and/or required key missing - tainting kernel
[ 1200.094659] tty0tty null modem driver v1.2

And I do enjoy the dmks stuff from https://github.com/freemed/tty0tty/tree/master/debian (Upon new kernels I get new versions of tty0tty.) This is on Debian.

I think that original poster is being obstructed by some prevent loading of kernel modules that are not blessed by us measures. Such measures are often sold for "security" reasons.

So this issue now waits for updates like

  • works for me on distro ...
  • no problem here on distro ... version ...
  • also got Operation not permitted on distro ... version ...
  • also got Operation not permitted and could circumvent it with ...
  • at $URL is documented how to cope this, following the process described over there allowed me to do what I want to do. Simply using tty0tty.

@freemed freemed deleted a comment from MAKCOFF Jan 29, 2022
@stappersg
Copy link
Collaborator

Lockdown: modprobe: unsigned module loading is restricted; see man kernel_lockdown.7

That is another issue (that is unrelated to the code base of tty0tty).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants