lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <dbd29397-719d-f0d0-09a7-3ec6afb0d5b7@gmail.com>
Date:   Sun, 14 Apr 2019 15:32:59 -0700
From:   Eric Dumazet <eric.dumazet@...il.com>
To:     David Miller <davem@...emloft.net>, edumazet@...gle.com
Cc:     netdev@...r.kernel.org, eric.dumazet@...il.com,
        syzkaller@...glegroups.com, ssuryaextr@...il.com
Subject: Re: [PATCH net] ipv4: ensure rcu_read_lock() in ipv4_link_failure()



On 04/14/2019 01:44 PM, David Miller wrote:
> From: Eric Dumazet <edumazet@...gle.com>
> Date: Sat, 13 Apr 2019 17:32:21 -0700
> 
>> fib_compute_spec_dst() needs to be called under rcu protection.
>>
>> syzbot reported :
>  ...
>> Fixes: ed0de45a1008 ("ipv4: recompile ip options in ipv4_link_failure")
>> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
>> Reported-by: syzbot <syzkaller@...glegroups.com>
> 
> Applied, thanks Eric.
> 
> Please take a look at the cipso_v4_error case.
> 

I am not familiar of this code, but it looks like it runs from BH rx handler,
with rcu_read_lock() asserted.

The problem for ipv4_link_failure() is that it can be run from a timer handler,
which does not generally hold rcu_read_lock().


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ