Skip to content

Commit 608a973

Browse files
kelleymhliuw
authored andcommitted
Drivers: hv: vmbus: Only notify Hyper-V for die events that are oops
Hyper-V currently may be notified of a panic for any die event. But this results in false panic notifications for various user space traps that are die events. Fix this by ignoring die events that aren't oops. Fixes: 510f7ae ("Drivers: hv: vmbus: prefer 'die' notification chain to 'panic'") Signed-off-by: Michael Kelley <[email protected]> Reviewed-by: Vitaly Kuznetsov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
1 parent bcf8768 commit 608a973

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/hv/vmbus_drv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ static int hyperv_die_event(struct notifier_block *nb, unsigned long val,
8787
struct die_args *die = (struct die_args *)args;
8888
struct pt_regs *regs = die->regs;
8989

90+
/* Don't notify Hyper-V if the die event is other than oops */
91+
if (val != DIE_OOPS)
92+
return NOTIFY_DONE;
93+
9094
/*
9195
* Hyper-V should be notified only once about a panic. If we will be
9296
* doing hyperv_report_panic_msg() later with kmsg data, don't do

0 commit comments

Comments
 (0)