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  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 14 Jan 2022 15:50:52 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     'Eric Dumazet' <>,
        "David S . Miller" <>,
        Jakub Kicinski <>
CC:     netdev <>,
        Eric Dumazet <>,
        syzbot <>,
        Ido Schimmel <>,
        "Jiri Pirko" <>
Subject: RE: [PATCH net] ipv4: make fib_info_cnt atomic

From: Eric Dumazet
> Sent: 14 January 2022 15:39
> Instead of making sure all free_fib_info() callers
> hold rtnl, it seems better to convert fib_info_cnt
> to an atomic_t.

Since fib_info_cnt is only used to control the size of the hash table
could it be incremented when a fid is added to the hash table and
decremented when it is removed.

This is all inside the fib_info_lock.


Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

Powered by blists - more mailing lists