| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The previous hardcoded value was ok when used with the old SOCK_PACKET
which was truncating network interface names to 14 bytes anyway. When
support for the new-fangled PF_PACKET was added this became a bug.
While technically a buffer overflow it is something that could only be
exploited by root himself. Even more, due to alignment rules used by all
Linux architectures the two bytes following the overflowed arrays would
be unused anyway because an int is following, so this would actually end
up working as intended, not as coded.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Fixes: 5415c1237782
|
|
|
|
|
|
|
| |
The kernel warns of those since Linux 2.1.68 which was released on
1997-11-30.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is using the following semantic patch:
@identitycast@
type T;
T *A;
@@
- (T *) A
+ A
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Somewhat hard to read and the code base already has many overlong
lines.
Found with below spatch file and some manual editing in ax25/access.c
to restore a comment lost by spatch.
@parens@
expression E, F, G;
binary operator X;
statement S;
@@
- if ((E = F) X G)
+ E = F;
+ if (E X G)
S
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
| |
This uses a setlocalversion script derived from the kernel's
scripts/setlocalversion.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
| |
Indentation by tabs only. Move case labels in switches are on the same
level as the switch keyword.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
| |
Glibc as old as 2.2 provides working headers under the right name and
if not libax25 would install headers under the right name so this has
become redundant and ugly.
|
|
|
|
|
|
|
|
| |
Various socket syscalls receive a length argument that should be a
socklen_t rsp. a ptr to a socklen_t but instead int rsp. ptr to int were
being passed. While in theory this was a bug it's harmless as dangerously
large values would not be used but the issue manifested itself in a
significant number of compilation warnings.
|
| |
|
|
|
|
| |
pointless comments.
|
|
|
|
|
|
|
| |
matching iface was found.
from my old readme:
fyi: if you have problems with kernel messages like "protocol ... is
buggy", please drop me a note. there seems to be a bug in af_packet.c.
|
| |
|
| |
|
| |
|
|
|