Skip to contentSkip to conversation

Moving debugfs file systems into sysfs

Ksummit-discuss Steven Rostedt 11 participants 27 messages Oct 1, 2018 – Oct 4, 2018

lore
Share & tools
lore
#0 lore raw

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

-- Steve

#1 lore raw
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Any specific examples you wish to share of code that needs this?

thanks,

greg k-h

#2 lore raw
Quoted 19 lines · Greg KH
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Any specific examples you wish to share of code that needs this?

Oh, and the "process"? Just do it. Nothing should be depending on debugfs for "system functionality"[1], so it should be just fine to move files around and delete them.

thanks,

greg k-h

[1] There's a whole line of SoCs out there there that ended up putting the battery measurement logic in a debugfs file, despite us having a well known and well documented batter/power api already in sysfs. By turning debugfs off, all of a sudden your phone has no way to report the state of the battery. Fun stuff...

#3 lore raw
In reply to Greg KH
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 6 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

As most distros now disable debugfs (great!), perhaps it can be used as a place to hold interfaces that are under develop, and not worry about breaking user space, as all distros will have it off, thus no tool should depend on it.

-- Steve

#4 lore raw
Quoted 31 lines · Steven Rostedt
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Having something that containers might want for their own use (say, for example, some trace functionality) move into sysfs but not being possible to provide to an unprivileged container seems like things we'd like to avoid.

-Olof

#5 lore raw
Quoted 41 lines · Olof Johansson
Quoted 31 lines · Steven Rostedt
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Quoted 6 lines

Having something that containers might want for their own use (say, for example, some trace functionality) move into sysfs but not being possible to provide to an unprivileged container seems like things we'd like to avoid.

We still have to be concerned about restricting the scope of the sysfs to containers and we run into namespace issues that sysfs being visible to other containers.

I am dealing one such driver that is being used in container space and its namespace not being restricted to container scope.

thanks,
-- Shuah

Quoted 5 lines

_______________________________________________
Ksummit-discuss mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss

#6 lore raw
Quoted 46 lines · Shuah Khan
Quoted 41 lines · Olof Johansson
Quoted 31 lines · Steven Rostedt
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Quoted 6 lines

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Until about 8 months or so ago, maybe a year, debugfs was totally insecure and it was very trivial to use to crash the kernel. Which is why it is a good idea to lock it down and not mount it on "untrusted" systems.

The bar for "security" on debugfs is very low, if not existant, as it should only be for debugging. Yes, it is very easy to use (by design), and so people like to abuse it for things they would have to take more work to "get right" like sysfs or other filesystem-like interfaces.

And that's ok, again, it is only for debugging, don't trust it for anything else please.

Quoted 6 lines
Quoted 5 lines

Having something that containers might want for their own use (say, for example, some trace functionality) move into sysfs but not being possible to provide to an unprivileged container seems like things we'd like to avoid.

Quoted 6 lines

We still have to be concerned about restricting the scope of the sysfs to containers and we run into namespace issues that sysfs being visible to other containers.

I am dealing one such driver that is being used in container space and its namespace not being restricted to container scope.

The kernel doesn't know about "containers" :)

sysfs does have namespacing, if you really want to use it. Networking does, so you can use that as an example. But most driver subsystems do not have namespaces, nor, I would argue, should they have.

thanks,

greg k-h

#7 lore raw
Quoted 50 lines · Greg Kroah-Hartman
Quoted 49 lines · Shuah Khan
Quoted 41 lines · Olof Johansson
Quoted 31 lines · Steven Rostedt
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

Quoted 8 lines
Quoted 3 lines

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Until about 8 months or so ago, maybe a year, debugfs was totally insecure and it was very trivial to use to crash the kernel. Which is why it is a good idea to lock it down and not mount it on "untrusted" systems.

Based on a discussion on another thread on a public list, there are still remaining issues with debugfs that can cause major problems. So no one should ever mount it on an untrusted system still.

It is getting better, but the issues are tough to resolve, give us another year or so :)

thanks,

greg k-h

#8 lore raw

Em Tue, 2 Oct 2018 09:30:01 -0700
Greg Kroah-Hartman <[email protected]> escreveu:

Quoted 60 lines · Greg Kroah-Hartman
Quoted 50 lines · Shuah Khan
Quoted 49 lines · Olof Johansson
Quoted 41 lines · Steven Rostedt
Quoted 31 lines
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

Quoted 8 lines
Quoted 3 lines

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Until about 8 months or so ago, maybe a year, debugfs was totally insecure and it was very trivial to use to crash the kernel. Which is why it is a good idea to lock it down and not mount it on "untrusted" systems.

Quoted 6 lines

Based on a discussion on another thread on a public list, there are still remaining issues with debugfs that can cause major problems. So no one should ever mount it on an untrusted system still.

It is getting better, but the issues are tough to resolve, give us another year or so :)

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

Thanks,
Mauro

#9 lore raw
Quoted 67 lines · Mauro Carvalho Chehab

Em Tue, 2 Oct 2018 09:30:01 -0700
Greg Kroah-Hartman <[email protected]> escreveu:

Quoted 64 lines · Greg Kroah-Hartman
Quoted 50 lines · Shuah Khan
Quoted 49 lines · Olof Johansson
Quoted 41 lines · Steven Rostedt
Quoted 31 lines
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

Quoted 8 lines
Quoted 3 lines

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Until about 8 months or so ago, maybe a year, debugfs was totally insecure and it was very trivial to use to crash the kernel. Which is why it is a good idea to lock it down and not mount it on "untrusted" systems.

Based on a discussion on another thread on a public list, there are still remaining issues with debugfs that can cause major problems. So no one should ever mount it on an untrusted system still.

Quoted 9 lines
Quoted 2 lines

It is getting better, but the issues are tough to resolve, give us another year or so :)

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

Unfortunately distros enable DEBUG_FS. I checked a couple of distro configs.

One popular distro enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_KVM_DEBUG_FS=y
CONFIG_DEBUG_FS=y

Another one enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_DEBUG_FS=y

It looks to me that this message need to be communicated widely so distros can tighten things up.

thanks,
-- Shuah

#10 lore raw
Quoted 86 lines · Shuah Khan
Quoted 67 lines · Mauro Carvalho Chehab

Em Tue, 2 Oct 2018 09:30:01 -0700
Greg Kroah-Hartman <[email protected]> escreveu:

Quoted 64 lines · Greg Kroah-Hartman
Quoted 50 lines · Shuah Khan
Quoted 49 lines · Olof Johansson
Quoted 41 lines · Steven Rostedt
Quoted 31 lines
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

Quoted 8 lines
Quoted 3 lines

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Until about 8 months or so ago, maybe a year, debugfs was totally insecure and it was very trivial to use to crash the kernel. Which is why it is a good idea to lock it down and not mount it on "untrusted" systems.

Based on a discussion on another thread on a public list, there are still remaining issues with debugfs that can cause major problems. So no one should ever mount it on an untrusted system still.

Quoted 9 lines
Quoted 2 lines

It is getting better, but the issues are tough to resolve, give us another year or so :)

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

Unfortunately distros enable DEBUG_FS. I checked a couple of distro configs.

One popular distro enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_KVM_DEBUG_FS=y
CONFIG_DEBUG_FS=y

Quoted 7 lines

Another one enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_DEBUG_FS=y

It looks to me that this message need to be communicated widely so distros can tighten things up.

Luckily debugfs was made "root only by default" a while ago, to help mitigate this problem. So while it is present on a number of distros, the "attack surface" is greatly reduced.

That being said, I bet those distros can drop those config options and be fine.

thanks,

greg k-h

#11 lore raw
Quoted 95 lines · Greg Kroah-Hartman
Quoted 86 lines · Shuah Khan
Quoted 67 lines · Mauro Carvalho Chehab

Em Tue, 2 Oct 2018 09:30:01 -0700
Greg Kroah-Hartman <[email protected]> escreveu:

Quoted 64 lines · Greg Kroah-Hartman
Quoted 50 lines · Shuah Khan
Quoted 49 lines · Olof Johansson
Quoted 41 lines · Steven Rostedt
Quoted 31 lines
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

Quoted 8 lines
Quoted 3 lines

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Until about 8 months or so ago, maybe a year, debugfs was totally insecure and it was very trivial to use to crash the kernel. Which is why it is a good idea to lock it down and not mount it on "untrusted" systems.

Based on a discussion on another thread on a public list, there are still remaining issues with debugfs that can cause major problems. So no one should ever mount it on an untrusted system still.

Quoted 9 lines
Quoted 2 lines

It is getting better, but the issues are tough to resolve, give us another year or so :)

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

Unfortunately distros enable DEBUG_FS. I checked a couple of distro configs.

One popular distro enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_KVM_DEBUG_FS=y
CONFIG_DEBUG_FS=y

Quoted 7 lines

Another one enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_DEBUG_FS=y

It looks to me that this message need to be communicated widely so distros can tighten things up.

Quoted 6 lines

Luckily debugfs was made "root only by default" a while ago, to help mitigate this problem. So while it is present on a number of distros, the "attack surface" is greatly reduced.

That being said, I bet those distros can drop those config options and be fine.

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#12 lore raw
Quoted 11 lines · Jan Kara
Quoted 6 lines · Greg Kroah-Hartman

Luckily debugfs was made "root only by default" a while ago, to help mitigate this problem. So while it is present on a number of distros, the "attack surface" is greatly reduced.

That being said, I bet those distros can drop those config options and be fine.

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

trace points should not be in debugfs. And what stats are in debugfs that are not availble in other tools? If you rely on them, shouldn't we move them to a "stable" location so that they can always be accessed?

thanks,

greg k-h

#13 lore raw
Quoted 7 lines · Greg Kroah-Hartman
Quoted 3 lines

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

trace points should not be in debugfs. And what stats are in debugfs that are not availble in other tools? If you rely on them, shouldn't we move them to a "stable" location so that they can always be accessed?

So I for example quite often make use of the HID debugfs entries both for reading the descriptor, and also for analyzing the parsed events (which appear there as well).

Surely it can be moved whereever else (where?), but it seems to fit to debugfs (it's used solely to debug dysfunctional devices / linux with those devices), and provides exactly the data you need from the owner of the system to provide in order to be able to debug remotely.

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#14 lore raw
Quoted 6 lines · Jiri Kosina
Quoted 4 lines · Greg Kroah-Hartman
Quoted 3 lines

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

Quoted 7 lines
Quoted 3 lines

trace points should not be in debugfs. And what stats are in debugfs that are not availble in other tools? If you rely on them, shouldn't we move them to a "stable" location so that they can always be accessed?

So I for example quite often make use of the HID debugfs entries both for reading the descriptor, and also for analyzing the parsed events (which appear there as well).

for descriptors, both usb and pci expose them through other means that are always present, perhaps you want to do the same thing for hid?

Quoted 4 lines

Surely it can be moved whereever else (where?), but it seems to fit to debugfs (it's used solely to debug dysfunctional devices / linux with those devices), and provides exactly the data you need from the owner of the system to provide in order to be able to debug remotely.

hidfs might be needed to match usbfs :)

thanks,

greg k-h

#15 lore raw
Quoted 18 lines · Greg Kroah-Hartman
Quoted 6 lines · Jiri Kosina
Quoted 4 lines · Greg Kroah-Hartman
Quoted 3 lines

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

Quoted 7 lines
Quoted 3 lines

trace points should not be in debugfs. And what stats are in debugfs that are not availble in other tools? If you rely on them, shouldn't we move them to a "stable" location so that they can always be accessed?

So I for example quite often make use of the HID debugfs entries both for reading the descriptor, and also for analyzing the parsed events (which appear there as well).

for descriptors, both usb and pci expose them through other means that are always present, perhaps you want to do the same thing for hid?

Quoted 6 lines
Quoted 4 lines

Surely it can be moved whereever else (where?), but it seems to fit to debugfs (it's used solely to debug dysfunctional devices / linux with those devices), and provides exactly the data you need from the owner of the system to provide in order to be able to debug remotely.

hidfs might be needed to match usbfs :)

Why not put the raw descriptors in sysfs? That's what pci and usb do, there's no reason you can't do the same here. You already have a sysfs device. Oh wait, you do, 'report_descriptor' right? Why do you also need it in debugfs?

thanks,

greg k-h

#16 lore raw
Quoted 4 lines · Greg Kroah-Hartman

Why not put the raw descriptors in sysfs? That's what pci and usb do, there's no reason you can't do the same here. You already have a sysfs device. Oh wait, you do, 'report_descriptor' right? Why do you also need it in debugfs?

Those are actually two different things -- the one in sysfs is verbatim (binary) as has been read from device, but the one in debugfs is actually showing how in-kernel parser has understood what came out of the device. Which is not necessarily the same thing :)

Also it's rather verbose, with a lot of strings etc., not sure whether you'd want to see that in sysfs.

With 'events' in hid debugfs, it's a similar story really (except it doesn't currently have sysfs counterpart at all, as that'd basically just be showing raw data as coming from the device).

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#17 lore raw
In reply to Greg Kroah-Hartman
Quoted 9 lines · Greg Kroah-Hartman
Quoted 8 lines · Jan Kara
Quoted 6 lines · Greg Kroah-Hartman

Luckily debugfs was made "root only by default" a while ago, to help mitigate this problem. So while it is present on a number of distros, the "attack surface" is greatly reduced.

That being said, I bet those distros can drop those config options and be fine.

Quoted 7 lines
Quoted 3 lines

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

trace points should not be in debugfs. And what stats are in debugfs that are not availble in other tools? If you rely on them, shouldn't we move them to a "stable" location so that they can always be accessed?

I personally use e.g. stats under bdi/ directory. And I agree with Jiri that these things are usually only useful when debugging problems so they seem to match debugfs purpose rather well. We would not even need debugfs *mounted* all the time I guess (but then what's the difference between root-only access currently enforced and not having it mounted, right). But we do need to have it compiled into the kernel...

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR
#18 lore raw
Quoted 19 lines · Jan Kara
Quoted 9 lines · Greg Kroah-Hartman
Quoted 8 lines · Jan Kara
Quoted 6 lines · Greg Kroah-Hartman

Luckily debugfs was made "root only by default" a while ago, to help mitigate this problem. So while it is present on a number of distros, the "attack surface" is greatly reduced.

That being said, I bet those distros can drop those config options and be fine.

Quoted 7 lines
Quoted 3 lines

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

trace points should not be in debugfs. And what stats are in debugfs that are not availble in other tools? If you rely on them, shouldn't we move them to a "stable" location so that they can always be accessed?

Quoted 6 lines

I personally use e.g. stats under bdi/ directory. And I agree with Jiri that these things are usually only useful when debugging problems so they seem to match debugfs purpose rather well. We would not even need debugfs *mounted* all the time I guess (but then what's the difference between root-only access currently enforced and not having it mounted, right). But we do need to have it compiled into the kernel...

And I think the problem is that debugfs is mounted as default on our systems. If it's only for debugging purpose, it should be without mounted for the normal usages.

Of course, the per-default mount is handier for debugging, and it's easier for developers to gather the information. But this can be done also manually via a debug script like our supportconfig, too.

Actually, we'd *love* to have the capability of gathering debug data on the production system, too, so disabling debugfs build is likely no-go. But disabling the mount is a different story, I guess.

thanks,

Takashi

#19 lore raw
In reply to Jan Kara
Quoted 100 lines · Jan Kara
Quoted 99 lines · Greg Kroah-Hartman
Quoted 86 lines · Shuah Khan
Quoted 67 lines · Mauro Carvalho Chehab

Em Tue, 2 Oct 2018 09:30:01 -0700
Greg Kroah-Hartman <[email protected]> escreveu:

Quoted 64 lines · Greg Kroah-Hartman
Quoted 50 lines · Shuah Khan
Quoted 49 lines · Olof Johansson
Quoted 41 lines · Steven Rostedt
Quoted 31 lines
Quoted 12 lines · On Mon, 1 Oct 2018 18:18:56 -0700 Greg KH <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

Quoted 6 lines

It's a technical topic, so maintainers summit doesn't make sense.

Stuff in debugfs should NEVER be used for anything "real" or anything other than debugging. So I would argue that that code needs to be fixed up now anyway, as most distros are disabling debugfs for the obvious reasons (and Android is also turning it off).

The funny part is, things used for debugging tend to turn into something that people want on production systems (tracing, perf, powertop, etc).

Quoted 4 lines

As for where to put it, it all depends on exactly what it is, and what it does and who uses it. So it's almost always a case-by-case basis.

Quoted 8 lines
Quoted 2 lines

Any specific examples you wish to share of code that needs this?

tracefs was one example, but someone was talking to me at Kernel Recipes and wanted had another directory in debugfs and wanted it out as it was stable and wanted it exposed when debugfs is turned off. Unfortunately, this was discussed at an evening event, and I don't recall the specifics.

Quoted 3 lines

One really useful criteria for graduating some service to sysfs would be to have namespaces and security aspects sorted out for it. Being in debugfs you can ignore all of that.

Yes. Moving to debugfs service to sysfs would make it more secure. However, security is important even if it stays in debugfs.

Quoted 8 lines
Quoted 3 lines

I don't believe that is safe to have a lower security bar for dbugfs interfaces. Not all distros disable debugfs and if debugfs becomes vulnerability, it would become target on distros that don't disable.

Until about 8 months or so ago, maybe a year, debugfs was totally insecure and it was very trivial to use to crash the kernel. Which is why it is a good idea to lock it down and not mount it on "untrusted" systems.

Based on a discussion on another thread on a public list, there are still remaining issues with debugfs that can cause major problems. So no one should ever mount it on an untrusted system still.

Quoted 9 lines
Quoted 2 lines

It is getting better, but the issues are tough to resolve, give us another year or so :)

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

Unfortunately distros enable DEBUG_FS. I checked a couple of distro configs.

One popular distro enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_KVM_DEBUG_FS=y
CONFIG_DEBUG_FS=y

Quoted 7 lines

Another one enables:

CONFIG_BLK_DEBUG_FS=y
CONFIG_DEBUG_FS=y

It looks to me that this message need to be communicated widely so distros can tighten things up.

Luckily debugfs was made "root only by default" a while ago, to help mitigate this problem. So while it is present on a number of distros, the "attack surface" is greatly reduced.

Quoted 7 lines
Quoted 2 lines

That being said, I bet those distros can drop those config options and be fine.

Not really. We need those configs to be enabled to be able to troubleshoot customer's problems - e.g., asking customer to enable some trace points or show some stats from debugfs is pretty common...

Correct. This is the general approach to debug problems in the field and is necessary to gather information pertaining to the problem.

This is one of the reasons why it is necessary to continue to make debugfs secure and try to set a higher bar for new debugfs services going forward. I don't think we can say "don't enable" and it should be "enable at your risk as we try to make these as secure as possible".

thanks,
-- Shuah

#20 lore raw
In reply to Mauro Carvalho Chehab

On Tue, Oct 02, 2018 at 06:37:43PM -0300, Mauro Carvalho Chehab wrote:

[...]

Quoted 7 lines

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

I completely agree with that. Recently I reviewed patches to support power management on some ARM platforms which had complete system clock control in debugfs. It even had access to many system controls that it can send to remote system control processor which we really don't want in production systems.

--
Regards,
Sudeep

#21 lore raw
Quoted 8 lines · Sudeep Holla
Quoted 5 lines · Mauro Carvalho Chehab

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

Quoted 5 lines

I completely agree with that. Recently I reviewed patches to support power management on some ARM platforms which had complete system clock control in debugfs. It even had access to many system controls that it can send to remote system control processor which we really don't want in production systems.

This is why I've always strongly resisted making it possible to write to the regmap or regulator debugfs files; there is code for writing to the regmap ones but you need to patch the kernel to enable it.

#22 lore raw
Quoted 15 lines · Mark Brown
Quoted 8 lines · Sudeep Holla
Quoted 5 lines · Mauro Carvalho Chehab

Even if it won't be possible to crash the Kernel or escalate privileges, I suspect that several stuff in debugfs should never be enabled on production systems, as they may reveal things like memory addresses and other stuff that could be used to help someone to crack a system.

Quoted 5 lines

I completely agree with that. Recently I reviewed patches to support power management on some ARM platforms which had complete system clock control in debugfs. It even had access to many system controls that it can send to remote system control processor which we really don't want in production systems.

Quoted 3 lines

This is why I've always strongly resisted making it possible to write to the regmap or regulator debugfs files; there is code for writing to the regmap ones but you need to patch the kernel to enable it.

Ah, that's better. Next time I see anything around debugfs where restricting write is a must, I will suggest something on similar lines so that they need that extra tiny patch to get it enabled. Thanks for the pointers.

--
Regards,
Sudeep

#23 lore raw
In reply to Steven Rostedt
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

I have a semi-related topic, hopefully not a complete thread hijack... ;)

I think module parameters should primarily be viewed as debug knobs rather than ABI. Things should just work instead of requiring the user to tweak module parameters. Of course, there's the whole spectrum between ABI and "unsafe" module parameters, and parameters get added for a plethora of reasons.

However, all module parameters show up in sysfs instead of, say, debugfs. Many debug options otherwise suitable for debugfs alone are added as module parameters because of the convenience; with just a few lines you can add the module parameter, get the sysfs, and have the value be set before probe. There's nothing that compares, really.

I suppose primarily I'd like to find a convenient way to move module parameters to debugfs, so the other way round than Steven. Do others struggle with this? Any ideas, thoughts, pointers?

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center
#24 lore raw
Quoted 21 lines · On Tue, 02 Oct 2018 11:40:47 +0300 Jani Nikula <[email protected]> wrote:
Quoted 10 lines · Steven Rostedt

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

I have a semi-related topic, hopefully not a complete thread hijack... ;)

I think module parameters should primarily be viewed as debug knobs rather than ABI. Things should just work instead of requiring the user to tweak module parameters. Of course, there's the whole spectrum between ABI and "unsafe" module parameters, and parameters get added for a plethora of reasons.

Quoted 5 lines

However, all module parameters show up in sysfs instead of, say, debugfs. Many debug options otherwise suitable for debugfs alone are added as module parameters because of the convenience; with just a few lines you can add the module parameter, get the sysfs, and have the value be set before probe. There's nothing that compares, really.

You mean to select some of the parameters to be debugfs knobs? (obviously we don't want all of them there).

Quoted 5 lines

I suppose primarily I'd like to find a convenient way to move module parameters to debugfs, so the other way round than Steven. Do others struggle with this? Any ideas, thoughts, pointers?

I haven't had any issues, personally.

-- Steve

#25 lore raw
In reply to Jani Nikula

Em Tue, 02 Oct 2018 11:40:47 +0300
Jani Nikula <[email protected]> escreveu:

Quoted 27 lines · Steven Rostedt
Quoted 10 lines

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

I have a semi-related topic, hopefully not a complete thread hijack... ;)

I think module parameters should primarily be viewed as debug knobs rather than ABI. Things should just work instead of requiring the user to tweak module parameters. Of course, there's the whole spectrum between ABI and "unsafe" module parameters, and parameters get added for a plethora of reasons.

However, all module parameters show up in sysfs instead of, say, debugfs. Many debug options otherwise suitable for debugfs alone are added as module parameters because of the convenience; with just a few lines you can add the module parameter, get the sysfs, and have the value be set before probe. There's nothing that compares, really.

Quoted 3 lines

I suppose primarily I'd like to find a convenient way to move module parameters to debugfs, so the other way round than Steven. Do others struggle with this? Any ideas, thoughts, pointers?

Actually, there are several modprobe parameters on some media drivers that aren't debug-related. On very cheap hardware, sometimes the vendor doesn't put any eeprom at the device, or doesn't care enough to give a PCI or USB ID for his hardware.

So, several media drivers have modprobe parameters in order to help the module to load the right configuration.

There are more commonly found at PCI devices, but there are some USB ones that also need those. This is currently found on some really cheap video grabber boards.

So, moving parameters from sysfs to debugfs is not the right thing to do, for such usecases. Also, we try to avoid touching the existing parameters like that, in order to avoid breaking userspace setups.

Regards,
Mauro

Thanks,
Mauro

#26 lore raw
Quoted 42 lines · Mauro Carvalho Chehab

Em Tue, 02 Oct 2018 11:40:47 +0300
Jani Nikula <[email protected]> escreveu:

Quoted 27 lines · Steven Rostedt
Quoted 10 lines

At Kernel Recipes, I talked with some people that have mature interfaces in the debugfs directory, but they can not access them on systems that have debugfs disabled. What would be the process to have these systems move out of debugfs? Should they create their own fs and be mounted in /sys/kernel, with a dedicated directory if the file system is enabled in the kernel (I had tracefs do that).

Is this something we should discuss at Maintainers Summit? What is the process for mature debugfs directories? What's the justification to have them moved? Is there a better answer for this?

I have a semi-related topic, hopefully not a complete thread hijack... ;)

I think module parameters should primarily be viewed as debug knobs rather than ABI. Things should just work instead of requiring the user to tweak module parameters. Of course, there's the whole spectrum between ABI and "unsafe" module parameters, and parameters get added for a plethora of reasons.

However, all module parameters show up in sysfs instead of, say, debugfs. Many debug options otherwise suitable for debugfs alone are added as module parameters because of the convenience; with just a few lines you can add the module parameter, get the sysfs, and have the value be set before probe. There's nothing that compares, really.

Quoted 3 lines

I suppose primarily I'd like to find a convenient way to move module parameters to debugfs, so the other way round than Steven. Do others struggle with this? Any ideas, thoughts, pointers?

Actually, there are several modprobe parameters on some media drivers that aren't debug-related. On very cheap hardware, sometimes the vendor doesn't put any eeprom at the device, or doesn't care enough to give a PCI or USB ID for his hardware.

So, several media drivers have modprobe parameters in order to help the module to load the right configuration.

Quoted 7 lines

There are more commonly found at PCI devices, but there are some USB ones that also need those. This is currently found on some really cheap video grabber boards.

So, moving parameters from sysfs to debugfs is not the right thing to do, for such usecases. Also, we try to avoid touching the existing parameters like that, in order to avoid breaking userspace setups.

As I tried to say, there certainly are plenty of legitimate cases like this. It's just that there are also plenty of cases where debugfs would clearly be the right place, without a module parameter at all, but you can't make the debug parameters take effect at probe time. Because you obviously need to have the driver register the debugfs files first.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel Open Source Graphics Center