)]}'
{
  "commit": "4e1ccc035e7d9f93d817fda565e0cfdcbc0d6ef8",
  "tree": "c0c7a580c1fd5a11231f2426580eac69a53853d0",
  "parents": [
    "09de09d51b0918418c3e052b7fa90611a36da221"
  ],
  "author": {
    "name": "Florian Westphal",
    "email": "fw@strlen.de",
    "time": "Tue May 17 21:14:11 2022 +0200"
  },
  "committer": {
    "name": "Florian Westphal",
    "email": "fw@strlen.de",
    "time": "Thu May 26 23:02:44 2022 +0200"
  },
  "message": "netfilter: nfnetlink: fix warn in nfnetlink_unbind\n\nsyzbot reports following warn:\nWARNING: CPU: 0 PID: 3600 at net/netfilter/nfnetlink.c:703 nfnetlink_unbind+0x357/0x3b0 net/netfilter/nfnetlink.c:694\n\nThe syzbot generated program does this:\n\nsocket(AF_NETLINK, SOCK_RAW, NETLINK_NETFILTER) \u003d 3\nsetsockopt(3, SOL_NETLINK, NETLINK_DROP_MEMBERSHIP, [1], 4) \u003d 0\n\n... which triggers \u0027WARN_ON_ONCE(nfnlnet-\u003ectnetlink_listeners \u003d\u003d 0)\u0027 check.\n\nInstead of counting, just enable reporting for every bind request\nand check if we still have listeners on unbind.\n\nWhile at it, also add the needed bounds check on nfnl_group2type[]\naccess.\n\nReported-by: \u003csyzbot+4903218f7fba0a2d6226@syzkaller.appspotmail.com\u003e\nReported-by: \u003csyzbot+afd2d80e495f96049571@syzkaller.appspotmail.com\u003e\nFixes: 2794cdb0b97b (\"netfilter: nfnetlink: allow to detect if ctnetlink listeners exist\")\nSigned-off-by: Florian Westphal \u003cfw@strlen.de\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ad3bbe34ca8829aa95a0dba1e08fbbe07539fe6c",
      "old_mode": 33188,
      "old_path": "net/netfilter/nfnetlink.c",
      "new_id": "2f7c477fc9e7041a149d0eab98a1e8a406075f81",
      "new_mode": 33188,
      "new_path": "net/netfilter/nfnetlink.c"
    }
  ]
}
