syzbot


memory leak in fdb_create (2)

Status: fixed on 2020/01/08 01:07
Subsystems: bridge
[Documentation on labels]
Reported-by: syzbot+2add91c08eb181fea1bf@syzkaller.appspotmail.com
Fix commit: c4b4c421857d net: bridge: deny dev_set_mac_address() when unregistering
First crash: 1599d, last: 1599d
Discussions (9)
Title Replies (including bot) Last reply
[PATCH 3.16 000/148] 3.16.82-rc1 review 151 (151) 2020/02/09 18:51
[PATCH 4.19 00/47] 4.19.91-stable review 52 (52) 2019/12/20 18:49
[PATCH 4.14 00/36] 4.14.160-stable review 41 (41) 2019/12/20 18:48
[PATCH 4.9 000/199] 4.9.207-stable review 204 (204) 2019/12/20 18:47
[PATCH 4.4 000/162] 4.4.207-stable review 167 (167) 2019/12/20 18:47
[PATCH 5.4 00/37] 5.4.5-stable review 48 (48) 2019/12/19 08:45
[PATCH 5.3 00/25] 5.3.18-stable review 30 (30) 2019/12/18 21:00
[PATCH net] net: bridge: deny dev_set_mac_address() when unregistering 2 (2) 2019/12/03 19:22
memory leak in fdb_create (2) 1 (2) 2019/12/02 20:20
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in fdb_create bridge C done 4 1721d 1761d 12/26 fixed on 2019/08/27 17:15

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888124fa7080 (size 128):
  comm "syz-executor163", pid 7170, jiffies 4294954254 (age 12.500s)
  hex dump (first 32 bytes):
    d1 16 b6 1f 81 88 ff ff 00 00 00 00 00 00 00 00  ................
    aa aa aa aa aa 0c 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<000000001bbce457>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline]
    [<000000001bbce457>] slab_post_alloc_hook mm/slab.h:586 [inline]
    [<000000001bbce457>] slab_alloc mm/slab.c:3319 [inline]
    [<000000001bbce457>] kmem_cache_alloc+0x13f/0x2c0 mm/slab.c:3483
    [<000000005e78ed69>] fdb_create+0x37/0x530 net/bridge/br_fdb.c:498
    [<000000009cc867aa>] fdb_insert+0xb2/0xf0 net/bridge/br_fdb.c:537
    [<00000000a443c9ff>] br_fdb_change_mac_address+0x80/0x1f0 net/bridge/br_fdb.c:316
    [<00000000370e41a8>] br_stp_change_bridge_id+0x4c/0x190 net/bridge/br_stp_if.c:223
    [<00000000db15c550>] br_set_mac_address+0xa2/0xb0 net/bridge/br_device.c:251
    [<00000000547a827c>] dev_set_mac_address+0xdd/0x150 net/core/dev.c:8350
    [<0000000068a207bd>] __bond_release_one.cold+0x319/0x4ac drivers/net/bonding/bond_main.c:2055
    [<00000000189411c7>] bond_slave_netdev_event drivers/net/bonding/bond_main.c:3169 [inline]
    [<00000000189411c7>] bond_netdev_event+0x2ac/0x2c0 drivers/net/bonding/bond_main.c:3280
    [<000000002bd5677b>] notifier_call_chain+0x66/0xb0 kernel/notifier.c:95
    [<0000000044f0058c>] __raw_notifier_call_chain kernel/notifier.c:396 [inline]
    [<0000000044f0058c>] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:403
    [<000000009782bbd6>] call_netdevice_notifiers_info net/core/dev.c:1893 [inline]
    [<000000009782bbd6>] call_netdevice_notifiers_info+0x60/0xb0 net/core/dev.c:1878
    [<000000005904fef6>] call_netdevice_notifiers_extack net/core/dev.c:1905 [inline]
    [<000000005904fef6>] call_netdevice_notifiers net/core/dev.c:1919 [inline]
    [<000000005904fef6>] rollback_registered_many+0x373/0x640 net/core/dev.c:8743
    [<00000000806944eb>] unregister_netdevice_many.part.0+0x17/0x90 net/core/dev.c:9906
    [<00000000c0997ee2>] unregister_netdevice_many+0x24/0x30 net/core/dev.c:9905
    [<0000000042445981>] rtnl_delete_link+0x63/0xa0 net/core/rtnetlink.c:2926


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/12/02 10:49 upstream ceb307474506 f879db37 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.