{"action":"created","issue":{"url":"https://api.github.com/repos/stuartwells4/klem/issues/1","repository_url":"https://api.github.com/repos/stuartwells4/klem","labels_url":"https://api.github.com/repos/stuartwells4/klem/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/stuartwells4/klem/issues/1/comments","events_url":"https://api.github.com/repos/stuartwells4/klem/issues/1/events","html_url":"https://github.com/stuartwells4/klem/issues/1","id":190586785,"number":1,"title":"kernel panic/hang when testing driver port to Linux kernel 4.4","user":{"login":"capablegh","id":16493444,"avatar_url":"https://avatars.githubusercontent.com/u/16493444?v=3","gravatar_id":"","url":"https://api.github.com/users/capablegh","html_url":"https://github.com/capablegh","followers_url":"https://api.github.com/users/capablegh/followers","following_url":"https://api.github.com/users/capablegh/following{/other_user}","gists_url":"https://api.github.com/users/capablegh/gists{/gist_id}","starred_url":"https://api.github.com/users/capablegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capablegh/subscriptions","organizations_url":"https://api.github.com/users/capablegh/orgs","repos_url":"https://api.github.com/users/capablegh/repos","events_url":"https://api.github.com/users/capablegh/events{/privacy}","received_events_url":"https://api.github.com/users/capablegh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-20T21:58:21Z","updated_at":"2016-11-20T22:02:23Z","closed_at":null,"body":"Hello.\r\n\r\nBuilding the driver sources for/on Ubuntu 16.04 fails, for some changes in Linux kernel between 4.1 and 4.2. The change to compile it is as below. At face value the change appears to be a trivial change, but the system hangs (or kernel panics) when attempting to \"start\" the driver. Of kernel/module panic trace has \"klemNetConnect\" at the bottom. \r\n\r\nWhat may be the change is needed to make this work? What information can I gather more info to identify/isolate the problem?\r\n\r\nDriver change diff I made is below:\r\n```\r\n828a829,832\r\n> #define LINUX44_TEST_CHANGE\r\n> #define LINUX44_TEST_CHANGE\r\n>     *pTotalFlags &= (/* FIF_PROMISC_IN_BSS | */ FIF_ALLMULTI);\r\n> #else\r\n829a834\r\n> #endif\r\n1422a1428,1432\r\n> #ifdef LINUX44_TEST_CHANGE\r\n>     ieee80211_hw_set(pMacData->pHW, MFP_CAPABLE);\r\n>     ieee80211_hw_set(pMacData->pHW, SIGNAL_DBM);\r\n>     ieee80211_hw_set(pMacData->pHW, AMPDU_AGGREGATION);\r\n> #else\r\n1430a1441\r\n> #endif\r\n```\r\n\r\nThe commands that seem to execute ok are:\r\n```\r\nmodprobe mac80211\r\nmodprobe cfg80211\r\ninsmod klem.ko\r\necho “device = eth0” > /proc/klem\r\n```\r\n\r\nThe start command that hangs the system is:\r\n`echo “command = start” > /proc/klem`\r\n\r\n\r\nThe dmesg output is:\r\n\r\n> [ 1121.794988] cfg80211: World regulatory domain updated:\r\n> [ 1121.794992] cfg80211:  DFS Master region: unset\r\n> [ 1121.794993] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)\r\n> [ 1121.794995] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)\r\n> [ 1121.794996] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)\r\n> [ 1121.794997] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)\r\n> [ 1121.794999] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)\r\n> [ 1121.795000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)\r\n> [ 1121.795002] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)\r\n> [ 1121.795003] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)\r\n> [ 1121.795004] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)\r\n> [ 1121.806393] klem: module verification failed: signature and/or required key missing - tainting kernel\r\n> [ 1121.806971] klem::klemDataInit malloc internal data at ffff8800d9050000\r\n> [ 1121.807021] klem::privKLEMInit Module sucessfully installed\r\n\r\nContentes of /proc/klem after \"device = eth0\" are:\r\n\r\n> cat /proc/klem\r\n> KLEM Proc Interface\r\n> \r\n> Version:              1\r\n> raw-device:        eth0\r\n> raw-socket:           null\r\n> netlink:              null\r\n> device-id:            0\r\n> device-id:            lemu\r\n> filter:\r\n"},"comment":{"url":"https://api.github.com/repos/stuartwells4/klem/issues/comments/261809373","html_url":"https://github.com/stuartwells4/klem/issues/1#issuecomment-261809373","issue_url":"https://api.github.com/repos/stuartwells4/klem/issues/1","id":261809373,"user":{"login":"capablegh","id":16493444,"avatar_url":"https://avatars.githubusercontent.com/u/16493444?v=3","gravatar_id":"","url":"https://api.github.com/users/capablegh","html_url":"https://github.com/capablegh","followers_url":"https://api.github.com/users/capablegh/followers","following_url":"https://api.github.com/users/capablegh/following{/other_user}","gists_url":"https://api.github.com/users/capablegh/gists{/gist_id}","starred_url":"https://api.github.com/users/capablegh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capablegh/subscriptions","organizations_url":"https://api.github.com/users/capablegh/orgs","repos_url":"https://api.github.com/users/capablegh/repos","events_url":"https://api.github.com/users/capablegh/events{/privacy}","received_events_url":"https://api.github.com/users/capablegh/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T22:02:23Z","updated_at":"2016-11-20T22:02:23Z","body":"Screenshot of one of the panics is below is below. There is not response to console keyboard input, and resetting the hardware is the only way to restart the system.\r\n\r\n![klem-panic](https://cloud.githubusercontent.com/assets/16493444/20466516/dadd0194-af42-11e6-9a9d-5ea61f54298e.png)\r\n"}}
{"actor":{"display_login":"capablegh"}}