This appears to be an off-by-one issue when handling reads which are
smaller than the overall returned size for the table. This is easily
spotted in the read line by line mode triggered in the following test
script:
#!/bin/bash
while read l
do
echo "$l"
done </proc/net/route
Though in my tests it also triggers with cat /proc/net/route when you
have more than 8K worth of routes, occuring at the 8K boundary.
The underlying issue is that the code does not correctly take into
account the header when starting from anywhere but the beginning. This
leads us to drop the first set of entries on restart.
** Changed in: linux (Ubuntu)
Status: Confirmed => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1483440
Title:
odd behavior with /proc/net/route reading via sh 'read'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1483440/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs