[Magisk] dra1c:
On my pixel 2 running pie (installed from full system image), magisk (16.7) does not work. Tried both patching the boot and flashing via TWRP. Same result: Stuck in bootloop.

People have reported it working on Pixel 2 XL, but atleast for me this does not stay true with the normal Pixel 2.

Here is the install log from patching a boot.img

- Copying image locally
- Target image: /data/user_de/0/com.topjohnwu.magisk/install/boot.img
- Device platform: arm64-v8a
- Extracting files
Bad system call
Bad system call
Bad system call
- Unpacking boot image
Bad system call
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
KERNEL [15151179]
RAMDISK [8645299]
SECOND [0]
EXTRA [0]
PAGESIZE [4096]
OS_VERSION [9.0.0]
PATCH_LEVEL [2018-08]
NAME []
CMDLINE [androidboot.hardware=walleye androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware loop.max_part=7 raid=noautodetect usbcore.autosuspend=7 androidboot.dtbo_idx=3 buildvariant=user]
CHECKSUM [db2b953cfb86836d1091fe61531207d75a9236da]
DTB [392041]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
- Checking ramdisk status
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
Loading cpio: [ramdisk.cpio]
- Stock boot image detected
- Backing up stock boot image
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
Compressing to [stock_boot_75fb07c9ece4021b625547771652345905cc2157.img.gz]
Bad system call
- Patching ramdisk
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
Loading cpio: [ramdisk.cpio]
Add entry [init] (0750)
Patch with flag KEEPVERITY=[true] KEEPFORCEENCRYPT=[true]
Save SHA1: [75fb07c9ece4021b625547771652345905cc2157] -> [.backup/.sha1]
Record new entry: [acct] -> [.backup/.rmlist]
Record new entry: [bin] -> [.backup/.rmlist]
Record new entry: [bugreports] -> [.backup/.rmlist]
Record new entry: [charger] -> [.backup/.rmlist]
Record new entry: [config] -> [.backup/.rmlist]
Record new entry: [d] -> [.backup/.rmlist]
Record new entry: [data] -> [.backup/.rmlist]
Record new entry: [default.prop] -> [.backup/.rmlist]
Record new entry: [dev] -> [.backup/.rmlist]
Record new entry: [dsp] -> [.backup/.rmlist]
Record new entry: [etc] -> [.backup/.rmlist]
Record new entry: [etc/mke2fs.conf] -> [.backup/.rmlist]
Record new entry: [etc/recovery.fstab] -> [.backup/.rmlist]
Record new entry: [etc/recovery.wipe] -> [.backup/.rmlist]
Record new entry: [etc/update_engine] -> [.backup/.rmlist]
Record new entry: [etc/update_engine/update-payload-key.pub.pem] -> [.backup/.rmlist]
Record new entry: [firmware] -> [.backup/.rmlist]
Record new entry: [init] -> [.backup/.rmlist]
Record new entry: [init.rc] -> [.backup/.rmlist]
Record new entry: [init.recovery.walleye.rc] -> [.backup/.rmlist]
Record new entry: [mnt] -> [.backup/.rmlist]
Record new entry: [odm] -> [.backup/.rmlist]
Record new entry: [odm/app] -> [.backup/.rmlist]
Record new entry: [odm/bin] -> [.backup/.rmlist]
Record new entry: [odm/firmware] -> [.backup/.rmlist]
Record new entry: [odm/framework] -> [.backup/.rmlist]
Record new entry: [odm/lib] -> [.backup/.rmlist]
Record new entry: [odm/lib64] -> [.backup/.rmlist]
Record new entry: [odm/overlay] -> [.backup/.rmlist]
Record new entry: [odm/priv-app] -> [.backup/.rmlist]
Record new entry: [oem] -> [.backup/.rmlist]
Record new entry: [persist] -> [.backup/.rmlist]
Record new entry: [plat_file_contexts] -> [.backup/.rmlist]
Record new entry: [plat_property_contexts] -> [.backup/.rmlist]
Record new entry: [postinstall] -> [.backup/.rmlist]
Record new entry: [proc] -> [.backup/.rmlist]
Record new entry: [product] -> [.backup/.rmlist]
Record new entry: [prop.default] -> [.backup/.rmlist]
Record new entry: [res] -> [.backup/.rmlist]
Record new entry: [res/images] -> [.backup/.rmlist]
Record new entry: [res/images/erasing_text.png] -> [.backup/.rmlist]
Record new entry: [res/images/error_text.png] -> [.backup/.rmlist]
Record new entry: [res/images/font.png] -> [.backup/.rmlist]
Record new entry: [res/images/icon_error.png] -> [.backup/.rmlist]
Record new entry: [res/images/installing_security_text.png] -> [.backup/.rmlist]
Record new entry: [res/images/installing_text.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00000.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00001.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00002.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00003.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00004.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00005.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00006.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00007.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00008.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00009.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00010.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00011.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00012.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00013.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00014.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00015.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00016.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00017.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00018.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00019.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00020.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00021.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00022.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00023.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00024.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00025.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00026.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00027.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00028.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00029.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00030.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00031.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00032.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00033.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00034.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00035.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00036.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00037.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00038.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00039.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00040.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00041.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00042.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00043.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00044.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00045.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00046.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00047.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00048.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00049.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00050.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00051.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00052.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00053.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00054.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00055.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00056.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00057.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00058.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00059.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00060.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00061.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00062.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00063.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00064.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00065.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00066.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00067.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00068.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00069.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00070.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00071.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00072.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00073.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00074.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00075.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00076.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00077.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00078.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00079.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00080.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00081.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00082.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00083.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00084.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00085.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00086.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00087.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00088.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00089.png] -> [.backup/.rmlist]
Record new entry: [res/images/loop00090.png] -> [.backup/.rmlist]
Record new entry: [res/images/no_command_text.png] -> [.backup/.rmlist]
Record new entry: [res/images/progress_empty.png] -> [.backup/.rmlist]
Record new entry: [res/images/progress_fill.png] -> [.backup/.rmlist]
Record new entry: [res/images/stage_empty.png] -> [.backup/.rmlist]
Record new entry: [res/images/stage_fill.png] -> [.backup/.rmlist]
Record new entry: [res/keys] -> [.backup/.rmlist]
Record new entry: [sbin] -> [.backup/.rmlist]
Record new entry: [sbin/adbd] -> [.backup/.rmlist]
Record new entry: [sbin/charger] -> [.backup/.rmlist]
Record new entry: [sbin/e2fsdroid_static] -> [.backup/.rmlist]
Record new entry: [sbin/mke2fs_static] -> [.backup/.rmlist]
Record new entry: [sbin/recovery] -> [.backup/.rmlist]
Record new entry: [sbin/ueventd] -> [.backup/.rmlist]
Record new entry: [sbin/update_engine_sideload] -> [.backup/.rmlist]
Record new entry: [sbin/watchdogd] -> [.backup/.rmlist]
Record new entry: [sdcard] -> [.backup/.rmlist]
Record new entry: [sepolicy] -> [.backup/.rmlist]
Record new entry: [storage] -> [.backup/.rmlist]
Record new entry: [sys] -> [.backup/.rmlist]
Record new entry: [system] -> [.backup/.rmlist]
Record new entry: [system_root] -> [.backup/.rmlist]
Record new entry: [tmp] -> [.backup/.rmlist]
Record new entry: [ueventd.rc] -> [.backup/.rmlist]
Record new entry: [vendor] -> [.backup/.rmlist]
Record new entry: [vendor_file_contexts] -> [.backup/.rmlist]
Record new entry: [vendor_property_contexts] -> [.backup/.rmlist]
Dump cpio: [ramdisk.cpio]
Bad system call
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
Patch @ 0184B06E [736B69705F696E697472616D6673]->[77616E745F696E697472616D6673]
- Repacking boot image
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
Parsing boot image: [/data/user_de/0/com.topjohnwu.magisk/install/boot.img]
KERNEL [15151179]
RAMDISK [8645299]
SECOND [0]
EXTRA [0]
PAGESIZE [4096]
OS_VERSION [9.0.0]
PATCH_LEVEL [2018-08]
NAME []
CMDLINE [androidboot.hardware=walleye androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware loop.max_part=7 raid=noautodetect usbcore.autosuspend=7 androidboot.dtbo_idx=3 buildvariant=user]
CHECKSUM [db2b953cfb86836d1091fe61531207d75a9236da]
DTB [392041]
KERNEL_FMT [lz4]
RAMDISK_FMT [gzip]
Repack to boot image: [new-boot.img]
KERNEL [15149859]
RAMDISK [7962388]
SECOND [0]
EXTRA [0]
PAGESIZE [4096]
OS_VERSION [9.0.0]
PATCH_LEVEL [2018-08]
NAME []
CMDLINE [androidboot.hardware=walleye androidboot.console=ttyMSM0 lpm_levels.sleep_disabled=1 user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 service_locator.enable=1 swiotlb=2048 firmware_class.path=/vendor/firmware loop.max_part=7 raid=noautodetect usbcore.autosuspend=7 androidboot.dtbo_idx=3 buildvariant=user]
CHECKSUM [90e8ece5d0d8e6fcc6365bb27e733f1083f857c8]
MagiskBoot v16.7(1671) (by topjohnwu) - Boot Image Modification Tool
Cleaning up...

****************************
Patched image is placed in
/storage/emulated/0/MagiskManager/patched_boot.img
****************************
- All done!

EDIT: Running MagiskUninstaller and then reinstalling fixed the issue. Now its working