linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
@ 2023-10-24 10:56 ` bugzilla-daemon
  2023-10-24 10:59 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2023-10-24 10:56 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Other                       |cpufreq
           Assignee|drivers_other@kernel-bugs.o |linux-pm@vger.kernel.org
                   |sdl.org                     |
            Product|Drivers                     |Power Management

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
  2023-10-24 10:56 ` [Bug 218041] Buffer overrun in devfreq trans_stat_show() bugzilla-daemon
@ 2023-10-24 10:59 ` bugzilla-daemon
  2023-10-24 11:01 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2023-10-24 10:59 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ansuelsmth@gmail.com

--- Comment #1 from Artem S. Tashkinov (aros@gmx.com) ---
Christian, could you take a look please?

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
  2023-10-24 10:56 ` [Bug 218041] Buffer overrun in devfreq trans_stat_show() bugzilla-daemon
  2023-10-24 10:59 ` bugzilla-daemon
@ 2023-10-24 11:01 ` bugzilla-daemon
  2023-10-24 11:52 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2023-10-24 11:01 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

Artem S. Tashkinov (aros@gmx.com) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cwchoi00@gmail.com

--- Comment #2 from Artem S. Tashkinov (aros@gmx.com) ---
CC'ing Chanwoo as well.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
                   ` (2 preceding siblings ...)
  2023-10-24 11:01 ` bugzilla-daemon
@ 2023-10-24 11:52 ` bugzilla-daemon
  2023-10-24 14:09 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2023-10-24 11:52 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

--- Comment #3 from Christian Marangi (Ansuel) (ansuelsmth@gmail.com) ---
Can you describe the amount of frequency? An easy fix would be truncating the
output but I don't think it would be a correct fix...

If there isn't a bug in how the char are count I feel like the only solution is
moving this to debugfs where there isn't the PAGE_SIZE limit.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
                   ` (3 preceding siblings ...)
  2023-10-24 11:52 ` bugzilla-daemon
@ 2023-10-24 14:09 ` bugzilla-daemon
  2023-10-24 18:33 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2023-10-24 14:09 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

--- Comment #4 from tnifc@protonmail.com ---
(In reply to Christian Marangi (Ansuel) from comment #3)
> Can you describe the amount of frequency?

There are 20 available frequencies on the Tegra 30 "Ouya" device.

$ cat /sys/class/devfreq/6000c800.actmon/available_frequencies  
12750000 25500000 27000000 51000000 54000000 102000000 108000000 204000000
266500000 333500000 375000000 400000000 416000000 450000000 500000000 533000000
625000000 667000000 750000000 800000000

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
                   ` (4 preceding siblings ...)
  2023-10-24 14:09 ` bugzilla-daemon
@ 2023-10-24 18:33 ` bugzilla-daemon
  2024-02-21 16:59 ` bugzilla-daemon
  2024-02-22 15:52 ` bugzilla-daemon
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2023-10-24 18:33 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

--- Comment #5 from Christian Marangi (Ansuel) (ansuelsmth@gmail.com) ---
Thanks for the report. I checked how the equivalent function for cpufreq works
and as I tought it does fail the thing to write exceed PAGE_SIZE. I sent a
patch upstream that fix the missing check.

sysfs stuff is ABI so moving this to debugfs is a no go (due to we don't break
userspace rule) so this is the only solution currently.

If accepted, it will be queued for stable backport.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
                   ` (5 preceding siblings ...)
  2023-10-24 18:33 ` bugzilla-daemon
@ 2024-02-21 16:59 ` bugzilla-daemon
  2024-02-22 15:52 ` bugzilla-daemon
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2024-02-21 16:59 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

--- Comment #6 from Christian Marangi (Ansuel) (ansuelsmth@gmail.com) ---
BTW this has been fixed upstream and got backported. This can be closed as
fixed.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 218041] Buffer overrun in devfreq trans_stat_show()
       [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
                   ` (6 preceding siblings ...)
  2024-02-21 16:59 ` bugzilla-daemon
@ 2024-02-22 15:52 ` bugzilla-daemon
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2024-02-22 15:52 UTC (permalink / raw)
  To: linux-pm

https://bugzilla.kernel.org/show_bug.cgi?id=218041

tnifc@protonmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |CODE_FIX

--- Comment #7 from tnifc@protonmail.com ---
Thanks.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-02-22 15:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-218041-137361@https.bugzilla.kernel.org/>
2023-10-24 10:56 ` [Bug 218041] Buffer overrun in devfreq trans_stat_show() bugzilla-daemon
2023-10-24 10:59 ` bugzilla-daemon
2023-10-24 11:01 ` bugzilla-daemon
2023-10-24 11:52 ` bugzilla-daemon
2023-10-24 14:09 ` bugzilla-daemon
2023-10-24 18:33 ` bugzilla-daemon
2024-02-21 16:59 ` bugzilla-daemon
2024-02-22 15:52 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).