File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -98,11 +98,10 @@ static inline bool within_module_coretext(void *addr)
98
98
#ifdef CONFIG_MODULES
99
99
struct module * mod ;
100
100
101
- preempt_disable ();
101
+ guard ( rcu ) ();
102
102
mod = __module_address ((unsigned long )addr );
103
103
if (mod && within_module_core ((unsigned long )addr , mod ))
104
104
ret = true;
105
- preempt_enable ();
106
105
#endif
107
106
return ret ;
108
107
}
Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ bool unwind_next_frame(struct unwind_state *state)
476
476
return false;
477
477
478
478
/* Don't let modules unload while we're reading their ORC data. */
479
- preempt_disable ();
479
+ guard ( rcu ) ();
480
480
481
481
/* End-of-stack check for user tasks: */
482
482
if (state -> regs && user_mode (state -> regs ))
@@ -669,14 +669,12 @@ bool unwind_next_frame(struct unwind_state *state)
669
669
goto err ;
670
670
}
671
671
672
- preempt_enable ();
673
672
return true;
674
673
675
674
err :
676
675
state -> error = true;
677
676
678
677
the_end :
679
- preempt_enable ();
680
678
state -> stack_info .type = STACK_TYPE_UNKNOWN ;
681
679
return false;
682
680
}
You can’t perform that action at this time.
0 commit comments