netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ax25: fix possible use-after-free
@ 2019-02-16 22:33 f6bvp
  2019-02-17 18:39 ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: f6bvp @ 2019-02-16 22:33 UTC (permalink / raw)
  To: netdev


Patch applied successfully on Linux draws-f6bvp 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux

However ax25_route_lock_use and ax25_route_lock_unuse() are not declared and compile failed.

make : on entre dans le répertoire « /usr/src/linux-headers-4.14.79-v7+ »
  CC [M]  /usr/src/linux-4.14.y/net/ax25/ax25_ip.o
/usr/src/linux-4.14.y/net/ax25/ax25_ip.c: In function ‘ax25_ip_xmit’:
/usr/src/linux-4.14.y/net/ax25/ax25_ip.c:117:2: error: implicit declaration of function ‘ax25_route_lock_use’ [-Werror=implicit-function-declaration]
  ax25_route_lock_use();
  ^~~~~~~~~~~~~~~~~~~
/usr/src/linux-4.14.y/net/ax25/ax25_ip.c:211:2: error: implicit declaration of function ‘ax25_route_lock_unuse’ [-Werror=implicit-function-declaration]
  ax25_route_lock_unuse();
  ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:328 : la recette pour la cible « /usr/src/linux-4.14.y/net/ax25/ax25_ip.o » a echouee
make[1]: *** [/usr/src/linux-4.14.y/net/ax25/ax25_ip.o] Erreur 1
Makefile:1527 : la recette pour la cible « _module_/usr/src/linux-4.14.y/net/ax25 » a echouee
make: *** [_module_/usr/src/linux-4.14.y/net/ax25] Erreur 2
make : on quitte le repertoire « /usr/src/linux-headers-4.14.79-v7+ »


Bernard, f6bvp






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

* Re: ax25: fix possible use-after-free
  2019-02-16 22:33 ax25: fix possible use-after-free f6bvp
@ 2019-02-17 18:39 ` Eric Dumazet
  2019-02-17 23:47   ` f6bvp
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Dumazet @ 2019-02-17 18:39 UTC (permalink / raw)
  To: f6bvp, netdev



On 02/16/2019 02:33 PM, f6bvp wrote:
> 
> Patch applied successfully on Linux draws-f6bvp 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
> 
> However ax25_route_lock_use and ax25_route_lock_unuse() are not declared and compile failed.
> 
> make : on entre dans le répertoire « /usr/src/linux-headers-4.14.79-v7+ »
>   CC [M]  /usr/src/linux-4.14.y/net/ax25/ax25_ip.o
> /usr/src/linux-4.14.y/net/ax25/ax25_ip.c: In function ‘ax25_ip_xmit’:
> /usr/src/linux-4.14.y/net/ax25/ax25_ip.c:117:2: error: implicit declaration of function ‘ax25_route_lock_use’ [-Werror=implicit-function-declaration]
>   ax25_route_lock_use();
>   ^~~~~~~~~~~~~~~~~~~
> /usr/src/linux-4.14.y/net/ax25/ax25_ip.c:211:2: error: implicit declaration of function ‘ax25_route_lock_unuse’ [-Werror=implicit-function-declaration]
>   ax25_route_lock_unuse();
>   ^~~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
> scripts/Makefile.build:328 : la recette pour la cible « /usr/src/linux-4.14.y/net/ax25/ax25_ip.o » a echouee
> make[1]: *** [/usr/src/linux-4.14.y/net/ax25/ax25_ip.o] Erreur 1
> Makefile:1527 : la recette pour la cible « _module_/usr/src/linux-4.14.y/net/ax25 » a echouee
> make: *** [_module_/usr/src/linux-4.14.y/net/ax25] Erreur 2
> make : on quitte le repertoire « /usr/src/linux-headers-4.14.79-v7+ »
> 
> 
> Bernard, f6bvp
> 

Hi Bernard

Are you sure you applied the patch correctly/completely ?

git cherry-pick worked without conflicts on top of 4.14.100


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

* Re: ax25: fix possible use-after-free
  2019-02-17 18:39 ` Eric Dumazet
@ 2019-02-17 23:47   ` f6bvp
  0 siblings, 0 replies; 3+ messages in thread
From: f6bvp @ 2019-02-17 23:47 UTC (permalink / raw)
  To: Eric Dumazet; +Cc: netdev

Hi Eric,
Yes the patch was correctly and completely applied.
However, on a Raspberry Pi  I am only building the AX25 module with kernel headers and without the full kernel source for debuging.
After your remark I found that  #include <net/ax25.h > in source files did not work and I had to explicitly indicate the full path in order to satisfy functions declarations.
#include    </usr/src/linux/include/net/ax25.h>

Thank you for your help in understanding the issue.

Bernard

> Le 17 févr. 2019 à 19:39, Eric Dumazet <eric.dumazet@gmail.com> a écrit :
> 
> 
> 
>> On 02/16/2019 02:33 PM, f6bvp wrote:
>> 
>> Patch applied successfully on Linux draws-f6bvp 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
>> 
>> However ax25_route_lock_use and ax25_route_lock_unuse() are not declared and compile failed.
>> 
>> make : on entre dans le répertoire « /usr/src/linux-headers-4.14.79-v7+ »
>>  CC [M]  /usr/src/linux-4.14.y/net/ax25/ax25_ip.o
>> /usr/src/linux-4.14.y/net/ax25/ax25_ip.c: In function ‘ax25_ip_xmit’:
>> /usr/src/linux-4.14.y/net/ax25/ax25_ip.c:117:2: error: implicit declaration of function ‘ax25_route_lock_use’ [-Werror=implicit-function-declaration]
>>  ax25_route_lock_use();
>>  ^~~~~~~~~~~~~~~~~~~
>> /usr/src/linux-4.14.y/net/ax25/ax25_ip.c:211:2: error: implicit declaration of function ‘ax25_route_lock_unuse’ [-Werror=implicit-function-declaration]
>>  ax25_route_lock_unuse();
>>  ^~~~~~~~~~~~~~~~~~~~~
>> cc1: some warnings being treated as errors
>> scripts/Makefile.build:328 : la recette pour la cible « /usr/src/linux-4.14.y/net/ax25/ax25_ip.o » a echouee
>> make[1]: *** [/usr/src/linux-4.14.y/net/ax25/ax25_ip.o] Erreur 1
>> Makefile:1527 : la recette pour la cible « _module_/usr/src/linux-4.14.y/net/ax25 » a echouee
>> make: *** [_module_/usr/src/linux-4.14.y/net/ax25] Erreur 2
>> make : on quitte le repertoire « /usr/src/linux-headers-4.14.79-v7+ »
>> 
>> 
>> Bernard, f6bvp
>> 
> 
> Hi Bernard
> 
> Are you sure you applied the patch correctly/completely ?
> 
> git cherry-pick worked without conflicts on top of 4.14.100
> 


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

end of thread, other threads:[~2019-02-17 23:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-16 22:33 ax25: fix possible use-after-free f6bvp
2019-02-17 18:39 ` Eric Dumazet
2019-02-17 23:47   ` f6bvp

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).