)]}'
{
  "commit": "fda2ec62cf1aa7cbee52289dc8059cd3662795da",
  "tree": "5d21677c838744ef3660dabea1eefcd8f870143a",
  "parents": [
    "69138b34a7248d2396ab85c8652e20c0c39beaba"
  ],
  "author": {
    "name": "Taehee Yoo",
    "email": "ap420073@gmail.com",
    "time": "Sat Aug 01 07:07:50 2020 +0000"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@davemloft.net",
    "time": "Sat Aug 01 11:49:18 2020 -0700"
  },
  "message": "vxlan: fix memleak of fdb\n\nWhen vxlan interface is deleted, all fdbs are deleted by vxlan_flush().\nvxlan_flush() flushes fdbs but it doesn\u0027t delete fdb, which contains\nall-zeros-mac because it is deleted by vxlan_uninit().\nBut vxlan_uninit() deletes only the fdb, which contains both all-zeros-mac\nand default vni.\nSo, the fdb, which contains both all-zeros-mac and non-default vni\nwill not be deleted.\n\nTest commands:\n    ip link add vxlan0 type vxlan dstport 4789 external\n    ip link set vxlan0 up\n    bridge fdb add to 00:00:00:00:00:00 dst 172.0.0.1 dev vxlan0 via lo \\\n\t    src_vni 10000 self permanent\n    ip link del vxlan0\n\nkmemleak reports as follows:\nunreferenced object 0xffff9486b25ced88 (size 96):\n  comm \"bridge\", pid 2151, jiffies 4294701712 (age 35506.901s)\n  hex dump (first 32 bytes):\n    02 00 00 00 ac 00 00 01 40 00 09 b1 86 94 ff ff  ........@.......\n    46 02 00 00 00 00 00 00 a7 03 00 00 12 b5 6a 6b  F.............jk\n  backtrace:\n    [\u003c00000000c10cf651\u003e] vxlan_fdb_append.part.51+0x3c/0xf0 [vxlan]\n    [\u003c000000006b31a8d9\u003e] vxlan_fdb_create+0x184/0x1a0 [vxlan]\n    [\u003c0000000049399045\u003e] vxlan_fdb_update+0x12f/0x220 [vxlan]\n    [\u003c0000000090b1ef00\u003e] vxlan_fdb_add+0x12a/0x1b0 [vxlan]\n    [\u003c0000000056633c2c\u003e] rtnl_fdb_add+0x187/0x270\n    [\u003c00000000dd5dfb6b\u003e] rtnetlink_rcv_msg+0x264/0x490\n    [\u003c00000000fc44dd54\u003e] netlink_rcv_skb+0x4a/0x110\n    [\u003c00000000dff433e7\u003e] netlink_unicast+0x18e/0x250\n    [\u003c00000000b87fb421\u003e] netlink_sendmsg+0x2e9/0x400\n    [\u003c000000002ed55153\u003e] ____sys_sendmsg+0x237/0x260\n    [\u003c00000000faa51c66\u003e] ___sys_sendmsg+0x88/0xd0\n    [\u003c000000006c3982f1\u003e] __sys_sendmsg+0x4e/0x80\n    [\u003c00000000a8f875d2\u003e] do_syscall_64+0x56/0xe0\n    [\u003c000000003610eefa\u003e] entry_SYSCALL_64_after_hwframe+0x44/0xa9\nunreferenced object 0xffff9486b1c40080 (size 128):\n  comm \"bridge\", pid 2157, jiffies 4294701754 (age 35506.866s)\n  hex dump (first 32 bytes):\n    00 00 00 00 00 00 00 00 f8 dc 42 b2 86 94 ff ff  ..........B.....\n    6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b  kkkkkkkkkkkkkkkk\n  backtrace:\n    [\u003c00000000a2981b60\u003e] vxlan_fdb_create+0x67/0x1a0 [vxlan]\n    [\u003c0000000049399045\u003e] vxlan_fdb_update+0x12f/0x220 [vxlan]\n    [\u003c0000000090b1ef00\u003e] vxlan_fdb_add+0x12a/0x1b0 [vxlan]\n    [\u003c0000000056633c2c\u003e] rtnl_fdb_add+0x187/0x270\n    [\u003c00000000dd5dfb6b\u003e] rtnetlink_rcv_msg+0x264/0x490\n    [\u003c00000000fc44dd54\u003e] netlink_rcv_skb+0x4a/0x110\n    [\u003c00000000dff433e7\u003e] netlink_unicast+0x18e/0x250\n    [\u003c00000000b87fb421\u003e] netlink_sendmsg+0x2e9/0x400\n    [\u003c000000002ed55153\u003e] ____sys_sendmsg+0x237/0x260\n    [\u003c00000000faa51c66\u003e] ___sys_sendmsg+0x88/0xd0\n    [\u003c000000006c3982f1\u003e] __sys_sendmsg+0x4e/0x80\n    [\u003c00000000a8f875d2\u003e] do_syscall_64+0x56/0xe0\n    [\u003c000000003610eefa\u003e] entry_SYSCALL_64_after_hwframe+0x44/0xa9\n\nFixes: 3ad7a4b141eb (\"vxlan: support fdb and learning in COLLECT_METADATA mode\")\nSigned-off-by: Taehee Yoo \u003cap420073@gmail.com\u003e\nAcked-by: Roopa Prabhu \u003croopa@cumulusnetworks.com\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5efe1e28f270f2c6f36eb965534951f39505fc7f",
      "old_mode": 33188,
      "old_path": "drivers/net/vxlan.c",
      "new_id": "a7c3939264b005a60d4b6aeef33b617d0cf305e1",
      "new_mode": 33188,
      "new_path": "drivers/net/vxlan.c"
    }
  ]
}
