also affects kernel 4.9. 1768 /* 1769 * allocate dram shared table, it is an aligned memory 1770 * block of ICT_SIZE. 1771 * also reset all data related to ICT table interrupt. 1772 */ 1773 int iwl_pcie_alloc_ict(struct iwl_trans *trans) 1774 { 1775 struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); 1776 1777 trans_pcie->ict_tbl = 1778 dma_zalloc_coherent(trans->dev, ICT_SIZE, 1779 &trans_pcie->ict_tbl_dma, 1780 GFP_KERNEL); 1781 if (!trans_pcie->ict_tbl) 1782 return -ENOMEM; 1783 1784 /* just an API sanity check ... it is guaranteed to be aligned */ 1785 if (WARN_ON(trans_pcie->ict_tbl_dma & (ICT_SIZE - 1))) { 1786 iwl_pcie_free_ict(trans); 1787 return -EINVAL; 1788 } 1789 1790 return 0; 1791 }
the bug appears at: 1784 /* just an API sanity check ... it is guaranteed to be aligned */ so in fact it does NOT appear to be "guaranteed to be aligned". the assumption may be wrong some other debug / error data: [ 3564.850843] iwlwifi: unknown parameter 'mac80211' ignored ... [ 3574.279039] thermal thermal_zone2: failed to read out thermal zone (-5) ... [ 3578.745673] iwlwifi 0000:03:00.0: Microcode SW error detected. Restarting 0x2000000. ... [ 3578.746307] 0000000000000000 ffffffff8b928b84 ffff8d4e937a0018 ffffa88b070cf400 [ 3578.746309] ffffffffc0ad296d ffff8d4e00000000 ffff8d4e92c570c0 ffffffff8b6b8ca0 [ 3578.746310] ffffa88b070cf390 ffffa88b070cf390 00000000c3fd1710 ffffa88b070cf400 [ 3578.746312] Call Trace: [ 3578.746315] [<ffffffff8b928b84>] ? dump_stack+0x5c/0x78 [ 3578.746320] [<ffffffffc0ad296d>] ? iwl_trans_pcie_send_hcmd+0x3cd/0x4e0 [iwlwifi] [ 3578.746322] [<ffffffff8b6b8ca0>] ? prepare_to_wait_event+0xf0/0xf0 [ 3578.746327] [<ffffffffc0f4d783>] ? iwl_mvm_send_cmd+0x23/0x80 [iwlmvm] [ 3578.746330] [<ffffffffc0f4d82f>] ? iwl_mvm_send_cmd_pdu+0x4f/0x70 [iwlmvm] [ 3578.746332] [<ffffffffc0f412e4>] ? iwl_send_paging_cmd.isra.16+0xf4/0x120 [iwlmvm] [ 3578.746334] [<ffffffffc0f41bd1>] ? iwl_mvm_load_ucode_wait_alive+0x641/0x7a0 [iwlmvm] [ 3578.746335] [<ffffffffc0f41000>] ? 0xffffffffc0f41000 [ 3578.746338] [<ffffffffc0ad79d2>] ? iwl_trans_pcie_start_hw+0xf2/0x2d0 [iwlwifi] [ 3578.746340] [<ffffffffc0f4214b>] ? iwl_mvm_up+0x12b/0x5f0 [iwlmvm] [ 3578.746342] [<ffffffff8badd2e2>] ? skb_dequeue+0x52/0x60 [ 3578.746344] [<ffffffff8bbe588f>] ? wireless_nlevent_flush+0x4f/0x90 [ 3578.746359] [<ffffffffc0f47ba7>] ? __iwl_mvm_mac_start+0x207/0x310 [iwlmvm] [ 3578.746361] [<ffffffff8b6b1f56>] ? update_sd_lb_stats+0xe6/0x4b0 [ 3578.746363] [<ffffffffc0f47cf6>] ? iwl_mvm_mac_start+0x46/0x110 [iwlmvm] [ 3578.746374] [<ffffffffc0e7366a>] ? drv_start+0x3a/0xf0 [mac80211] [ 3578.746381] [<ffffffffc0e88805>] ? ieee80211_do_open+0x295/0x980 [mac80211] [ 3578.746389] [<ffffffffc0e86f5a>] ? ieee80211_check_concurrent_iface+0x11a/0x1e0 [mac80211] [ 3578.746391] [<ffffffff8baf7302>] ? __dev_open+0xc2/0x140 [ 3578.746393] [<ffffffff8baf75f6>] ? __dev_change_flags+0x96/0x150 [ 3578.746394] [<ffffffff8baf76d3>] ? dev_change_flags+0x23/0x60 [ 3578.746395] [<ffffffff8bb05cfe>] ? do_setlink+0x30e/0xd20 [ 3578.746397] [<ffffffff8b956058>] ? __nla_reserve+0x38/0x50 [ 3578.746398] [<ffffffff8b95617c>] ? __nla_put+0xc/0x20 [ 3578.746399] [<ffffffff8bba4986>] ? inet6_fill_ifla6_attrs+0x416/0x430 [ 3578.746401] [<ffffffff8bba49b6>] ? inet6_fill_link_af+0x16/0x30 [ 3578.746402] [<ffffffff8bb08f12>] ? rtnl_fill_ifinfo+0xac2/0xf50 [ 3578.746403] [<ffffffff8bb0a636>] ? rtnl_newlink+0x5c6/0x870 [ 3578.746404] [<ffffffff8bb27e58>] ? __netlink_sendskb+0x38/0x60 [ 3578.746406] [<ffffffff8bbb6545>] ? fib6_clean_node+0x85/0x170 [ 3578.746408] [<ffffffff8b8a20e1>] ? security_capable+0x41/0x60 [ 3578.746409] [<ffffffff8bb0a9c1>] ? rtnetlink_rcv_msg+0xe1/0x220 [ 3578.746410] [<ffffffff8bb0a8e0>] ? rtnl_newlink+0x870/0x870 [ 3578.746412] [<ffffffff8bb2ac01>] ? netlink_rcv_skb+0xa1/0xc0 [ 3578.746413] [<ffffffff8bb053d4>] ? rtnetlink_rcv+0x24/0x30 [ 3578.746414] [<ffffffff8bb2a5d4>] ? netlink_unicast+0x184/0x230 [ 3578.746415] [<ffffffff8bb2a978>] ? netlink_sendmsg+0x2f8/0x3b0 [ 3578.746416] [<ffffffff8bad6880>] ? sock_sendmsg+0x30/0x40 [ 3578.746417] [<ffffffff8bad72f2>] ? ___sys_sendmsg+0x2c2/0x2d0 [ 3578.746419] [<ffffffff8b67f15d>] ? proc_get_long.constprop.13+0x11d/0x1b0 [ 3578.746420] [<ffffffff8b67f66d>] ? __do_proc_dointvec+0x33d/0x400 [ 3578.746421] [<ffffffff8b67eb90>] ? do_proc_douintvec_conv+0x30/0x30 [ 3578.746422] [<ffffffff8b67f66d>] ? __do_proc_dointvec+0x33d/0x400 [ 3578.746424] [<ffffffff8b93779a>] ? lockref_put_or_lock+0x5a/0x80 [ 3578.746425] [<ffffffff8b81ab45>] ? dput+0x175/0x250 [ 3578.746426] [<ffffffff8bad7bc1>] ? __sys_sendmsg+0x51/0x90 [ 3578.746428] [<ffffffff8bbf9c3b>] ? system_call_fast_compare_end+0xc/0x9b ... [ 3579.369654] WARNING: CPU: 5 PID: 6215 at /build/linux-fgnWKv/linux-4.9.2/drivers/net/wireless/intel/iwlwifi/pcie/rx.c:1784 iwl_pcie_alloc_ict+0xde/0x100 [iwlwifi]