Filesystem vanishes in VIM4 1.7.5 kernel

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu Server on VIM4 NP

Which version of system do you use? Please provide the version of the system here:

vim4-ubuntu-24.04-server-linux-5.15-fenix-1.7.5-250925

Please describe your issue below:

If I run a large java program that accesses the camera and 5g modem (as a normal user) the filesystem is erased after a short time. Then the system can’t reboot.

This does not happen with the 1.7.4 kernel version (even fully updated updates).
I tried newer and older java versions.

Have the filesystem drivers changed somehow? Does running a single large program confuse the kernel somehow?

Post a console log of your issue below:

I can’t get the console log but here is a screenshot of the boot failing.

Hello @steely-glint

Could you tell us how to reproduce this issue? Could you provide the test program and steps to us?

I will see if I can narrow it down to a simple test case. There are quite a lot of requirements in the current config (modem, camera, jam, java etc).

1 Like

It looks like the problem is that 1.7.5 exposed adbd on 5555 to the world.
So probably it got drive-by hacked. 1.7.4 does not have adbd running by default.

@numbqq I guess you can reproduce it by connecting a vim4 to the internet with tcp 5555 not firewalled or NATed (eg on a 5g modem with ipv6 support). No camera or java needed I think.

Yes, you are right.

So if you disable this port, do you still the the issue?

@numbqq I’ve had one running behind NAT for 24 hours now and it has not lost any files.

I can’t find a way to disable the port - it doesn’t seem to be started by systemd (I couldn’t find it) and I couldn’t apt-get remove it either.

What is the best way to stop adbd from running (I don’t want it on production devices)?

You can disable it:

sudo systemctl disable usb-gadget-khadas.service

And you can edit /usr/local/bin/usb-gadget to remove export ADB_TCP_PORT=5555 to disable the ADB_TCP_PORT.

I’m uncomfortable with this defaulting to on - especially for IPV6 - perhaps it should be off?

Yes, just disable it .

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.