[T-Mobile Samsung Galaxy Note5] eousphoros:
https://blck.io/boot.img.gz dont use this if you want to keep your phone intact.. this is for jovy or other interested devs. Not going to support this.

My repo doesn't have these changes but I doubt it has any affect on the reboots. It was mainly just so I could get the beginning of the crash in last_kmsg

diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index 97292e3..2dfae6d 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -90,13 +90,13 @@ static void dump_mem(const char *lvl, const char *str, unsigned long bottom,
set_fs(fs);
}

-static void dump_backtrace_entry(unsigned long where, unsigned long stack)
-{
-	print_ip_sym(where);
-	if (in_exception_text(where))
-	dump_mem("", "Exception stack", stack,
-	stack + sizeof(struct pt_regs));
-}
+// static void dump_backtrace_entry(unsigned long where, unsigned long stack)
+// {
+//	print_ip_sym(where);
+//	if (in_exception_text(where))
+//	dump_mem("", "Exception stack", stack,
+//	stack + sizeof(struct pt_regs));
+// }

static void dump_instr(const char *lvl, struct pt_regs *regs)
{
@@ -157,16 +157,16 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk)
frame.pc = thread_saved_pc(tsk);
}

-	printk("Call trace:\n");
-	while (1) {
-	unsigned long where = frame.pc;
-	int ret;
+	printk("Call trace: Redacted\n");
+	// while (1) {
+	//	unsigned long where = frame.pc;
+	//	int ret;

-	ret = unwind_frame(&frame);
-	if (ret < 0)
-	break;
-	dump_backtrace_entry(where, frame.sp);
-	}
+	//	ret = unwind_frame(&frame);
+	//	if (ret < 0)
+	//	break;
+	//	dump_backtrace_entry(where, frame.sp);
+	// }
}

void show_stack(struct task_struct *tsk, unsigned long *sp)
diff --git a/drivers/staging/samsung/sec_debug.c b/drivers/staging/samsung/sec_debug.c
index e187daa..e5f8960 100644
--- a/drivers/staging/samsung/sec_debug.c
+++ b/drivers/staging/samsung/sec_debug.c
@@ -337,162 +337,162 @@ static void sec_debug_dump_all_task(void)
#ifndef arch_irq_stat
#define arch_irq_stat() 0
#endif
-#ifdef arch_idle_time
-static cputime64_t get_idle_time(int cpu)
-{
-	cputime64_t idle;
-
-	idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE];
-	if (cpu_online(cpu) && !nr_iowait_cpu(cpu))
-	idle += arch_idle_time(cpu);
-	return idle;
-}
-
-static cputime64_t get_iowait_time(int cpu)
-{
-	cputime64_t iowait;
-
-	iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT];
-	if (cpu_online(cpu) && nr_iowait_cpu(cpu))
-	iowait += arch_idle_time(cpu);
-	return iowait;
-}
-#else
-static u64 get_idle_time(int cpu)
-{
-	u64 idle, idle_time = -1ULL;
-
-	if (cpu_online(cpu))
-	idle_time = get_cpu_idle_time_us(cpu, NULL);
-
-	if (idle_time == -1ULL)
-	/* !NO_HZ or cpu offline so we can rely on cpustat.idle */
-	idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE];
-	else
-	idle = usecs_to_cputime64(idle_time);
-
-	return idle;
-}
-
-static u64 get_iowait_time(int cpu)
-{
-	u64 iowait, iowait_time = -1ULL;
-
-	if (cpu_online(cpu))
-	iowait_time = get_cpu_iowait_time_us(cpu, NULL);
-
-	if (iowait_time == -1ULL)
-	/* !NO_HZ or cpu offline so we can rely on cpustat.iowait */
-	iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT];
-	else
-	iowait = usecs_to_cputime64(iowait_time);
-
-	return iowait;
-}
-#endif
-
-static void sec_debug_dump_cpu_stat(void)
-{
-	int i, j;
-	unsigned long jif;
-	u64 user, nice, system, idle, iowait, irq, softirq, steal;
-	u64 guest, guest_nice;
-	u64 sum = 0;
-	u64 sum_softirq = 0;
-	unsigned int per_softirq_sums[NR_SOFTIRQS] = {0};
-	struct timespec boottime;
-
-	char *softirq_to_name[NR_SOFTIRQS] = { "HI", "TIMER", "NET_TX", "NET_RX", "BLOCK", "BLOCK_IOPOLL", "TASKLET", "SCHED", "HRTIMER", "RCU" };
-
-	user = nice = system = idle = iowait = irq = softirq = steal = 0;
-	guest = guest_nice = 0;
-	getboottime(&boottime);
-	jif = boottime.tv_sec;
-
-	for_each_possible_cpu(i) {
-	user	+= kcpustat_cpu(i).cpustat[CPUTIME_USER];
-	nice	+= kcpustat_cpu(i).cpustat[CPUTIME_NICE];
-	system	+= kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM];
-	idle	+= get_idle_time(i);
-	iowait	+= get_iowait_time(i);
-	irq	+= kcpustat_cpu(i).cpustat[CPUTIME_IRQ];
-	softirq	+= kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ];
-	steal	+= kcpustat_cpu(i).cpustat[CPUTIME_STEAL];
-	guest	+= kcpustat_cpu(i).cpustat[CPUTIME_GUEST];
-	guest_nice += kcpustat_cpu(i).cpustat[CPUTIME_GUEST_NICE];
-	sum	+= kstat_cpu_irqs_sum(i);
-	sum	+= arch_irq_stat_cpu(i);
-
-	for (j = 0; j < NR_SOFTIRQS; j++) {
-	unsigned int softirq_stat = kstat_softirqs_cpu(j, i);
-
-	per_softirq_sums[j] += softirq_stat;
-	sum_softirq += softirq_stat;
-	}
-	}
-	sum += arch_irq_stat();
-
-	pr_info("\n");
-	pr_info("cpu user:%llu \tnice:%llu \tsystem:%llu \tidle:%llu \tiowait:%llu \tirq:%llu \tsoftirq:%llu \t %llu %llu %llu\n",
-	(unsigned long long)cputime64_to_clock_t(user),
-	(unsigned long long)cputime64_to_clock_t(nice),
-	(unsigned long long)cputime64_to_clock_t(system),
-	(unsigned long long)cputime64_to_clock_t(idle),
-	(unsigned long long)cputime64_to_clock_t(iowait),
-	(unsigned long long)cputime64_to_clock_t(irq),
-	(unsigned long long)cputime64_to_clock_t(softirq),
-	(unsigned long long)cputime64_to_clock_t(steal),
-	(unsigned long long)cputime64_to_clock_t(guest),
-	(unsigned long long)cputime64_to_clock_t(guest_nice));
-	pr_info("-------------------------------------------------------------------------------------------------------------\n");
-
-	for_each_possible_cpu(i) {
-	/* Copy values here to work around gcc-2.95.3, gcc-2.96 */
-	user	= kcpustat_cpu(i).cpustat[CPUTIME_USER];
-	nice	= kcpustat_cpu(i).cpustat[CPUTIME_NICE];
-	system	= kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM];
-	idle	= get_idle_time(i);
-	iowait	= get_iowait_time(i);
-	irq	= kcpustat_cpu(i).cpustat[CPUTIME_IRQ];
-	softirq	= kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ];
-	steal	= kcpustat_cpu(i).cpustat[CPUTIME_STEAL];
-	guest	= kcpustat_cpu(i).cpustat[CPUTIME_GUEST];
-	guest_nice = kcpustat_cpu(i).cpustat[CPUTIME_GUEST_NICE];
-
-	pr_info("cpu%d user:%llu \tnice:%llu \tsystem:%llu \tidle:%llu \tiowait:%llu \tirq:%llu \tsoftirq:%llu \t %llu %llu %llu\n",
-	i,
-	(unsigned long long)cputime64_to_clock_t(user),
-	(unsigned long long)cputime64_to_clock_t(nice),
-	(unsigned long long)cputime64_to_clock_t(system),
-	(unsigned long long)cputime64_to_clock_t(idle),
-	(unsigned long long)cputime64_to_clock_t(iowait),
-	(unsigned long long)cputime64_to_clock_t(irq),
-	(unsigned long long)cputime64_to_clock_t(softirq),
-	(unsigned long long)cputime64_to_clock_t(steal),
-	(unsigned long long)cputime64_to_clock_t(guest),
-	(unsigned long long)cputime64_to_clock_t(guest_nice));
-	}
-	pr_info("-------------------------------------------------------------------------------------------------------------\n");
-	pr_info("\n");
-	pr_info("irq : %llu", (unsigned long long)sum);
-	pr_info("-------------------------------------------------------------------------------------------------------------\n");
-	/* sum again ? it could be updated? */
-	for_each_irq_nr(j) {
-	unsigned int irq_stat = kstat_irqs(j);
-	if (irq_stat) {
-	pr_info("irq-%-4d : %8u %s\n", j, irq_stat,
-	irq_to_desc(j)->action ? irq_to_desc(j)->action->name ? : "???" : "???");
-	}
-	}
-	pr_info("-------------------------------------------------------------------------------------------------------------\n");
-	pr_info("\n");
-	pr_info("softirq : %llu", (unsigned long long)sum_softirq);
-	pr_info("-------------------------------------------------------------------------------------------------------------\n");
-	for (i = 0; i < NR_SOFTIRQS; i++)
-	if (per_softirq_sums[i])
-	pr_info("softirq-%d : %8u %s\n", i, per_softirq_sums[i], softirq_to_name[i]);
-	pr_info("-------------------------------------------------------------------------------------------------------------\n");
-}
+// #ifdef arch_idle_time
+// static cputime64_t get_idle_time(int cpu)
+// {
+//	cputime64_t idle;
+//
+//	idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE];
+//	if (cpu_online(cpu) && !nr_iowait_cpu(cpu))
+//	idle += arch_idle_time(cpu);
+//	return idle;
+// }
+//
+// static cputime64_t get_iowait_time(int cpu)
+// {
+//	cputime64_t iowait;
+//
+//	iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT];
+//	if (cpu_online(cpu) && nr_iowait_cpu(cpu))
+//	iowait += arch_idle_time(cpu);
+//	return iowait;
+// }
+// #else
+// static u64 get_idle_time(int cpu)
+// {
+//	u64 idle, idle_time = -1ULL;
+//
+//	if (cpu_online(cpu))
+//	idle_time = get_cpu_idle_time_us(cpu, NULL);
+//
+//	if (idle_time == -1ULL)
+//	/* !NO_HZ or cpu offline so we can rely on cpustat.idle */
+//	idle = kcpustat_cpu(cpu).cpustat[CPUTIME_IDLE];
+//	else
+//	idle = usecs_to_cputime64(idle_time);
+//
+//	return idle;
+// }
+
+// static u64 get_iowait_time(int cpu)
+// {
+//	u64 iowait, iowait_time = -1ULL;
+//
+//	if (cpu_online(cpu))
+//	iowait_time = get_cpu_iowait_time_us(cpu, NULL);
+//
+//	if (iowait_time == -1ULL)
+//	/* !NO_HZ or cpu offline so we can rely on cpustat.iowait */
+//	iowait = kcpustat_cpu(cpu).cpustat[CPUTIME_IOWAIT];
+//	else
+//	iowait = usecs_to_cputime64(iowait_time);
+//
+//	return iowait;
+// }
+//#endif
+
+// static void sec_debug_dump_cpu_stat(void)
+// {
+//	int i, j;
+//	unsigned long jif;
+//	u64 user, nice, system, idle, iowait, irq, softirq, steal;
+//	u64 guest, guest_nice;
+//	u64 sum = 0;
+//	u64 sum_softirq = 0;
+//	unsigned int per_softirq_sums[NR_SOFTIRQS] = {0};
+//	struct timespec boottime;
+//
+//	char *softirq_to_name[NR_SOFTIRQS] = { "HI", "TIMER", "NET_TX", "NET_RX", "BLOCK", "BLOCK_IOPOLL", "TASKLET", "SCHED", "HRTIMER", "RCU" };
+//
+//	user = nice = system = idle = iowait = irq = softirq = steal = 0;
+//	guest = guest_nice = 0;
+//	getboottime(&boottime);
+//	jif = boottime.tv_sec;
+//
+//	for_each_possible_cpu(i) {
+//	user	+= kcpustat_cpu(i).cpustat[CPUTIME_USER];
+//	nice	+= kcpustat_cpu(i).cpustat[CPUTIME_NICE];
+//	system	+= kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM];
+//	idle	+= get_idle_time(i);
+//	iowait	+= get_iowait_time(i);
+//	irq	+= kcpustat_cpu(i).cpustat[CPUTIME_IRQ];
+//	softirq	+= kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ];
+//	steal	+= kcpustat_cpu(i).cpustat[CPUTIME_STEAL];
+//	guest	+= kcpustat_cpu(i).cpustat[CPUTIME_GUEST];
+//	guest_nice += kcpustat_cpu(i).cpustat[CPUTIME_GUEST_NICE];
+//	sum	+= kstat_cpu_irqs_sum(i);
+//	sum	+= arch_irq_stat_cpu(i);
+//
+//	for (j = 0; j < NR_SOFTIRQS; j++) {
+//	unsigned int softirq_stat = kstat_softirqs_cpu(j, i);
+//
+//	per_softirq_sums[j] += softirq_stat;
+//	sum_softirq += softirq_stat;
+//	}
+//	}
+//	sum += arch_irq_stat();
+//
+//	pr_info("\n");
+//	pr_info("cpu user:%llu \tnice:%llu \tsystem:%llu \tidle:%llu \tiowait:%llu \tirq:%llu \tsoftirq:%llu \t %llu %llu %llu\n",
+//	(unsigned long long)cputime64_to_clock_t(user),
+//	(unsigned long long)cputime64_to_clock_t(nice),
+//	(unsigned long long)cputime64_to_clock_t(system),
+//	(unsigned long long)cputime64_to_clock_t(idle),
+//	(unsigned long long)cputime64_to_clock_t(iowait),
+//	(unsigned long long)cputime64_to_clock_t(irq),
+//	(unsigned long long)cputime64_to_clock_t(softirq),
+//	(unsigned long long)cputime64_to_clock_t(steal),
+//	(unsigned long long)cputime64_to_clock_t(guest),
+//	(unsigned long long)cputime64_to_clock_t(guest_nice));
+//	pr_info("-------------------------------------------------------------------------------------------------------------\n");
+//
+//	for_each_possible_cpu(i) {
+//	/* Copy values here to work around gcc-2.95.3, gcc-2.96 */
+//	user	= kcpustat_cpu(i).cpustat[CPUTIME_USER];
+//	nice	= kcpustat_cpu(i).cpustat[CPUTIME_NICE];
+//	system	= kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM];
+//	idle	= get_idle_time(i);
+//	iowait	= get_iowait_time(i);
+//	irq	= kcpustat_cpu(i).cpustat[CPUTIME_IRQ];
+//	softirq	= kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ];
+//	steal	= kcpustat_cpu(i).cpustat[CPUTIME_STEAL];
+//	guest	= kcpustat_cpu(i).cpustat[CPUTIME_GUEST];
+//	guest_nice = kcpustat_cpu(i).cpustat[CPUTIME_GUEST_NICE];
+//
+//	pr_info("cpu%d user:%llu \tnice:%llu \tsystem:%llu \tidle:%llu \tiowait:%llu \tirq:%llu \tsoftirq:%llu \t %llu %llu %llu\n",
+//	i,
+//	(unsigned long long)cputime64_to_clock_t(user),
+//	(unsigned long long)cputime64_to_clock_t(nice),
+//	(unsigned long long)cputime64_to_clock_t(system),
+//	(unsigned long long)cputime64_to_clock_t(idle),
+//	(unsigned long long)cputime64_to_clock_t(iowait),
+//	(unsigned long long)cputime64_to_clock_t(irq),
+//	(unsigned long long)cputime64_to_clock_t(softirq),
+//	(unsigned long long)cputime64_to_clock_t(steal),
+//	(unsigned long long)cputime64_to_clock_t(guest),
+//	(unsigned long long)cputime64_to_clock_t(guest_nice));
+//	}
+//	pr_info("-------------------------------------------------------------------------------------------------------------\n");
+//	pr_info("\n");
+//	pr_info("irq : %llu", (unsigned long long)sum);
+//	pr_info("-------------------------------------------------------------------------------------------------------------\n");
+//	/* sum again ? it could be updated? */
+//	for_each_irq_nr(j) {
+//	unsigned int irq_stat = kstat_irqs(j);
+//	if (irq_stat) {
+//	pr_info("irq-%-4d : %8u %s\n", j, irq_stat,
+//	irq_to_desc(j)->action ? irq_to_desc(j)->action->name ? : "???" : "???");
+//	}
+//	}
+//	pr_info("-------------------------------------------------------------------------------------------------------------\n");
+//	pr_info("\n");
+//	pr_info("softirq : %llu", (unsigned long long)sum_softirq);
+//	pr_info("-------------------------------------------------------------------------------------------------------------\n");
+//	for (i = 0; i < NR_SOFTIRQS; i++)
+//	if (per_softirq_sums[i])
+//	pr_info("softirq-%d : %8u %s\n", i, per_softirq_sums[i], softirq_to_name[i]);
+//	pr_info("-------------------------------------------------------------------------------------------------------------\n");
+// }

void sec_debug_reboot_handler()
{
@@ -516,14 +516,14 @@ void sec_debug_panic_handler(void *buf, bool dump)
sec_debug_set_upload_cause(UPLOAD_CAUSE_KERNEL_PANIC);

/* dump debugging info */
-	if (dump) {
-#if 0
-	sec_debug_dump_all_task();
-	show_state_filter(TASK_STATE_MAX);
-#endif
-	sec_debug_dump_cpu_stat();
-	debug_show_all_locks();
-	}
+//	if (dump) {
+// #if 0
+//	sec_debug_dump_all_task();
+//	show_state_filter(TASK_STATE_MAX);
+// #endif
+//	sec_debug_dump_cpu_stat();
+//	debug_show_all_locks();
+//	}

/* hw reset */
pr_emerg("sec_debug: %s\n", linux_banner);

Also fwiw, im running oh6 baseband and system