Re: [PATCH 01/12] lockdep: syscall exit check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +void lockdep_sys_exit(void)
> +{
> +	struct task_struct *curr = current;
> +
> +	if (unlikely(curr->lockdep_depth)) {
> +		if (!debug_locks_off())
> +			return;
> +		printk("\n========================================\n");
> +		printk(  "[ BUG: lock held at syscall exit time! ]\n");
> +		printk(  "----------------------------------------\n");
> +		printk("%s/%d is leaving the kernel with locks still held!\n",
> +				curr->comm, curr->pid);
> +		lockdep_print_held_locks(curr);
> +	}
> +}

By the way, the s390 patch I just posted also checks if we hold any locks
when returning from interrupt context to user space. Maybe the above text
could be changed to "lock held when returning to user space" ?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux