[Bug 1940154] Re: Xorg freeze (nouveau/ttm use-after-free with full-screen video)
> I don't see why it shouldn't run Linux for more than 11 years. Linux itself is not the problem. The problem is just with Nvidia GPUs more than a few years old. Nvidia stops supporting older GPUs in their current drivers after a few years. And the older drivers that do support the older GPUs only support older kernel versions. So you would need to be using Ubuntu 20.04 with kernel 5.4 on this machine and then you would have the ability to use the stable Nvidia-340 driver. Also Ubuntu 20.04 is supported for much longer than 21.04 (https://wiki.ubuntu.com/Releases). The free nouveau driver that's built into the Linux kernel is frankly unfinished and causes a lot of bugs. Even when it's not causing bugs, the performance of that driver does not compare to Nvidia's own proprietary drivers. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940154 Title: Xorg freeze (nouveau/ttm use-after-free with full-screen video) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1940154/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1940154] Re: Xorg freeze (nouveau/ttm use-after-free with full-screen video)
** Attachment added: "Second stacktrace, similar behaviour observed" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1940154/+attachment/5518865/+files/dmesg_vfree_bad_address.log -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940154 Title: Xorg freeze (nouveau/ttm use-after-free with full-screen video) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1940154/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1940154] Re: Xorg freeze (nouveau/ttm use-after-free with full-screen video)
Thanks Daniel. I've had on-and-off problems with both the nouveau and NVidia closed-source drivers pretty much since I got this thing and at some point vowed that my next machine would use an AMD card, since I've heard the open-source AMD driver is good. I'll take a look at those links and see if I can do some debugging, since there might be other people out there who are affected by this too, and it'd be a shame to have to stop upgrading their Linux systems as a result. Unless a machine breaks down completely, I don't see why it shouldn't run Linux for more than 11 years. I've noticed at least two flavours of error stacktrace that happen, so there may be two separate bugs. The first (as in the opening report) starts with "refcount_t: underflow; use-after-free" in lib/refcount.c:28 refcount_warn_saturate+0xae/0xf0, and the second starts with "Trying to vfree() bad address" in mm/vmalloc.c:2263 __vunmap+0x263/0x280. The rest of the stack trace is somewhat different, although they both pass through "ttm_bo_put". They both look to be memory management errors (use-after-free and possibly a double-free?). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940154 Title: Xorg freeze (nouveau/ttm use-after-free with full-screen video) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1940154/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1940154] Re: Xorg freeze (nouveau/ttm use-after-free with full-screen video)
The nouveau driver has never been well supported. It remains buggy for years even for old hardware so the outlook is not great there. If you would like to debug the nouveau driver then it lives in the Linux kernel at: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/nouveau The other information I've been referring to comes from these pages: https://www.nvidia.com/Download/index.aspx?lang=en-us https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-340 https://launchpad.net/ubuntu/+source/linux https://launchpad.net/ubuntu/+source/linux-hwe-5.11 https://nvidia.custhelp.com/app/answers/detail/a_id/3142/~/support-timeframes-for-unix-legacy-gpu-releases Nvidia has never supported their own chips for more than a few years and your Samsung machine appears to be 11 years old. You would have less trouble if the machine had AMD or Intel graphics. Otherwise if you use Nvidia you will either need newer hardware or to stay on an older OS like Ubuntu 20.04. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940154 Title: Xorg freeze (nouveau/ttm use-after-free with full-screen video) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1940154/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1940154] Re: Xorg freeze (nouveau/ttm use-after-free with full-screen video)
Hi Daniel, thanks for your quick reply. Do you mean the nouveau driver is abandoned, or just doesn't have much activity lately? Rolling back to an old kernel version (and Ubuntu distro) really feels like a failure. I'd be happy to try to debug the nouveau driver, although it sounds like I'm on my own and I don't really know anything about graphics drivers. Do you know of a good resource for getting started? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940154 Title: Xorg freeze (nouveau/ttm use-after-free with full-screen video) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1940154/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1940154] Re: Xorg freeze (nouveau/ttm use-after-free with full-screen video)
Thanks for the bug report. That's a kernel crash in the nouveau driver. But that driver is not well supported so we would usually recommend the official Nvidia driver instead. Unfortunately: 1. Your GeForce 310M GPU requires the Nvidia 340 driver only. Newer drivers don't support that GPU; and 2. The Nvidia 340 driver is no longer supported by Nvidia and no longer shipped in Ubuntu 21.04. I suggest using only Ubuntu 20.04 on this machine, which has a working version of the Nvidia 340 driver that you can install via the 'Additional Drivers' app. ** Package changed: xorg (Ubuntu) => linux (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1940154 Title: Xorg freeze (nouveau/ttm use-after-free with full-screen video) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1940154/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs