)]}'
{
  "commit": "0de0add10e587effa880c741c9413c874f16be91",
  "tree": "b90356c3c5203bb30b97a6ebb42c014027225cf0",
  "parents": [
    "055db6957e4735b16cd2fa94a5bbfb754c9b8023"
  ],
  "author": {
    "name": "Kristian Evensen",
    "email": "kristian.evensen@gmail.com",
    "time": "Tue Nov 07 13:47:56 2017 +0100"
  },
  "committer": {
    "name": "David S. Miller",
    "email": "davem@davemloft.net",
    "time": "Wed Nov 08 16:10:30 2017 +0900"
  },
  "message": "qmi_wwan: Add missing skb_reset_mac_header-call\n\nWhen we receive a packet on a QMI device in raw IP mode, we should call\nskb_reset_mac_header() to ensure that skb-\u003emac_header contains a valid\noffset in the packet. While it shouldn\u0027t really matter, the packets have\nno MAC header and the interface is configured as-such, it seems certain\nparts of the network stack expects a \"good\" value in skb-\u003emac_header.\n\nWithout the skb_reset_mac_header() call added in this patch, for example\nshaping traffic (using tc) triggers the following oops on the first\nreceived packet:\n\n[  303.642957] skbuff: skb_under_panic: text:8f137918 len:177 put:67 head:8e4b0f00 data:8e4b0eff tail:0x8e4b0fb0 end:0x8e4b1520 dev:wwan0\n[  303.655045] Kernel bug detected[#1]:\n[  303.658622] CPU: 1 PID: 1002 Comm: logd Not tainted 4.9.58 #0\n[  303.664339] task: 8fdf05e0 task.stack: 8f15c000\n[  303.668844] $ 0   : 00000000 00000001 0000007a 00000000\n[  303.674062] $ 4   : 8149a2fc 8149a2fc 8149ce20 00000000\n[  303.679284] $ 8   : 00000030 3878303a 31623465 20303235\n[  303.684510] $12   : ded731e3 2626a277 00000000 03bd0000\n[  303.689747] $16   : 8ef62b40 00000043 8f137918 804db5fc\n[  303.694978] $20   : 00000001 00000004 8fc13800 00000003\n[  303.700215] $24   : 00000001 8024ab10\n[  303.705442] $28   : 8f15c000 8fc19cf0 00000043 802cc920\n[  303.710664] Hi    : 00000000\n[  303.713533] Lo    : 74e58000\n[  303.716436] epc   : 802cc920 skb_panic+0x58/0x5c\n[  303.721046] ra    : 802cc920 skb_panic+0x58/0x5c\n[  303.725639] Status: 11007c03 KERNEL EXL IE\n[  303.729823] Cause : 50800024 (ExcCode 09)\n[  303.733817] PrId  : 0001992f (MIPS 1004Kc)\n[  303.737892] Modules linked in: rt2800pci rt2800mmio rt2800lib qcserial ppp_async option usb_wwan rt2x00pci rt2x00mmio rt2x00lib rndis_host qmi_wwan ppp_generic nf_nat_pptp nf_conntrack_pptp nf_conntrack_ipv6 mt76x2i\nProcess logd (pid: 1002, threadinfo\u003d8f15c000, task\u003d8fdf05e0, tls\u003d77b3eee4)\n[  303.962509] Stack : 00000000 80408990 8f137918 000000b1 00000043 8e4b0f00 8e4b0eff 8e4b0fb0\n[  303.970871]         8e4b1520 8fec1800 00000043 802cd2a4 6e000045 00000043 00000000 8ef62000\n[  303.979219]         8eef5d00 8ef62b40 8fea7300 8f137918 00000000 00000000 0002bb01 793e5664\n[  303.987568]         8ef08884 00000001 8fea7300 00000002 8fc19e80 8eef5d00 00000006 00000003\n[  303.995934]         00000000 8030ba90 00000003 77ab3fd0 8149dc80 8004d1bc 8f15c000 8f383700\n[  304.004324]         ...\n[  304.006767] Call Trace:\n[  304.009241] [\u003c802cc920\u003e] skb_panic+0x58/0x5c\n[  304.013504] [\u003c802cd2a4\u003e] skb_push+0x78/0x90\n[  304.017783] [\u003c8f137918\u003e] 0x8f137918\n[  304.021269] Code: 00602825  0c02a3b4  24842888 \u003c000c000d\u003e 8c870060  8c8200a0  0007382b  00070336  8c88005c\n[  304.031034]\n[  304.032805] ---[ end trace b778c482b3f0bda9 ]---\n[  304.041384] Kernel panic - not syncing: Fatal exception in interrupt\n[  304.051975] Rebooting in 3 seconds..\n\nWhile the oops is for a 4.9-kernel, I was able to trigger the same oops with\nnet-next as of yesterday.\n\nFixes: 32f7adf633b9 (\"net: qmi_wwan: support \"raw IP\" mode\")\nSigned-off-by: Kristian Evensen \u003ckristian.evensen@gmail.com\u003e\nAcked-by: Bjørn Mork \u003cbjorn@mork.no\u003e\nSigned-off-by: David S. Miller \u003cdavem@davemloft.net\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a4f229edcceb8cbd545603b426d8d9568577d36b",
      "old_mode": 33188,
      "old_path": "drivers/net/usb/qmi_wwan.c",
      "new_id": "8d4a6f7cba610a37779c3e9f7d341dbd9795c8fc",
      "new_mode": 33188,
      "new_path": "drivers/net/usb/qmi_wwan.c"
    }
  ]
}
