Setting net.ipv4.neigh.default.gc_thresh1/2/3 on 3.13.0-97.144 or later causes 'invalid argument' error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Trusty |
Fix Released
|
Medium
|
Unassigned | ||
linux-lts-trusty (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Setting net.ipv4.
$ sudo /sbin/sysctl -w net.ipv4.
128
As of 3.13.0-97-generic, though, it no longer works as expected:
$ sudo /sbin/sysctl -w net.ipv4.
error: "Invalid argument" setting key "net.ipv4.
There are two potentially related revisions in the -97 release - http://
The expected behavior is that changing neighbor table settings works using 'sysctl -w' with the same values as before the -97 kernel.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-
ProcVersionSign
Uname: Linux 3.13.0-98-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version k3.13.0-98-generic.
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.0.1-0ubuntu17.13
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info: Error: [Errno 2] No such file or directory
Card0.Amixer.
CurrentDmesg: [ 4.586115] NET: Registered protocol family 40
Date: Wed Oct 19 06:13:36 2016
HibernationDevice: RESUME=
InstallationMedia: Ubuntu-Server 12.04.5 LTS "Precise Pangolin" - Release amd64 (20140806.1)
IwConfig: Error: [Errno 2] No such file or directory
MachineType: VMware, Inc. VMware Virtual Platform
MarkForUpload: True
ProcEnviron:
LANGUAGE=en_US:
TERM=screen-
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcFB: 0 svgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.79.16
RfKill: Error: [Errno 2] No such file or directory
SourcePackage: linux-lts-trusty
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/02/2015
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: VMware Virtual Platform
dmi.product.
dmi.sys.vendor: VMware, Inc.
description: | updated |
tags: | added: kernel-da-key needs-bisect |
Changed in linux-lts-trusty (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Trusty): | |
status: | New → Triaged |
no longer affects: | linux-lts-trusty (Ubuntu Trusty) |
Changed in linux (Ubuntu Trusty): | |
importance: | Undecided → Medium |
tags: | removed: needs-bisect |
Changed in linux (Ubuntu): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Trusty): | |
status: | Triaged → In Progress |
Changed in linux-lts-trusty (Ubuntu): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Trusty): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux-lts-trusty (Ubuntu): | |
assignee: | nobody → Joseph Salisbury (jsalisbury) |
Changed in linux (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done-trusty removed: verification-needed-trusty |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Released |
tags: | added: cscc |
I've bisected Ubuntu- 3.13.0- 96.143 to Ubuntu3.13.0-97.144 and it looks like 7b82096b0ebc9bf 487b390fe970d66 ffa5a5774e introduced the problem.
thomasco@ dev:/storage/ ubuntu- trusty (7b82096. ..|BISECTING) $ git bisect bad 487b390fe970d66 ffa5a5774e is the first bad commit 487b390fe970d66 ffa5a5774e
7b82096b0ebc9bf
commit 7b82096b0ebc9bf
Author: Jiri Pirko <email address hidden>
Date: Sat Dec 7 19:26:56 2013 +0100
neigh: restore old behaviour of default parms values
commit 1d4c8c29841b999 1cdf3c7cc4ba7f9 6a94f104ca upstream.
Previously inet devices were only constructed when addresses are added.
Therefore the default neigh parms values they get are the ones at the
time of these operations.
Now that we're creating inet devices earlier, this changes the behaviour
of default neigh parms values in an incompatible way (see bug #8519).
This patch creates a compromise by setting the default values at the
same point as before but only for those that have not been explicitly
set by the user since the inet device's creation.
Introduced by: 73a88c09f30d5d8 44fb1b3190
commit 8030f54499925d0
Author: Herbert Xu <email address hidden>
Date: Thu Feb 22 01:53:47 2007 +0900
[IPV4] devinet: Register inetdev earlier.
Signed-off-by: Jiri Pirko <email address hidden> /bugs.launchpad .net/bugs/ 994931
Signed-off-by: David S. Miller <email address hidden>
BugLink: https:/
Signed-off-by: Kamal Mostafa <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Acked-by: Brad Figg <email address hidden>
:040000 040000 b95e2490d8d94ff b3c4b5818b0ca05 e2cdff17d2 7296def1ea38ae1 c46ec1a6ba4df3d 26fe568545 M include 47b2b4f816a2442 72613fdc08 12e3e33ddae9c14 1ae77b6eb471ab5 b9d5214db8 M net
:040000 040000 e78478aead22c49
thomasco@ dev:/storage/ ubuntu- trusty (7b82096. ..|BISECTING) $ git bisect log 5c43d60bfdab94f edf0a30cca6] UBUNTU: Ubuntu- 3.13.0- 97.144 84c56f483bef6ce 0caf71a40af] UBUNTU: Ubuntu- 3.13.0- 96.143 3.13.0- 97.144' 'Ubuntu- 3.13.0- 96.143' 66844287ddcdf75 e0e756fbd52] PCI: Add Netronome vendor and device IDs 6844287ddcdf75e 0e756fbd52 342dae0add0a4bb 4c443e93411] Revert "UBUNTU: SAUCE: (no-up) ipv6: make the net.ipv6. conf.all. use_tempaddr sysctl propagate to interface settings" 42dae0add0a4bb4 c443e93411 6cb28646c2e637b 76217a8d837] neigh: use tbl->family to distinguish ipv4 from ipv6 cb28646c2e637b7 6217a8d837 4d5eb30801d4341 2afb48723f5] neigh: ipv6: respect default values set before an address is assigned to device d5eb30801d43412 afb48723f5 f487b390fe970d6 6ffa5a5774e] neigh: restore old behaviour of default parms values 487b390fe970d66 ffa5a5774e f487b390fe970d6 6ffa5a5774e] neigh: restore old behaviour of default parms values
# bad: [002556d2310006
# good: [d8590fec6790ab
git bisect start 'Ubuntu-
# good: [e5e45738175efd
git bisect good e5e45738175efd6
# good: [a70a25682944ac
git bisect good a70a25682944ac3
# good: [6235189019f613
git bisect good 6235189019f6136
# bad: [68a4a771678dd2
git bisect bad 68a4a771678dd24
# bad: [7b82096b0ebc9b
git bisect bad 7b82096b0ebc9bf
# first bad commit: [7b82096b0ebc9b