{"action":"created","issue":{"url":"https://api.github.com/repos/lkl/linux/issues/117","repository_url":"https://api.github.com/repos/lkl/linux","labels_url":"https://api.github.com/repos/lkl/linux/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/lkl/linux/issues/117/comments","events_url":"https://api.github.com/repos/lkl/linux/issues/117/events","html_url":"https://github.com/lkl/linux/issues/117","id":138816390,"number":117,"title":"lkl_syscall() passes corrupted parameter to sys_xxx()","user":{"login":"ngkaho1234","id":11871016,"avatar_url":"https://avatars.githubusercontent.com/u/11871016?v=3","gravatar_id":"","url":"https://api.github.com/users/ngkaho1234","html_url":"https://github.com/ngkaho1234","followers_url":"https://api.github.com/users/ngkaho1234/followers","following_url":"https://api.github.com/users/ngkaho1234/following{/other_user}","gists_url":"https://api.github.com/users/ngkaho1234/gists{/gist_id}","starred_url":"https://api.github.com/users/ngkaho1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngkaho1234/subscriptions","organizations_url":"https://api.github.com/users/ngkaho1234/orgs","repos_url":"https://api.github.com/users/ngkaho1234/repos","events_url":"https://api.github.com/users/ngkaho1234/events{/privacy}","received_events_url":"https://api.github.com/users/ngkaho1234/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-06T17:51:42Z","updated_at":"2016-03-08T18:54:28Z","closed_at":"2016-03-08T18:45:15Z","body":"On non-64bit platforms, passing 64bit parameters will lead to parameter corruptions.\r\n\t\t\t\t\t\t         long params[6] = { __MAP(x, __SC_LONG, __VA_ARGS__) };  (That code on 32bit platform will likely pass garbage to the corresponding syscall routine that ingest long long parameter, while the higher part of the value is very likely to be dropped.)\r\n\r\nI managed to solve the problem <https://github.com/ngkaho1234/linux/commit/7b655e497ada935d23a8ce8508e91b3ae1919095> , albeit the implementation doesn't look neat and tidy."},"comment":{"url":"https://api.github.com/repos/lkl/linux/issues/comments/193913928","html_url":"https://github.com/lkl/linux/issues/117#issuecomment-193913928","issue_url":"https://api.github.com/repos/lkl/linux/issues/117","id":193913928,"user":{"login":"opurdila","id":16593486,"avatar_url":"https://avatars.githubusercontent.com/u/16593486?v=3","gravatar_id":"","url":"https://api.github.com/users/opurdila","html_url":"https://github.com/opurdila","followers_url":"https://api.github.com/users/opurdila/followers","following_url":"https://api.github.com/users/opurdila/following{/other_user}","gists_url":"https://api.github.com/users/opurdila/gists{/gist_id}","starred_url":"https://api.github.com/users/opurdila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opurdila/subscriptions","organizations_url":"https://api.github.com/users/opurdila/orgs","repos_url":"https://api.github.com/users/opurdila/repos","events_url":"https://api.github.com/users/opurdila/events{/privacy}","received_events_url":"https://api.github.com/users/opurdila/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T18:54:28Z","updated_at":"2016-03-08T18:54:28Z","body":"@ngkaho1234 It looks very promising. Just finished reviewing the full patch and left some comments. Thank you for working on this !"}}