Bug 209037 - lec_seq_next does not update index position
Summary: lec_seq_next does not update index position
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 low
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-25 16:10 UTC by Colin Ian King
Modified: 2020-08-25 16:10 UTC (History)
0 users

See Also:
Kernel Version: from at least 2.6.12+
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Colin Ian King 2020-08-25 16:10:37 UTC
Stress-testing /procfs with stress-ng tripped the following warning when reading /proc/net/atm/lec:

[ 7236.344619] seq_file: buggy .next function lec_seq_next [lec] did not update position index
[ 7236.344704] seq_file: buggy .next function lec_seq_next [lec] did not update position index

can be reproduced by seeking on the proc file and reading:

dd if=/proc/net/atm/lec seek=1 of=/dev/stdout bs=1K

the read() also blocks which is not correct either.

Note You need to log in before you can comment on or make changes to this bug.