Pi-Hsun Shih
6989310f5d
wireless: Use offsetof instead of custom macro.
...
Use offsetof to calculate offset of a field to take advantage of
compiler built-in version when possible, and avoid UBSAN warning when
compiling with Clang:
==================================================================
UBSAN: Undefined behaviour in net/wireless/wext-core.c:525:14
member access within null pointer of type 'struct iw_point'
CPU: 3 PID: 165 Comm: kworker/u16:3 Tainted: G S W 4.19.23 #43
Workqueue: cfg80211 __cfg80211_scan_done [cfg80211]
Call trace:
dump_backtrace+0x0/0x194
show_stack+0x20/0x2c
__dump_stack+0x20/0x28
dump_stack+0x70/0x94
ubsan_epilogue+0x14/0x44
ubsan_type_mismatch_common+0xf4/0xfc
__ubsan_handle_type_mismatch_v1+0x34/0x54
wireless_send_event+0x3cc/0x470
___cfg80211_scan_done+0x13c/0x220 [cfg80211]
__cfg80211_scan_done+0x28/0x34 [cfg80211]
process_one_work+0x170/0x35c
worker_thread+0x254/0x380
kthread+0x13c/0x158
ret_from_fork+0x10/0x18
===================================================================
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org >
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com >
Link: https://lore.kernel.org/r/20191204081307.138765-1-pihsun@chromium.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com >
2019-12-13 10:45:35 +01:00
..
2019-11-05 12:44:34 +01:00
2019-06-05 10:55:30 -04:00
2019-09-07 17:44:25 +02:00
2019-11-13 10:42:07 +01:00
2019-10-04 14:25:17 -07:00
2019-10-04 14:25:17 -07:00
2019-10-04 14:25:17 -07:00
2019-10-04 14:25:17 -07:00
2019-09-10 09:26:33 -04:00
2019-09-13 13:10:06 -07:00
2019-06-24 19:23:46 +02:00
2019-11-21 11:44:06 -08:00
2019-08-28 13:04:59 +03:00
2019-06-26 20:14:13 -04:00
2019-11-23 09:56:02 -08:00
2019-06-27 19:25:05 +02:00
2019-11-07 06:31:50 -07:00
2019-11-18 11:41:59 +01:00
2019-07-25 11:05:10 +02:00
2019-09-19 14:22:44 +02:00
2019-11-18 17:51:49 +01:00
2019-11-18 17:51:49 +01:00
2019-11-05 12:44:34 +01:00
2019-10-07 07:55:17 -03:00
2019-10-01 17:19:41 -03:00
2019-10-09 22:31:14 -04:00
2019-07-16 19:23:23 -07:00
2019-09-25 17:51:39 -07:00
2019-08-02 14:44:02 +10:00
2019-11-15 14:38:29 +01:00
2019-10-28 13:41:01 -07:00
2019-11-16 21:51:42 -08:00
2019-09-16 10:18:01 -04:00
2019-06-14 15:00:51 +05:30
2019-11-15 14:38:29 +01:00
2019-11-15 14:38:29 +01:00
2019-12-12 17:07:05 -08:00
2019-10-25 14:28:10 -06:00
2019-08-05 17:56:46 +02:00
2019-09-21 14:26:33 -07:00
2019-11-06 12:34:36 -08:00
2019-08-12 19:33:50 -07:00
2019-10-23 14:26:37 +02:00
2019-11-05 18:20:55 -08:00
2019-11-12 16:30:31 +01:00
2019-09-04 12:43:54 +02:00
2019-07-31 19:13:40 -04:00
2019-06-05 13:04:29 -07:00
2019-12-12 17:07:05 -08:00
2019-06-29 11:06:17 -07:00
2019-08-31 01:08:26 +02:00
2019-10-01 14:47:19 -07:00
2019-08-31 23:44:28 -07:00
2019-12-07 18:33:01 -08:00
2019-12-03 07:04:32 -07:00
2019-10-15 13:34:43 +02:00
2019-07-04 02:29:49 +02:00
2019-07-25 11:05:10 +02:00
2019-07-25 11:05:10 +02:00
2019-08-22 17:24:51 +02:00
2019-12-04 19:44:14 -08:00
2019-09-08 15:37:04 +02:00
2019-07-10 18:43:43 -07:00
2019-08-07 10:21:38 -05:00
2019-07-02 18:56:01 +02:00
2019-11-28 17:02:31 +11:00
2019-11-06 21:14:22 -08:00
2019-11-13 16:58:01 +11:00
2019-08-19 13:04:45 -07:00
2019-06-25 22:14:11 +02:00
2019-06-21 16:45:38 -04:00
2019-06-06 13:48:51 -07:00
2019-11-15 14:38:29 +01:00
2019-08-23 14:58:07 -07:00
2019-05-28 21:37:30 -07:00
2019-07-12 11:05:40 -07:00
2019-11-08 11:19:19 +01:00
2019-11-06 06:17:38 +09:00
2019-11-14 17:29:46 -08:00
2019-11-28 08:54:36 -06:00
2019-11-13 11:06:14 +01:00
2019-10-02 20:32:27 -06:00
2019-11-21 11:44:06 -08:00
2019-11-20 12:31:45 -08:00
2019-07-30 20:34:34 +02:00
2019-12-01 14:00:59 -08:00
2019-10-23 17:23:47 +02:00
2019-09-16 18:47:53 -07:00
2019-10-26 02:09:58 +11:00
2019-11-15 12:48:32 -08:00
2019-07-16 19:23:24 -07:00
2019-08-24 16:55:25 -07:00
2019-11-15 14:38:29 +01:00
2019-10-01 14:47:19 -07:00
2019-07-25 11:05:10 +02:00
2019-12-04 19:44:12 -08:00
2019-11-25 18:36:49 -08:00
2019-11-08 14:18:32 -08:00
2019-10-28 12:29:46 -07:00
2019-11-04 07:11:31 -07:00
2019-11-15 14:38:29 +01:00
2019-10-16 06:11:24 -07:00
2019-07-22 07:35:24 +03:00
2019-11-15 14:38:29 +01:00
2019-10-05 16:29:00 -07:00
2019-08-03 11:02:46 -07:00
2019-11-13 12:15:34 -08:00
2019-10-25 19:25:37 -07:00
2019-11-15 14:38:29 +01:00
2019-11-15 14:38:29 +01:00
2019-10-04 14:25:17 -07:00
2019-11-08 14:01:59 -08:00
2019-11-08 14:01:59 -08:00
2019-08-31 23:44:28 -07:00
2019-05-22 10:36:35 -07:00
2019-08-14 16:52:13 +02:00
2019-11-15 14:38:29 +01:00
2019-10-10 11:37:26 -03:00
2019-07-25 11:05:10 +02:00
2019-07-25 11:05:10 +02:00
2019-08-23 11:26:24 -06:00
2019-11-08 07:42:25 +01:00
2019-09-18 20:17:50 +02:00
2019-09-18 20:17:50 +02:00
2019-07-22 11:52:27 -04:00
2019-07-25 11:05:10 +02:00
2019-10-04 14:25:17 -07:00
2019-12-11 15:01:23 -08:00
2019-07-25 11:05:10 +02:00
2019-08-01 21:49:46 +02:00
2019-12-08 17:48:42 -08:00
2019-12-13 10:45:35 +01:00
2019-07-25 11:05:10 +02:00