Files
kernel_amazon_mt8127-common/fs
Andrea Arcangeli 14468afe50 fs/exec: fix use after free in execve
"file" can be already freed if bprm->file is NULL after
search_binary_handler() return. binfmt_script will do exactly that for
example. If the VM reuses the file after fput run(), this will result in
a use ater free.

So obtain d_is_su before search_binary_handler() runs.

This should explain this crash:

[25333.009554] Unable to handle kernel NULL pointer dereference at virtual address 00000185
[..]
[25333.009918] [2:             am:21861] PC is at do_execve+0x354/0x474

Change-Id: I2a8a814d1c0aa75625be83cb30432cf13f1a0681
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2018-05-03 18:49:05 +02:00
..
2013-05-07 20:16:25 -07:00
2018-03-21 23:07:40 +01:00
2018-03-21 23:07:35 +01:00
2018-03-21 22:42:30 +01:00
2018-03-21 22:33:47 +01:00
2018-03-21 23:07:40 +01:00
2018-03-21 23:07:35 +01:00
2013-03-12 18:55:21 -07:00
2018-03-21 23:07:40 +01:00
2018-03-21 23:07:35 +01:00
2013-04-29 15:41:42 -04:00
2018-03-21 22:52:38 +01:00
2018-03-21 23:06:23 +01:00
2013-03-23 14:15:31 -07:00
2018-03-21 23:07:35 +01:00
2018-03-21 22:58:21 +01:00
2013-05-07 20:16:25 -07:00
2018-03-21 23:07:35 +01:00
2018-03-21 23:00:38 +01:00
2016-02-19 14:22:39 -08:00
2018-03-21 23:06:23 +01:00
2018-03-21 23:07:35 +01:00
2018-03-21 22:51:37 +01:00
2018-03-21 22:51:04 +01:00
2013-04-29 15:40:23 -04:00
2013-10-05 07:13:09 -07:00
2018-03-21 23:06:23 +01:00
2018-03-21 22:31:34 +01:00
2018-03-13 20:29:02 +01:00
2018-03-13 20:29:02 +01:00
2018-03-13 20:29:02 +01:00
2018-03-21 23:00:38 +01:00
2018-03-21 23:07:40 +01:00
2018-03-13 20:29:02 +01:00
2018-03-13 20:29:02 +01:00
2018-05-03 18:49:05 +02:00
2013-02-22 23:31:31 -05:00
2018-03-21 22:46:32 +01:00
2018-03-13 20:29:02 +01:00
2018-03-13 20:30:12 +01:00
2018-03-21 22:46:36 +01:00
2015-07-03 19:48:08 -07:00
2013-02-22 23:31:31 -05:00
2018-03-21 22:31:40 +01:00
2013-04-17 13:25:09 +01:00
2018-03-21 22:33:51 +01:00
2015-07-03 19:48:08 -07:00
2013-05-31 15:16:33 -04:00
2018-03-21 23:40:56 +01:00
2018-03-13 20:29:02 +01:00
2018-03-21 23:00:38 +01:00
2018-03-21 23:00:38 +01:00
2018-03-13 20:29:02 +01:00